/* ============================================================
   Vumtec — التصميم v2
   مستوحى من Replit (كريمي + برتقالي + فحمي + خوخي، أشكال بيضاوية
   وزوايا دائرية كبيرة) و Software Mind (Hero بصور حقيقية + سلايدر)
   ============================================================ */

:root {
    --vt-cream:      #FAF6EF;   /* خلفية الصفحة */
    --vt-cream-2:    #F1ECE1;   /* سطح ثانوي */
    --vt-gray-card:  #DDD9D2;   /* بطاقة رمادية */
    --vt-dark:       #1D1D1B;   /* الفحمي */
    --vt-dark-2:     #2A2A27;
    --vt-orange:     #F26207;   /* البرتقالي الأساسي */
    --vt-orange-dark:#D4560A;
    --vt-peach:      #F9AE8B;   /* الخوخي */
    --vt-peach-soft: #FBC7AC;
    --vt-text:       #1D1D1B;
    --vt-muted:      #6E6A61;
    --vt-green:      #1F9D55;
    --vt-amber:      #E8A13C;
    --vt-red:        #D64545;
    --vt-radius-lg:  32px;
    --vt-radius:     22px;
    --vt-radius-sm:  14px;
    --vt-shadow:     0 6px 30px rgba(29, 29, 27, 0.08);
    --vt-shadow-hover: 0 14px 40px rgba(29, 29, 27, 0.14);
    --vt-transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}

* { font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, sans-serif; }

body {
    background-color: var(--vt-cream);
    color: var(--vt-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

::selection { background: var(--vt-peach); color: var(--vt-dark); }

/* ---------- شريط التنقل (فاتح، أسلوب Replit) ---------- */
.navbar-vt {
    background-color: rgba(250, 246, 239, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(29, 29, 27, 0.08);
    padding: 0.85rem 0;
}

.navbar-vt .navbar-brand {
    color: var(--vt-dark);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.navbar-vt .navbar-brand i { color: var(--vt-orange); }

/* شعار Vumtec (SVG — خلفية شفافة، حاد على كل الدقات) */
.brand-logo {
    height: 38px;
    width: auto;
    aspect-ratio: 4 / 1;
    display: block;
    direction: ltr; /* الشعار لاتيني — يجب ألا يرث اتجاه RTL من الصفحة */
}

.brand-logo text {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
    direction: ltr;
    unicode-bidi: bidi-override;
    text-anchor: start;
}

.footer-vt .brand-logo { height: 42px; margin-bottom: .75rem; }

@media (max-width: 575.98px) { .brand-logo { height: 32px; } }

.navbar-vt .nav-link {
    color: var(--vt-dark);
    font-weight: 500;
    margin: 0 0.2rem;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
    transition: var(--vt-transition);
}

.navbar-vt .nav-link:hover,
.navbar-vt .nav-link.active {
    background-color: rgba(29, 29, 27, 0.06);
    color: var(--vt-dark);
}

.navbar-vt .btn-order {
    background-color: var(--vt-orange);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    transition: var(--vt-transition);
}

.navbar-vt .btn-order:hover {
    background-color: var(--vt-orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(242, 98, 7, 0.35);
}

.navbar-vt .navbar-toggler { border-color: rgba(29, 29, 27, 0.2); }

/* ---------- Hero: كتلة داكنة دائرية الزوايا فوق الخلفية الكريمية ---------- */
.hero-wrap { padding: 1.25rem; }

.hero {
    position: relative;
    border-radius: var(--vt-radius-lg);
    overflow: hidden;
    background-color: var(--vt-dark);
    color: #fff;
    min-height: min(86vh, 780px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(20, 18, 16, 0.88) 0%,
        rgba(20, 18, 16, 0.62) 45%,
        rgba(20, 18, 16, 0.30) 100%);
}

.hero-slide.active { opacity: 1; }

.hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(2.5rem, 6vw, 5rem);
    padding-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content .slide-caption { display: none; max-width: 640px; }
.hero-content .slide-caption.active { display: block; animation: fadeUp .8s ease both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--vt-peach);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .5px;
    margin-bottom: 1rem;
}

.hero h1, .hero .h1 {
    font-weight: 700;
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
}

.hero p.lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.btn-vt-primary {
    background-color: var(--vt-orange);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 2.2rem;
    transition: var(--vt-transition);
}

.btn-vt-primary:hover {
    background-color: var(--vt-orange-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(242, 98, 7, 0.4);
}

.btn-vt-outline {
    background: transparent;
    color: #fff;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 0.8rem 2.2rem;
    transition: var(--vt-transition);
}

.btn-vt-outline:hover {
    background-color: #fff;
    color: var(--vt-dark);
    border-color: #fff;
}

/* مؤشرات السلايدر المرقمة (أسلوب Software Mind) */
.hero-indicators {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 2rem;
    padding: 0 clamp(2.5rem, 6vw, 5rem) 2rem;
    flex-wrap: wrap;
}

.hero-indicator {
    flex: 1;
    min-width: 160px;
    background: none;
    border: none;
    padding: 0;
    text-align: start;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: var(--vt-transition);
}

.hero-indicator:hover { color: #fff; }
.hero-indicator.active { color: #fff; }

.hero-indicator .bar {
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
    margin-bottom: .6rem;
    overflow: hidden;
}

.hero-indicator .bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--vt-orange), var(--vt-peach));
}

.hero-indicator.active .bar span { animation: fillBar var(--slide-ms, 7000ms) linear forwards; }

@keyframes fillBar { from { width: 0; } to { width: 100%; } }

/* ---------- شريط التقنيات المتحرك (أسلوب Replit) ---------- */
.tech-marquee {
    padding: 2.5rem 0 1rem;
    overflow: hidden;
}

.tech-marquee .marquee-title {
    text-align: center;
    color: var(--vt-muted);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 1.75rem;
}

.marquee-viewport {
    /* المحتوى إنجليزي — نثبت الاتجاه LTR لسلاسة الحركة */
    direction: ltr;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: marqueeMove 38s linear infinite;
    padding-inline: 1.75rem;
}

.marquee-viewport:hover .marquee-track { animation-play-state: paused; }

@keyframes marqueeMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #9B968C;
    font-weight: 700;
    font-size: 1.35rem;
    white-space: nowrap;
    transition: color .3s ease;
}

.tech-item i { font-size: 1.6rem; }
.tech-item:hover { color: var(--vt-dark); }

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ---------- عناوين الأقسام ---------- */
.section-title { margin-bottom: 3rem; }

.section-title .eyebrow {
    color: var(--vt-orange);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .5px;
    margin-bottom: .5rem;
    display: block;
}

.section-title h2 {
    font-weight: 700;
    font-size: clamp(1.8rem, 3.6vw, 2.9rem);
    letter-spacing: -0.5px;
    color: var(--vt-dark);
}

.section-title p { color: var(--vt-muted); margin-top: .75rem; font-size: 1.05rem; }

/* ---------- شبكة Bento (أسلوب Replit) ---------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bento-cell {
    padding: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--vt-transition);
    min-height: 300px;
}

.bento-cell:hover { transform: translateY(-6px); }

.bento-cell .cell-label {
    font-size: .92rem;
    font-weight: 600;
    opacity: .75;
    margin-bottom: .6rem;
}

.bento-cell h3 {
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.bento-cell p { font-size: 1.02rem; line-height: 1.9; margin-bottom: 0; }

/* أنماط الخلايا */
.bento-cell.blob-peach {
    background: var(--vt-peach);
    color: var(--vt-dark);
    border-radius: 50%;
    padding: clamp(3rem, 7vw, 6rem);
    min-height: 420px;
}

.bento-cell.blob-orange {
    background: var(--vt-orange);
    color: #fff;
    border-radius: 50%;
    padding: clamp(3rem, 7vw, 6rem);
    min-height: 420px;
}

.bento-cell.blob-orange p { color: rgba(255, 255, 255, .9); }

.bento-cell.card-gray {
    background: var(--vt-gray-card);
    color: var(--vt-dark);
    border-radius: var(--vt-radius-lg);
}

.bento-cell.card-gray p { color: #55524a; }

.bento-cell.card-dark {
    background: var(--vt-dark);
    color: #fff;
    border-radius: var(--vt-radius-lg);
}

.bento-cell.card-dark p { color: rgba(255, 255, 255, .78); }

.bento-cell.card-cream {
    background: var(--vt-cream-2);
    color: var(--vt-dark);
    border-radius: var(--vt-radius-lg);
}

.bento-cell.card-cream p { color: var(--vt-muted); }

.bento-cell .cell-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: rgba(29, 29, 27, 0.10);
}

.bento-cell.card-dark .cell-icon,
.bento-cell.blob-orange .cell-icon { background: rgba(255, 255, 255, 0.14); }

@media (max-width: 991.98px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-cell.blob-peach, .bento-cell.blob-orange {
        border-radius: var(--vt-radius-lg);
        padding: clamp(2rem, 5vw, 3.5rem);
        min-height: 300px;
    }
}

/* ---------- بطاقات عامة ---------- */
.vt-card {
    background-color: #fff;
    border: none;
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: var(--vt-transition);
}

.vt-card:hover { transform: translateY(-6px); box-shadow: var(--vt-shadow-hover); }

.vt-card .icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin-bottom: 1.25rem;
    background: var(--vt-peach-soft);
    color: var(--vt-dark);
}

.vt-card.accent-orange .icon-wrap { background: var(--vt-orange); color: #fff; }
.vt-card.accent-dark .icon-wrap { background: var(--vt-dark); color: #fff; }

.vt-card h5 { font-weight: 700; color: var(--vt-dark); }
.vt-card p { color: var(--vt-muted); margin-bottom: 0; }

/* ---------- شريط الإحصائيات (داكن دائري) ---------- */
.stats-strip-wrap { padding: 0 1.25rem; }

.stats-strip {
    background-color: var(--vt-dark);
    color: #fff;
    padding: 3.5rem 2rem;
    border-radius: var(--vt-radius-lg);
}

.stats-strip .stat-num {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--vt-orange);
    letter-spacing: -1px;
}

.stats-strip .stat-label { color: rgba(255, 255, 255, 0.72); font-size: 1.02rem; }

/* ---------- قسم صورة + نص ---------- */
.photo-split img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow);
}

.photo-split .split-text h2 {
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -0.5px;
}

.photo-split .split-text p { color: var(--vt-muted); line-height: 2; font-size: 1.05rem; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .45rem 0; font-weight: 500; }
.check-list li i { color: var(--vt-orange); margin-inline-end: .6rem; }

/* ---------- قسم CTA (برتقالي دائري) ---------- */
.cta-section {
    background: var(--vt-orange);
    color: #fff;
    border-radius: var(--vt-radius-lg);
    padding: clamp(3rem, 6vw, 5rem) 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    top: -220px;
    inset-inline-start: -120px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(29, 29, 27, 0.10);
    bottom: -180px;
    inset-inline-end: -80px;
}

.cta-section > * { position: relative; z-index: 1; }

.cta-section h2 {
    font-weight: 700;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    letter-spacing: -0.5px;
}

.cta-section .btn-cta {
    background-color: var(--vt-dark);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.85rem 2.6rem;
    border: none;
    transition: var(--vt-transition);
}

.cta-section .btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(29, 29, 27, 0.35);
    color: #fff;
}

/* ---------- رأس الصفحات الداخلية ---------- */
.page-header-wrap { padding: 1.25rem; }

.page-header {
    background-color: var(--vt-dark);
    color: #fff;
    padding: clamp(3rem, 6vw, 4.5rem) 2rem;
    border-radius: var(--vt-radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(242, 98, 7, 0.22);
    top: -260px;
    inset-inline-end: -140px;
    filter: blur(10px);
}

.page-header::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(249, 174, 139, 0.16);
    bottom: -170px;
    inset-inline-start: -90px;
}

.page-header > * { position: relative; z-index: 1; }
.page-header h1 { font-weight: 700; letter-spacing: -0.5px; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-header p { color: rgba(255, 255, 255, 0.78); margin-bottom: 0; font-size: 1.05rem; }

/* ---------- النماذج ---------- */
.form-card {
    background-color: #fff;
    border-radius: var(--vt-radius-lg);
    box-shadow: var(--vt-shadow);
    padding: clamp(1.75rem, 4vw, 3rem);
}

.form-card .form-label { font-weight: 600; color: var(--vt-dark); }
.form-card .form-label .required { color: var(--vt-orange); }

.form-card h4 { color: var(--vt-dark); }
.form-card h4 i { color: var(--vt-orange); }

.form-control, .form-select {
    border: 1.5px solid #E3DED4;
    border-radius: var(--vt-radius-sm);
    padding: 0.7rem 1rem;
    background-color: var(--vt-cream);
    transition: var(--vt-transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--vt-orange);
    background-color: #fff;
    box-shadow: 0 0 0 0.22rem rgba(242, 98, 7, 0.12);
}

.form-check-input:checked {
    background-color: var(--vt-orange);
    border-color: var(--vt-orange);
}

.feature-check {
    background-color: var(--vt-cream);
    border: 1.5px solid #E3DED4;
    border-radius: var(--vt-radius-sm);
    padding: 0.8rem 1rem;
    padding-inline-start: 2.6rem;
    transition: var(--vt-transition);
    cursor: pointer;
}

.feature-check:hover { border-color: var(--vt-peach); background-color: #fff; }
.feature-check:has(.form-check-input:checked) {
    border-color: var(--vt-orange);
    background-color: rgba(242, 98, 7, 0.06);
}

/* ---------- تذييل الصفحة (فحمي دائري من الأعلى) ---------- */
.footer-vt {
    background-color: var(--vt-dark);
    color: rgba(255, 255, 255, 0.72);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    border-radius: var(--vt-radius-lg) var(--vt-radius-lg) 0 0;
}

.footer-vt h5 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-vt h5 i { color: var(--vt-orange); }
.footer-vt a { color: rgba(255, 255, 255, 0.72); text-decoration: none; transition: var(--vt-transition); }
.footer-vt a:hover { color: var(--vt-peach); }

.footer-vt .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-vt .social-icons a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    margin-inline-end: 0.5rem;
    transition: var(--vt-transition);
}

.footer-vt .social-icons a:hover { background-color: var(--vt-orange); color: #fff; transform: translateY(-3px); }

/* ---------- لوحة التحكم ---------- */
.admin-stat-card {
    border-radius: var(--vt-radius);
    padding: 1.5rem;
    color: #fff;
    box-shadow: var(--vt-shadow);
    transition: var(--vt-transition);
}

.admin-stat-card:hover { transform: translateY(-4px); }
.admin-stat-card .num { font-size: 2.2rem; font-weight: 700; }
.admin-stat-card.total { background: var(--vt-dark); }
.admin-stat-card.new { background: var(--vt-orange); }
.admin-stat-card.progress-c { background: var(--vt-amber); }
.admin-stat-card.done { background: var(--vt-green); }

.admin-table-card {
    background-color: #fff;
    border-radius: var(--vt-radius);
    box-shadow: var(--vt-shadow);
    padding: 1.5rem;
}

.admin-table-card table th { color: var(--vt-dark); font-weight: 700; white-space: nowrap; }

.badge-status { font-size: 0.8rem; padding: 0.45em 0.95em; border-radius: 999px; font-weight: 600; }
.badge-status.new { background-color: rgba(242, 98, 7, 0.14); color: var(--vt-orange-dark); }
.badge-status.in_progress { background-color: rgba(232, 161, 60, 0.18); color: #A96A14; }
.badge-status.completed { background-color: rgba(31, 157, 85, 0.14); color: #157244; }

/* لوحة التحكم تستخدم شريط تنقل داكن */
.navbar-vt.navbar-admin {
    background-color: var(--vt-dark);
    border-bottom: none;
}

.navbar-vt.navbar-admin .navbar-brand { color: #fff; }

/* ---------- شاشة دخول المشرف ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vt-dark);
    position: relative;
    overflow: hidden;
}

.login-wrap::before {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: rgba(242, 98, 7, 0.25);
    top: -280px;
    inset-inline-end: -160px;
    filter: blur(30px);
}

.login-wrap::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(249, 174, 139, 0.18);
    bottom: -240px;
    inset-inline-start: -120px;
    filter: blur(30px);
}

.login-card {
    background-color: var(--vt-cream);
    border-radius: var(--vt-radius-lg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    padding: 2.75rem;
    width: 100%;
    max-width: 430px;
    position: relative;
    z-index: 1;
}

/* ---------- شارة الثقة ---------- */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: .5rem 1.2rem;
    color: #fff;
    font-size: .9rem;
    backdrop-filter: blur(6px);
}

.trust-badge .stars { color: var(--vt-amber); letter-spacing: 2px; }

/* ---------- نظام التذاكر وبوابة العملاء ---------- */
.badge-status.active { background-color: rgba(242, 98, 7, 0.14); color: var(--vt-orange-dark); }
.badge-status.paused { background-color: rgba(232, 161, 60, 0.18); color: #A96A14; }

.file-pill {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--vt-cream);
    border: 1px solid #E3DED4;
    border-radius: 12px;
    padding: .55rem .9rem;
    font-size: .88rem;
    transition: var(--vt-transition);
}

.file-pill:hover { border-color: var(--vt-peach); background: #fff; }
.file-pill > i { color: var(--vt-orange); flex-shrink: 0; }
.file-pill a { color: var(--vt-dark); font-weight: 600; word-break: break-all; }
.file-pill a:hover { color: var(--vt-orange); }
.file-pill .meta { margin-inline-start: auto; color: var(--vt-muted); font-size: .7rem; white-space: nowrap; }

.comment {
    max-width: 88%;
    border-radius: 16px;
    padding: .65rem 1rem;
    margin-bottom: .6rem;
    font-size: .92rem;
}

.comment.client {
    background: #fff;
    border: 1.5px solid #E3DED4;
    color: var(--vt-dark);
    align-self: flex-start;
    border-start-start-radius: 4px;
}

.comment.admin {
    background: var(--vt-dark);
    color: #fff;
    align-self: flex-end;
    border-start-end-radius: 4px;
}

.comment .who { font-size: .66rem; opacity: .6; margin-bottom: .25rem; }

/* عارض الملفات داخل الصفحة (Lightbox) — شفاف بتأثير زجاجي */
.lightbox-content {
    background: rgba(20, 20, 17, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--vt-radius);
    overflow: hidden;
}

.lightbox-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    max-height: 74vh;
    padding: .5rem 3.5rem;
}

.lightbox-frame img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 10px;
}

/* عرض PDF والنصوص داخل النافذة */
.lightbox-embed {
    width: 100%;
    height: 70vh;
    border: 0;
    border-radius: 10px;
    background: #fff;
}

/* بطاقة مستند غير قابل للعرض (Word/ZIP...) */
.lightbox-doc {
    text-align: center;
    color: #fff;
    padding: 3rem 1rem;
}

.lightbox-doc > i {
    font-size: 3.5rem;
    color: var(--vt-peach);
}

#lightboxCarousel .carousel-control-prev,
#lightboxCarousel .carousel-control-next {
    width: 52px;
    opacity: .85;
}

#lightboxCarousel .carousel-control-prev-icon,
#lightboxCarousel .carousel-control-next-icon {
    background-color: rgba(242, 98, 7, 0.85);
    border-radius: 50%;
    padding: 1.15rem;
    background-size: 45%;
}

.file-pill a[data-lb] { cursor: zoom-in; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .85rem;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    border: 1.5px solid #E3DED4;
    transition: var(--vt-transition);
}

.gallery-grid a:hover img {
    transform: scale(1.03);
    border-color: var(--vt-orange);
    box-shadow: var(--vt-shadow-hover);
}

/* ---------- زر الواتساب العائم ---------- */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    z-index: 1060;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    transition: var(--vt-transition);
}

.whatsapp-fab:hover {
    background: #1EBE5A;
    color: #fff;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
    0%   { transform: scale(.9); opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 575.98px) {
    .whatsapp-fab { width: 50px; height: 50px; font-size: 1.55rem; bottom: 16px; right: 16px; }
}

/* ---------- متفرقات ---------- */
.rounded-photo {
    border-radius: var(--vt-radius-lg);
    width: 100%;
    object-fit: cover;
    box-shadow: var(--vt-shadow);
}

/* ---------- تجاوب الأجهزة اللوحية (≤ 991px) ---------- */
@media (max-width: 991.98px) {
    .hero { min-height: 70vh; }
    .hero-content { padding: clamp(1.75rem, 5vw, 3rem); padding-bottom: 1rem; }
    .hero h1, .hero .h1 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); }
    .hero p.lead { font-size: 1.02rem; }
    .stats-strip { padding: 2.5rem 1.25rem; }
    .photo-split img { min-height: 260px; }
    .section-title { margin-bottom: 2rem; }
    .navbar-vt .btn-order { margin-top: .5rem; width: 100%; text-align: center; }
}

/* ---------- تجاوب الجوالات (≤ 767px) ---------- */
@media (max-width: 767.98px) {
    .hero-wrap, .stats-strip-wrap, .page-header-wrap { padding: 0.75rem; }
    .hero { min-height: auto; }
    .hero-content { padding: 2rem 1.4rem 1rem; }
    .hero h1, .hero .h1 { font-size: clamp(1.55rem, 7vw, 2.1rem); line-height: 1.35; }
    .hero h1 br { display: none; }
    .hero p.lead { font-size: .95rem; line-height: 1.8; margin-bottom: 1.5rem; }
    .hero .btn-lg { padding: .65rem 1.4rem; font-size: .95rem; }
    .hero-indicators { gap: .75rem; padding: 0 1.4rem 1.4rem; }
    .hero-indicator { min-width: 100px; font-size: .68rem; }
    .trust-badge { font-size: .78rem; padding: .4rem .9rem; }
    .tech-marquee { padding: 1.75rem 0 .5rem; }
    .tech-item { font-size: 1.05rem; gap: .45rem; }
    .tech-item i { font-size: 1.2rem; }
    .marquee-track { gap: 2.2rem; }
    .bento-cell { min-height: 220px; padding: 1.6rem 1.4rem; }
    .bento-cell h3 { font-size: 1.45rem; }
    .bento-cell p { font-size: .93rem; }
    .stats-strip .stat-num { font-size: 1.9rem; }
    .stats-strip .stat-label { font-size: .85rem; }
    .cta-section { padding: 2.5rem 1.4rem; }
    .cta-section p { font-size: 1rem !important; }
    .page-header { padding: 2.25rem 1.4rem; }
    .form-card { padding: 1.4rem 1.1rem; }
    .vt-card { padding: 1.5rem 1.1rem; }
    .footer-vt { padding: 2.5rem 0 1.25rem; margin-top: 2.5rem; }
    .file-pill { flex-wrap: wrap; }
    .file-pill .meta { margin-inline-start: 0; width: 100%; }
    .comment { max-width: 100%; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
