/* assets/css/style.css - النسخة النهائية المعدلة */

:root {
    --bg: #0a0f1a;
    --bg2: #141b2b;
    --bg3: #1e2740;
    --txt: #e0e0e0;
    --txt2: #a0a8c0;
    --txt3: #6b7280;
    --sky: #38bdf8;
    --sky-dark: #0284c7;
    --green: #10b981;
    --red: #ef4444;
    --orange: #f97316;
    --yellow: #fbbf24;
    --border: #2a3440;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --radius: 16px;
    --transition: all 0.3s ease;
    --card-bg: #141b2b;
    --card-text: #e0e0e0;
    --card-text-secondary: #a0a8c0;
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg2: #ffffff;
    --bg3: #f1f5f9;
    --txt: #1e293b;
    --txt2: #475569;
    --txt3: #94a3b8;
    --sky: #0ea5e9;
    --sky-dark: #0284c7;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
    --card-bg: #ffffff;
    --card-text: #1e293b;
    --card-text-secondary: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--txt);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.sec {
    padding: 80px 0;
    width: 100%;
}

.sec-dark {
    background: var(--bg2);
}

.fi {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fi.vis {
    opacity: 1;
    transform: translateY(0);
}

/* شريط التنقل */
#nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    width: 100%;
}

.nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sky);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.8rem;
    color: var(--txt2);
}

.nav-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.nav-menu a {
    color: var(--txt);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 30px;
    transition: var(--transition);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.act {
    color: white;
    background: var(--sky);
}

.nav-end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.icobtn {
    background: var(--bg3);
    border: none;
    color: var(--txt);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.icobtn:hover {
    background: var(--sky);
    color: white;
    transform: translateY(-2px);
}

.cart-wrap {
    position: relative;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--txt);
    font-family: Cairo, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    height: 42px;
}

.cart-btn:hover {
    background: var(--sky);
    color: white;
    border-color: var(--sky);
    transform: translateY(-2px);
}

.cart-btn i { font-size: 1rem; }

.cart-badge {
    background: var(--red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--sky);
    color: white;
}

.btn-primary:hover {
    background: var(--sky-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--sky);
    color: var(--sky);
}

.btn-outline:hover {
    background: var(--sky);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* زر طلب عرض سعر */
.btn-quote {
    background: #f97316;
    color: white;
    border: none;
}

.btn-quote:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* زر القائمة (الهامبرغر) - تنسيق موحد */
.burger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sky);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger:hover {
    background: var(--bg3);
}

/* القائمة المنسدلة للموبايل */
.mob {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg2);
    z-index: 1001;
    padding: 70px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.mob.open {
    right: 0;
}

.mob a {
    display: block;
    padding: 12px 16px;
    color: var(--txt);
    text-decoration: none;
    font-size: 1rem;
    border-radius: 10px;
    margin-bottom: 5px;
}

.mob a:hover {
    background: var(--bg3);
    color: var(--sky);
}

.mob-foot {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.sh {
    text-align: center;
    margin-bottom: 40px;
}

.sh-lbl {
    display: inline-block;
    background: var(--bg3);
    color: var(--sky);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.sh-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--txt);
}

.sh-title span {
    color: var(--sky);
}

.sh-sub {
    max-width: 600px;
    margin: 0 auto;
    color: var(--txt2);
    font-size: 1.1rem;
}

/* قسم الهيرو */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hgrid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.horb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--sky);
    filter: blur(100px);
    opacity: 0.1;
    animation: float 10s infinite;
}

.horb1 {
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.horb2 {
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero-in {
    display: grid;
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* فصل اللوجو المتحرك عن النص */
.hvis {
    display: none !important;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
}

.hero-animation-container {
    position: relative;
    width: 450px;
    height: 450px;
    margin-bottom: 60px;
}

.hero-square-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    border: 3px solid var(--green);
    border-radius: 30px;
    animation: rotate3d 20s linear infinite;
    z-index: 1;
    opacity: 0.6;
}

.hero-square-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border: 3px solid var(--sky);
    border-radius: 30px;
    animation: rotate3dReverse 15s linear infinite;
    z-index: 1;
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.hero-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    object-fit: contain;
    z-index: 2;
    animation: levitate2 4s ease-in-out infinite;
}

@keyframes rotate3d {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate3dReverse {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes levitate2 {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -55%); }
}

.hero-text-content {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.hl {
    color: var(--sky);
    position: relative;
}

.hero-p {
    font-size: 1.2rem;
    color: var(--txt2);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hbtns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.hstats {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.hs-n {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sky);
    line-height: 1.2;
}

.hs-l {
    font-size: 0.9rem;
    color: var(--txt2);
}

/* خدمات */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.svc {
    background: var(--bg3);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.svc:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.svc-ic {
    width: 70px;
    height: 70px;
    background: var(--sky);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.svc h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--sky);
}

.svc p {
    color: var(--txt2);
    line-height: 1.7;
}

.svc-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* فلتر المنتجات */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--bg2);
    padding: 15px;
    border-radius: var(--radius);
}

.fbtn {
    background: var(--bg3);
    border: none;
    color: var(--txt);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.fbtn:hover,
.fbtn.on {
    background: var(--sky);
    color: white;
}

select.fbtn {
    background: var(--bg3);
    color: var(--txt);
}

select.fbtn option {
    background: var(--bg2);
    color: var(--txt);
}

.srch {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--bg3);
    color: var(--txt);
    transition: var(--transition);
}

.srch:focus {
    outline: none;
    border-color: var(--sky);
}

.srch::placeholder {
    color: var(--txt3);
}

/* شبكة المنتجات */
.pgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: start;
}

.pcard {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.pcard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--sky);
}

.pbdgs {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pb {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pb-n { background: var(--green); }
.pb-s { background: var(--orange); }
.pb-h { background: var(--red); }
.pb-out { background: #6c757d; font-size: 0.8rem; padding: 6px 15px; }

/* 1. تكبير الصورة وضبط التناسق */
.pimg {
    width: 100%;
    height: 260px; /* تم تكبير الارتفاع */
    object-fit: contain; /* لضمان ظهور الطابعة بالكامل دون قص */
    padding: 15px; /* مسافة داخلية لتتنفس الصورة */
    transition: var(--transition);
}

.pcard:hover .pimg {
    transform: scale(1.05);
}

.pbody {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pbrand {
    font-size: 0.85rem;
    color: var(--sky);
    margin-bottom: 5px;
    font-weight: 600;
}

.pname {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--card-text);
}

/* 2. تصغير الوصف وقصه إذا زاد عن 3 أسطر */
.pspec {
    font-size: 0.8rem; /* تصغير حجم الوصف */
    color: var(--card-text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
    /* خصائص لقص النص الزائد ووضع نقط (...) */
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3. الحفاظ على السعر والزر في الأسفل دائماً */
.pprices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    margin-top: auto; /* هذا السطر يدفع السعر والأزرار لأسفل الكارت */
}

.pp-n {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sky);
}

.pp-o {
    font-size: 0.9rem;
    color: var(--txt3);
    text-decoration: line-through;
}

.pp-s {
    background: var(--green);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* أزرار البطاقات */
.pcard-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: stretch;
}

.pcard-actions .btn-add {
    flex: 1;
    font-size: 0.85rem;
    padding: 10px 12px;
    background: var(--sky);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pcard-actions .btn-add:hover:not(:disabled) {
    background: var(--sky-dark);
    transform: translateY(-2px);
}

.pcard-actions .btn-add:disabled {
    background: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

.pcard-actions .btn-share {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--sky);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(56,189,248,0.35);
}

.pcard-actions .btn-share:hover {
    background: var(--sky-dark);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(56,189,248,0.5);
}

.btn-share-icon {
    background: var(--bg3);
    border: none;
    color: var(--sky);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-share-icon:hover {
    background: var(--sky);
    color: white;
    transform: scale(1.1);
}

.pbadge {
    display: inline-block;
    background: var(--bg3);
    color: var(--txt2);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-prod {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg2);
    border-radius: var(--radius);
}

.empty-prod i {
    font-size: 4rem;
    color: var(--txt3);
    margin-bottom: 15px;
}

.empty-prod p {
    color: var(--txt2);
    font-size: 1.2rem;
}

/* شارة المنتجات المستوردة */
.import-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    margin-top: 8px;
}

.import-badge i {
    margin-right: 5px;
}

/* قسم الفحص الفني */
.tech-check {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg2);
    border-radius: 12px;
}

.tech-check h4 {
    color: var(--sky);
    margin-bottom: 10px;
}

/* مميزات الشركات */
.feature-card {
    background: var(--bg2);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* عقود الصيانة */
.sla-card {
    background: var(--bg2);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.sla-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.package {
    background: var(--bg2);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.package:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* قسم المميزات */
.feat-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feat {
    display: flex;
    gap: 15px;
    background: var(--bg3);
    padding: 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feat-ic {
    width: 50px;
    height: 50px;
    background: var(--sky);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feat-h {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--sky);
}

.feat-p {
    font-size: 0.9rem;
    color: var(--txt2);
    line-height: 1.6;
}

/* قسم من نحن */
.abt-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.abt-vis {
    position: relative;
    height: 500px;
    overflow: visible;
    min-width: 300px;
}

.av-r {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid var(--sky);
    border-radius: 30px;
    animation: rotate3d 15s infinite;
}

.av-r:nth-child(2) {
    width: 400px;
    height: 400px;
    border-color: var(--green);
    animation-direction: reverse;
}

.av-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    object-fit: contain;
    animation: levitate2 4s infinite;
}

.av-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--sky);
    border-radius: 50%;
    animation: pulse2 2s infinite;
}

@keyframes pulse2 {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.5); }
}

/* نموذج الصيانة */
.mform {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg2);
    padding: 40px;
    border-radius: var(--radius);
}

.fg {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fl.full {
    grid-column: span 2;
}

.fl label {
    display: block;
    margin-bottom: 8px;
    color: var(--txt2);
    font-weight: 600;
    font-size: 0.9rem;
}

.fin {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--txt);
    transition: var(--transition);
    font-family: inherit;
}

.fin:focus {
    outline: none;
    border-color: var(--sky);
}

.fin::placeholder {
    color: var(--txt3);
}

.fin option {
    background: var(--bg2);
    color: var(--txt);
}

.msuccess {
    text-align: center;
    padding: 30px;
    background: var(--green);
    color: white;
    border-radius: var(--radius);
}

.msuccess i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.msuccess span {
    color: white;
}

/* الفوتر */
footer {
    background: var(--bg2);
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    width: 100%;
}

.fgrid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.flogo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 15px;
    display: block;
}

.fp {
    color: var(--txt2);
    line-height: 1.7;
    margin-bottom: 20px;
}

.fsoc {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fsocbtn {
    width: 40px;
    height: 40px;
    background: var(--bg3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky);
    transition: var(--transition);
    text-decoration: none;
}

.fsocbtn:hover {
    background: var(--sky);
    color: white;
    transform: translateY(-3px);
}

footer h4 {
    color: var(--sky);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: var(--txt2);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

footer ul li a:hover {
    color: var(--sky);
    transform: translateX(5px);
}

.fcon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--txt2);
}

.fcon i {
    color: var(--sky);
    width: 20px;
}

.fbot {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--txt3);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* واتساب عائم */
.wa {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}

.wa:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* سلة التسوق الجانبية */
.covl {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.covl.open {
    opacity: 1;
    visibility: visible;
}

.cside {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg2);
    z-index: 1002;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 20px rgba(0,0,0,0.3);
    max-width: 90%;
}

.cside.open {
    left: 0;
}

.chd {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chd h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sky);
}

.mclose {
    background: var(--bg3);
    border: none;
    color: var(--txt);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.mclose:hover {
    background: var(--red);
    color: white;
}

.cbody {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cempty {
    text-align: center;
    padding: 40px 0;
    color: var(--txt2);
}

.cempty i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--txt3);
}

.cit {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg3);
    border-radius: 10px;
    position: relative;
}

.cit img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ci-info {
    flex: 1;
    min-width: 0;
}

.ci-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--txt);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ci-price {
    color: var(--sky);
    font-weight: 700;
    margin-bottom: 8px;
}

.ci-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qb {
    width: 30px;
    height: 30px;
    background: var(--bg2);
    border: none;
    color: var(--txt);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.qb:hover {
    background: var(--sky);
    color: white;
}

.qn {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--txt);
}

.crm {
    background: transparent;
    border: none;
    color: var(--red);
    cursor: pointer;
    margin-right: auto;
    transition: var(--transition);
}

.crm:hover {
    transform: scale(1.2);
}

.cft {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.ctot {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--txt);
}

.btn-chk {
    width: 100%;
    padding: 15px;
    background: var(--sky);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-chk:hover {
    background: var(--sky-dark);
    transform: translateY(-2px);
}

/* مودالات */
.movl {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.movl.open {
    opacity: 1;
    visibility: visible;
}

.mmodal {
    background: var(--bg2);
    width: 90%;
    max-width: 450px;
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.mhd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.mhd h3 {
    color: var(--sky);
    font-size: 1.5rem;
}

.mhd button {
    background: var(--bg3);
    border: none;
    color: var(--txt);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.mhd button:hover {
    background: var(--red);
    color: white;
}

.mbd {
    margin-bottom: 20px;
}

.mbd input,
.mbd select,
.mbd textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--txt);
    margin-bottom: 15px;
    transition: var(--transition);
}

.mbd input:focus,
.mbd select:focus,
.mbd textarea:focus {
    outline: none;
    border-color: var(--sky);
}

.mbd input::placeholder,
.mbd textarea::placeholder {
    color: var(--txt3);
}

.mbd button {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
}

.mlink {
    text-align: center;
    color: var(--txt2);
}

.mlink a {
    color: var(--sky);
    text-decoration: none;
    font-weight: 600;
}

.mlink a:hover {
    text-decoration: underline;
}

.otp-g {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-i {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--txt);
}

.osr {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--txt2);
}

/* توست */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg2);
    color: var(--txt);
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

#toasti {
    font-size: 1.5rem;
}

#toasttxt {
    color: var(--txt);
}

/* تنسيقات المودالات المتقدمة */
.mbox {
    background-color: var(--bg);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.movl.open .mbox {
    transform: scale(1);
}

.mhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.mlogoimg {
    max-width: 45px;
    max-height: 45px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.mbody {
    padding: 20px;
}

.mtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--sky);
    text-align: center;
}

.ainpw {
    display: flex;
    align-items: center;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 15px;
    margin-bottom: 15px;
    transition: border 0.2s;
}

.ainpw:focus-within {
    border-color: var(--sky);
}

.ainpw .ico {
    color: var(--txt2);
    font-size: 1.1rem;
    width: 24px;
}

.ainp {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 10px;
    color: var(--txt);
    font-size: 0.95rem;
    outline: none;
}

.ainp::placeholder {
    color: var(--txt3);
}

.asbtn {
    width: 100%;
    padding: 14px;
    background: var(--sky);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin: 10px 0;
    transition: background 0.2s, transform 0.1s;
}

.asbtn:hover {
    background: var(--sky-dark);
    transform: translateY(-2px);
}

.aswitch {
    text-align: center;
    margin: 15px 0 10px;
    color: var(--txt2);
}

.aswitch a {
    color: var(--sky);
    text-decoration: none;
    font-weight: 600;
    margin-right: 5px;
}

.flink {
    text-align: center;
}

.flink a {
    color: var(--txt3);
    font-size: 0.9rem;
    text-decoration: none;
}

/* OTP */
.otp-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-note {
    text-align: center;
    color: var(--txt2);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Order modal */
.order-modal .osumbx {
    background: var(--bg2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.order-modal .osr {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.order-modal .osr:last-child {
    border-bottom: none;
}

.order-modal .ostot {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 15px;
    color: var(--sky);
}

/* إخفاء اللوجو المتحرك من مودال الدفع */
.order-modal .hero-center-logo,
.order-modal .hero-square-outer,
.order-modal .hero-square-inner,
.order-modal .hero-animation-container,
.order-modal .hero-logo,
.order-modal .hv-logo,
.order-modal .av-logo {
    display: none !important;
}

/* تنسيقات المشاركة */
.product-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-share span {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--sky);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-link-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--txt);
    font-size: 0.9rem;
}

.copy-link-btn {
    background: var(--bg3);
    border: none;
    color: var(--sky);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-link-btn:hover {
    background: var(--sky);
    color: white;
    transform: translateY(-2px);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.whatsapp-business { background: #128C7E; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.telegram { background: #0088cc; }

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* تنسيقات محتوى المقالات */
.post-content h2 {
    font-size: 1.6rem;
    color: var(--sky);
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.post-content h3 {
    font-size: 1.2rem;
    color: var(--txt);
    margin: 22px 0 10px;
    font-weight: 700;
}

.post-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--txt2);
    margin-bottom: 16px;
}

.post-content ul, .post-content ol {
    margin: 10px 0 16px;
    padding-right: 24px;
    line-height: 2;
    color: var(--txt2);
}

.faq-block {
    background: var(--bg2);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
    border-right: 4px solid var(--sky);
}

.faq-block h3 {
    font-size: 1rem;
    color: var(--txt);
    margin: 16px 0 6px;
    font-weight: 700;
}

.faq-block p {
    font-size: 0.95rem;
    color: var(--txt2);
    margin-bottom: 12px;
    line-height: 1.7;
}

/* تحسينات الأداء */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========================================
   استعلامات الوسائط (الريسبونسيف)
   ======================================== */

/* شاشات أقل من 1200px */
@media (max-width: 1200px) {
    .nav-menu a {
        padding: 5px 8px;
        font-size: 0.85rem;
    }
    .cart-btn span:not(.cart-badge) {
        display: none;
    }
    .cart-btn {
        padding: 8px 12px;
    }
}

/* شاشات أقل من 1024px */
@media (max-width: 1024px) {
    .sec {
        padding: 60px 0;
    }
    .fgrid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-in {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feat-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .abt-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .pgrid {
        grid-template-columns: repeat(3, 1fr);
    }
    .corporate-features,
    .packages-grid,
    .sla-packages .packages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* شاشات أقل من 900px - إظهار زر القائمة */
@media (max-width: 900px) {
    .nav-menu {
        display: none !important;
    }
    .burger {
        display: flex !important;
    }
    .nav-end .btn-sm {
        display: inline-flex !important;
    }
}

/* شاشات أقل من 768px (موبايل) */
@media (max-width: 768px) {
    .hero-animation-container {
        display: none !important;
    }
    .hero-content-wrapper {
        padding-top: 20px;
    }
    .sec {
        padding: 60px 0;
    }
    .sh-title {
        font-size: 2rem;
    }
    .svc-grid {
        grid-template-columns: 1fr;
    }
    .feat-list {
        grid-template-columns: 1fr;
    }
    .fgrid {
        grid-template-columns: 1fr;
    }
    .fg {
        grid-template-columns: 1fr;
    }
    .fl.full {
        grid-column: span 1;
    }
    .pgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* تكبير الصورة للموبايل أيضاً لتكون واضحة */
    .pimg {
        height: 180px;
        padding: 10px;
    }
    
    .pcard-actions .btn-share {
        width: 42px;
        height: 42px;
    }
    .abt-vis {
        height: 260px;
        max-width: 260px;
        margin: 0 auto 20px;
    }
    .av-r {
        width: 160px !important;
        height: 160px !important;
    }
    .av-r:nth-child(2) {
        width: 220px !important;
        height: 220px !important;
    }
    .av-logo {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* تنسيقات الموبايل الإضافية */
    h1 {
        font-size: 1.8rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    .corporate-features,
    .packages-grid,
    .sla-packages .packages-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .feature-card,
    .package,
    .sla-card {
        margin: 0;
        padding: 15px !important;
    }
    p {
        font-size: 0.9rem !important;
    }
    .price {
        font-size: 1.5rem !important;
    }
    ul li {
        font-size: 0.85rem;
        margin-bottom: 8px !important;
    }
    .btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    .wrap {
        padding: 0 15px;
    }
    .package[style*="transform: scale(1.02)"] {
        transform: scale(1) !important;
        margin: 0;
    }
}

/* شاشات أقل من 600px */
@media (max-width: 600px) {
    .nav-in {
        height: 65px;
        padding: 0 12px;
    }
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    .brand-name {
        font-size: 1.1rem;
    }
    .brand-sub {
        font-size: 0.6rem;
    }
    .icobtn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .cart-btn {
        padding: 6px 10px;
        height: 34px;
    }
    .nav-end .btn-sm {
        display: none !important;
    }
    .burger {
        width: 40px;
        height: 40px;
    }
    .burger span {
        width: 20px;
        height: 2px;
    }
}

/* شاشات أقل من 480px */
@media (max-width: 480px) {
    .sh-title {
        font-size: 1.8rem;
    }
    .hero-in h1 {
        font-size: 2.5rem;
    }
    .hstats {
        flex-direction: column;
        gap: 15px;
    }
    .filter-bar {
        flex-direction: column;
    }
    .srch {
        width: 100%;
    }
    .pgrid {
        grid-template-columns: 1fr;
    }
    .pcard-actions .btn-share {
        width: 44px;
        height: 44px;
    }
    h1 {
        font-size: 1.5rem !important;
    }
    h2 {
        font-size: 1.3rem !important;
    }
    .feature-card,
    .package,
    .sla-card {
        padding: 15px !important;
    }
    .price {
        font-size: 1.3rem !important;
    }
    .btn {
        padding: 8px 12px !important;
    }
}

/* وضع الطباعة */
@media print {
    .wa,
    .cside,
    .cart-wrap,
    .btn-add,
    .icobtn {
        display: none !important;
    }
}