/* ============================================
   وِصلة آب لخدمات الأعمال
   Midnight Luxury Theme - RTL
   ============================================ */

:root {
    /* الألوان الأساسية */
    --color-bg: #0a0a0f;
    --color-bg-elevated: #13131a;
    --color-bg-card: #16161f;
    --color-border: #26262f;
    --color-border-light: #34343f;

    /* الذهبي */
    --color-gold: #d4af37;
    --color-gold-light: #f0d878;
    --color-gold-dim: #8a7228;

    /* النصوص */
    --color-text: #f5f3ee;
    --color-text-muted: #c2c2cc;
    --color-text-dim: #9292a0;

    /* الحالة */
    --color-success: #3ecf8e;
    --color-whatsapp: #25d366;

    /* الخطوط */
    --font-display: 'Cairo', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', 'Cairo', sans-serif;

    /* القياسات */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-card: 0 10px 40px -15px rgba(0, 0, 0, 0.6);
    --shadow-gold-glow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 8px 30px -10px rgba(212, 175, 55, 0.25);
}

* {
    box-sizing: border-box;
}

/* تجاوز لون text-muted الافتراضي من Bootstrap (كان غامقاً يختفي على الخلفية الداكنة) */
.text-muted {
    color: var(--color-text-muted) !important;
}

/* ====== حجم افتراضي آمن لكل أيقونات SVG ====== */
/* يمنع ظهور الأيقونات بحجم ضخم لو تأخر تحميل CSS أو غاب السياق */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
svg.icon, svg.bn-icon, svg.like-heart {
    max-width: 100%;
}
/* أي SVG داخل زر أو رابط بدون كلاس مخصص يلتزم بحجم منطقي */
.btn svg:not([class*="like"]),
.nav-link svg,
.social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: var(--color-gold-light);
    transition: color .2s ease;
}

a:hover {
    color: var(--color-gold);
}

::selection {
    background: var(--color-gold-dim);
    color: var(--color-bg);
}

/* ====== خلفية مزخرفة ====== */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.08), transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.05), transparent 40%),
        var(--color-bg);
    pointer-events: none;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 60%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 60%);
}

/* ====== شريط علوي ====== */
.navbar {
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    padding-block: .85rem;
    z-index: 1000;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-text) !important;
    letter-spacing: .5px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-gold-dim));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: var(--shadow-gold-glow);
    flex-shrink: 0;
}

.navbar .nav-link {
    color: var(--color-text-muted);
    font-weight: 600;
    padding: .5rem 1rem !important;
    transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--color-gold-light);
}

.navbar-toggler {
    border: 1px solid var(--color-border-light);
    color: var(--color-text);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

/* ====== الأزرار ====== */
.btn {
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: .7rem 1.6rem;
    transition: all .25s ease;
    border: 1px solid transparent;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-bg);
    box-shadow: var(--shadow-gold-glow);
}

.btn-gold:hover {
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(212, 175, 55, 0.45);
}

.btn-outline-gold {
    border-color: var(--color-gold-dim);
    color: var(--color-gold-light);
    background: transparent;
}

.btn-outline-gold:hover {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.08);
    color: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    color: #fff;
    background: #1ebe5d;
    transform: translateY(-2px);
}

.btn-sm-pill {
    border-radius: 999px;
    padding: .45rem 1.1rem;
    font-size: .85rem;
}

/* ====== Hero ====== */
.hero {
    padding-top: 7.5rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--color-gold-light);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: 1px;
    border: 1px solid var(--color-border-light);
    border-radius: 999px;
    padding: .4rem 1rem;
    background: rgba(212, 175, 55, 0.06);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero h1 .gold-text {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 620px;
}

/* بطاقة الإيصال - العنصر المميز في الـ Hero */
.receipt-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    max-width: 380px;
    margin-inline-start: auto;
}

.receipt-card::before {
    content: '';
    position: absolute;
    top: -60px;
    inset-inline-end: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
}

.receipt-card .receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--color-border-light);
    margin-bottom: 1rem;
}

.receipt-card .receipt-header .status-dot {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--color-success);
    font-weight: 700;
}

.receipt-card .receipt-header .status-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.15);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    font-size: .92rem;
}

.receipt-row .label {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: .55rem;
}

.receipt-row .icon-chip {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.receipt-row .icon-chip .icon {
    width: 15px;
    height: 15px;
}

.receipt-row .value {
    font-weight: 700;
}

.receipt-row .value.done {
    color: var(--color-success);
}

.receipt-card .receipt-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--color-border-light);
    text-align: center;
    color: var(--color-text-dim);
    font-size: .8rem;
    letter-spacing: 1.5px;
    font-family: monospace;
}

/* ====== الإحصائيات ====== */
.stats-strip {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-block: 2.5rem;
    background: var(--color-bg-elevated);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--color-gold-light);
    line-height: 1;
}

.stat-item .stat-label {
    color: var(--color-text-muted);
    font-size: .9rem;
    margin-top: .4rem;
}

/* ====== أقسام عامة ====== */
.section {
    padding-block: 5.5rem;
}

.section-eyebrow {
    color: var(--color-gold-light);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: .8rem;
    text-transform: uppercase;
    margin-bottom: .6rem;
    display: block;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: .75rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    max-width: 640px;
}

.section-header {
    margin-bottom: 3rem;
}

/* ====== عن الشركة ====== */
.about-figure {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
}

.about-figure .badge-available {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(62, 207, 142, 0.1);
    color: var(--color-success);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.about-figure .badge-available::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
}

/* محتوى منسق من محرر WYSIWYG (صفحة من نحن، المقالات) */
.about-body, .post-content {
    color: var(--color-text-muted);
    font-size: 1.02rem;
    line-height: 1.9;
}

.about-body p, .post-content p {
    margin-bottom: 1.25rem;
}

.about-body h2, .post-content h2 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 2rem 0 1rem;
}

.about-body h3, .post-content h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin: 1.75rem 0 .9rem;
}

.about-body ul, .post-content ul,
.about-body ol, .post-content ol {
    margin-bottom: 1.25rem;
    padding-inline-start: 1.5rem;
}

.about-body li, .post-content li {
    margin-bottom: .5rem;
}

.about-body img, .post-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.about-body a, .post-content a {
    text-decoration: underline;
    text-decoration-color: var(--color-gold-dim);
}

.about-body blockquote, .post-content blockquote {
    border-inline-start: 3px solid var(--color-gold);
    padding-inline-start: 1.25rem;
    color: var(--color-text);
    font-style: italic;
    margin: 1.5rem 0;
}

.about-body strong, .post-content strong {
    color: var(--color-text);
}

.value-pill {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
}

.value-pill:first-of-type {
    border-top: none;
}

.value-pill .icon-chip {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-pill .icon-chip .icon {
    width: 20px;
    height: 20px;
}

.value-pill h6 {
    margin-bottom: .2rem;
    font-size: 1rem;
}

.value-pill p {
    color: var(--color-text-muted);
    font-size: .9rem;
    margin: 0;
}

/* ====== بطاقات الخدمات ====== */
.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    height: 100%;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold-dim);
    box-shadow: var(--shadow-card);
}

.service-card .service-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(212,175,55,0.18), rgba(212,175,55,0.04));
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-card .service-icon .icon {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: .6rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: .92rem;
    margin-bottom: 1.25rem;
}

.service-card .service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.service-card .service-features li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .87rem;
    color: var(--color-text-muted);
}

.service-card .service-features .icon {
    width: 16px;
    height: 16px;
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: .15rem;
}

.service-card .service-badge {
    position: absolute;
    top: -10px;
    inset-inline-end: 1.5rem;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-bg);
    font-size: .72rem;
    font-weight: 800;
    padding: .3rem .9rem;
    border-radius: 999px;
    box-shadow: var(--shadow-gold-glow);
}

.service-card .service-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: var(--color-gold-light);
    font-size: .9rem;
}

.service-card .service-cta .icon {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.service-card:hover .service-cta .icon {
    transform: translateX(-4px);
}

/* ====== الباقات (بطاقات عضوية) ====== */
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: .35rem;
    gap: .25rem;
}

.pricing-toggle .toggle-option {
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 700;
    padding: .55rem 1.5rem;
    border-radius: 999px;
    font-size: .9rem;
    transition: all .25s ease;
    cursor: pointer;
    position: relative;
}

.pricing-toggle .toggle-option.active {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-bg);
}

.pricing-toggle .save-chip {
    font-size: .68rem;
    background: rgba(62, 207, 142, 0.15);
    color: var(--color-success);
    padding: .12rem .5rem;
    border-radius: 999px;
    margin-inline-start: .4rem;
    font-weight: 800;
}

.pricing-toggle .toggle-option.active .save-chip {
    background: rgba(10,10,15,0.15);
    color: var(--color-bg);
}

/* بطاقة الباقة - تصميم بطاقة عضوية معدنية */
.plan-card {
    background: linear-gradient(165deg, var(--color-bg-card), var(--color-bg-elevated));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: transform .3s ease, border-color .3s ease;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-6px);
}

.plan-card.featured {
    border-color: var(--color-gold);
    background: linear-gradient(165deg, #1c1a12, var(--color-bg-elevated));
    box-shadow: var(--shadow-gold-glow);
}

.plan-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, rgba(212,175,55,0.04) 0 2px, transparent 2px 14px);
    pointer-events: none;
}

.plan-card .plan-badge {
    position: absolute;
    top: 1.5rem;
    inset-inline-end: -2px;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    color: var(--color-bg);
    font-size: .72rem;
    font-weight: 800;
    padding: .35rem 1.2rem .35rem 1rem;
    border-radius: 999px 0 0 999px;
}

.plan-card .plan-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

.plan-card .plan-tagline {
    color: var(--color-text-muted);
    font-size: .88rem;
    margin-bottom: 1.5rem;
    min-height: 2.6rem;
}

.plan-card .plan-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin-bottom: .25rem;
    font-family: var(--font-display);
}

.plan-card .plan-price .amount {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-text);
}

.plan-card .plan-price .currency,
.plan-card .plan-price .period {
    color: var(--color-text-muted);
    font-size: .95rem;
    font-weight: 600;
}

.plan-card .plan-yearly-note {
    color: var(--color-text-dim);
    font-size: .8rem;
    margin-bottom: 1.5rem;
    min-height: 1.2rem;
}

.plan-card .plan-yearly-note .save-amount {
    color: var(--color-success);
    font-weight: 700;
}

.plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.plan-card .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .92rem;
}

.plan-card .plan-features .icon {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
    flex-shrink: 0;
    margin-top: .15rem;
}

.plan-card .btn {
    width: 100%;
    text-align: center;
}

/* ====== التواصل ====== */
.contact-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
}

.contact-info-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.contact-info-row .icon-chip {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-row .icon-chip .icon {
    width: 21px;
    height: 21px;
}

.contact-info-row .info-label {
    color: var(--color-text-dim);
    font-size: .8rem;
    margin-bottom: .15rem;
}

.contact-info-row .info-value {
    font-weight: 700;
    color: var(--color-text);
}

.form-control,
.form-select {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background: var(--color-bg-elevated);
    border-color: var(--color-gold-dim);
    color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.form-control::placeholder {
    color: var(--color-text-dim);
}

.form-label {
    color: var(--color-text-muted);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

/* ====== Footer ====== */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding-block: 3rem;
    background: var(--color-bg-elevated);
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: .75rem;
}

.site-footer p {
    color: var(--color-text-dim);
    font-size: .9rem;
}

.site-footer ul a {
    color: var(--color-text-muted);
    font-size: .9rem;
    transition: color .2s ease;
}

.site-footer ul a:hover {
    color: var(--color-gold-light);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all .2s ease;
}

.social-link .icon {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: var(--color-gold-light);
    border-color: var(--color-gold-dim);
}

/* ====== زر واتساب العائم ====== */
.float-whatsapp {
    position: fixed;
    bottom: 1.75rem;
    inset-inline-start: 1.75rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--color-whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.55);
    z-index: 999;
    transition: transform .2s ease;
}

.float-whatsapp .icon {
    width: 28px;
    height: 28px;
}

.float-whatsapp:hover {
    transform: scale(1.08);
    color: #fff;
}

/* ====== أيقونات عامة ====== */
.icon {
    width: 22px;
    height: 22px;
}

/* ====== استجابة الموبايل ====== */
@media (max-width: 991.98px) {
    .receipt-card {
        margin-inline-start: 0;
        margin-top: 2.5rem;
        max-width: 100%;
    }
    .hero {
        padding-top: 6.5rem;
    }
    .section {
        padding-block: 3.5rem;
    }
}

/* ====== حركة ظهور بسيطة ====== */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        animation: fadeInUp .6s ease both;
    }
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(16px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ====== التركيز للوصولية ====== */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* ============================================================
   ====== شكل التطبيق على الجوال (Mobile App Experience) ======
   يُطبّق فقط على شاشات الجوال — الديسكتوب يبقى كما هو
   ============================================================ */

/* الافتراضي: مخفي على الديسكتوب */
.bottom-nav { display: none; }
.pwa-install-banner { display: none; }

@media (max-width: 991.98px) {

    /* ====== شريط التنقل السفلي ====== */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        inset-inline: 0;
        background: rgba(18, 18, 26, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--color-border);
        padding: .4rem .25rem calc(.4rem + env(safe-area-inset-bottom, 0px));
        z-index: 1050;
        justify-content: space-around;
        align-items: stretch;
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: .35rem .2rem;
        color: var(--color-text-dim);
        text-decoration: none;
        font-size: .68rem;
        font-weight: 600;
        border-radius: 12px;
        transition: color .2s ease, background .2s ease;
        position: relative;
    }

    .bottom-nav-item .bn-icon {
        width: 22px;
        height: 22px;
        transition: transform .2s ease;
    }

    .bottom-nav-item.active {
        color: var(--color-gold);
    }

    .bottom-nav-item.active .bn-icon {
        transform: translateY(-1px) scale(1.08);
    }

    /* مؤشر علوي صغير للعنصر النشط */
    .bottom-nav-item.active::before {
        content: '';
        position: absolute;
        top: -1px;
        width: 28px;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: var(--color-gold);
    }

    .bottom-nav-item:active {
        background: rgba(212, 175, 55, 0.08);
    }

    /* نضيف مساحة سفلية للمحتوى حتى لا يغطيه الشريط */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    /* نخفي زر واتساب العائم لأنه يتعارض مع الشريط السفلي */
    .float-whatsapp {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        width: 48px;
        height: 48px;
    }

    /* ====== الهيدر بأسلوب تطبيق ====== */
    .navbar {
        background: rgba(10, 10, 15, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding-top: env(safe-area-inset-top, 0px);
    }

    /* نخفي روابط القائمة العلوية المكررة على الجوال (متاحة بالشريط السفلي) */
    /* تبقى القائمة العلوية تعرض زر اللغة وواتساب فقط بشكل عملي */

    /* ====== البطاقات بأسلوب تطبيق ====== */
    .service-card,
    .plan-card,
    .contact-card,
    .about-figure {
        border-radius: 20px;
    }

    /* انتقالات سلسة عند الضغط */
    .service-card:active,
    .plan-card:active {
        transform: scale(0.985);
        transition: transform .12s ease;
    }

    /* ====== بانر تثبيت التطبيق ====== */
    .pwa-install-banner {
        display: none; /* يُفعّل عبر JS */
        position: fixed;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        inset-inline: 12px;
        background: linear-gradient(135deg, var(--color-bg-card), #1c1c28);
        border: 1px solid var(--color-gold-dim, rgba(212,175,55,.3));
        border-radius: 18px;
        padding: .85rem 1rem;
        z-index: 1060;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        box-shadow: 0 12px 40px rgba(0,0,0,.5);
        animation: pwaSlideUp .4s ease;
    }

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

    .pwa-install-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .pwa-install-text strong {
        color: var(--color-text);
        font-size: .95rem;
    }
    .pwa-install-text span {
        color: var(--color-text-dim);
        font-size: .78rem;
    }
    .pwa-install-actions {
        display: flex;
        align-items: center;
        gap: .5rem;
        flex-shrink: 0;
    }
    .pwa-dismiss {
        background: none;
        border: none;
        color: var(--color-text-dim);
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        padding: 0 .25rem;
    }
}

/* وضع standalone (التطبيق مثبّت): تحسينات إضافية */
@media (display-mode: standalone) {
    /* نخفي أي روابط "تثبيت" لأنه مثبّت */
    .pwa-install-banner { display: none !important; }

    /* الهيدر يحترم منطقة النوتش */
    .navbar {
        padding-top: env(safe-area-inset-top, 0px);
    }
}

/* ====== زر الإعجاب على المقال ====== */
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-card);
    border: 1.5px solid var(--color-border-light);
    color: var(--color-text-muted);
    padding: 12px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.like-btn .like-heart {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--color-text-muted);
    stroke-width: 1.8;
    transition: all .25s ease;
}

.like-btn:hover {
    border-color: var(--color-gold-dim);
    color: var(--color-gold-light);
}
.like-btn:hover .like-heart {
    stroke: var(--color-gold-light);
}

/* الحالة بعد الإعجاب */
.like-btn.liked {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--color-gold);
    color: var(--color-gold-light);
}
.like-btn.liked .like-heart {
    fill: var(--color-gold);
    stroke: var(--color-gold);
}

/* تأثير النبض عند الضغط */
.like-btn.pulse .like-heart {
    animation: likePulse .4s ease;
}
@keyframes likePulse {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.35); }
    70%  { transform: scale(.9); }
    100% { transform: scale(1); }
}

.like-btn:active {
    transform: scale(.96);
}
