/*
 * عرض لفترة محدودة: باقة الفوترة بخصم 50% (السنة الأولى، الاشتراك السنوي، السعودية).
 * CSS عادي (لا يحتاج إعادة بناء Tailwind) بألوان نظام الموقع: brand (أزرق) + emerald + slate.
 * لإيقاف العرض: ابحث عن تعليقات «invoicing-offer» في الصفحات.
 */

/* ── شارة الهيرو (بنمط شارة زاتكا) ─────────────────────── */
.io-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: .3rem .75rem .3rem .3rem;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    align-self: flex-start;
    transition: border-color .2s ease, background-color .2s ease;
}
[dir="rtl"] .io-pill { padding: .3rem .3rem .3rem .75rem; }
.io-pill:hover { border-color: #60a5fa; background: #dbeafe; }
.io-pill:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.io-pill__tag {
    flex-shrink: 0;
    padding: .1rem .55rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
}
.io-pill__arrow { flex-shrink: 0; color: #2563eb; }
[dir="rtl"] .io-pill__arrow { transform: scaleX(-1); }
.dark .io-pill { border-color: rgba(59, 130, 246, .4); background: rgba(30, 58, 138, .25); color: #bfdbfe; }
.dark .io-pill:hover { background: rgba(30, 58, 138, .4); }
.dark .io-pill__arrow { color: #fbbf24; }

/* ── بطاقة العرض (بنمط صناديق الموقع الفاتحة) ─────────── */
.io-card {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 50%, #ecfdf5 100%);
    color: #475569;
}
.dark .io-card {
    border-color: #334155;
    background: #1e293b;
    color: #cbd5e1;
}

.io-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
    background: #fff;
    color: #065f46;
    font-size: .8rem;
    font-weight: 700;
}
.io-eyebrow__dot { width: .5rem; height: .5rem; border-radius: 999px; background: #10b981; }
.dark .io-eyebrow { border-color: rgba(6, 95, 70, .6); background: #0f172a; color: #6ee7b7; }

.io-title {
    margin: 1rem 0 .75rem;
    color: #0f172a;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 900;
    line-height: 1.4;
    text-wrap: balance;
}
.io-title mark { background: none; color: #2563eb; white-space: nowrap; }
.dark .io-title { color: #fff; }
.dark .io-title mark { color: #60a5fa; }

.io-lead { margin: 0 0 1.5rem; max-width: 40rem; font-size: 1rem; line-height: 1.8; }
.io-lead strong { color: #0f172a; }
.dark .io-lead strong { color: #fff; }

.io-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 1rem;
    font-size: .9rem;
    color: #334155;
}
.io-list li { display: flex; gap: .45rem; align-items: flex-start; }
.io-list svg { flex-shrink: 0; margin-top: .2rem; color: #10b981; }
.dark .io-list { color: #cbd5e1; }

.io-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.io-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .875rem 1.75rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.io-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.io-btn--primary { background: #2563eb; color: #fff; box-shadow: 0 10px 15px -3px rgba(37, 99, 235, .25); }
.io-btn--primary:hover { background: #1d4ed8; }
.io-btn--ghost { border: 1px solid #e2e8f0; background: #fff; color: #1e293b; }
.io-btn--ghost:hover { border-color: #93c5fd; color: #1d4ed8; }
.dark .io-btn--ghost { border-color: #475569; background: #0f172a; color: #f1f5f9; }
.dark .io-btn--ghost:hover { border-color: #fbbf24; color: #fbbf24; }

/* بطاقة السعر */
.io-ticket {
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 10px 30px -12px rgba(37, 99, 235, .18);
}
.dark .io-ticket { border-color: #475569; background: #0f172a; box-shadow: none; }
.io-seal {
    position: absolute;
    top: -.85rem;
    left: 50%;
    transform: translateX(-50%);
    padding: .25rem .9rem;
    border-radius: 999px;
    background: #059669;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 10px -4px rgba(5, 150, 105, .6);
}
.io-seal div, .io-seal span, .io-seal small { display: inline; font-size: inherit; }
.io-seal small { margin-inline-start: .25rem; }
.io-ticket__plan { margin: 0; font-size: .95rem; font-weight: 700; color: #1d4ed8; }
.dark .io-ticket__plan { color: #93c5fd; }
.io-ticket__was { margin: .75rem 0 0; font-size: .875rem; color: #64748b; }
.io-ticket__was s { color: #94a3b8; }
.io-ticket__price {
    margin: .25rem 0 0;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.io-ticket__price small { font-size: .95rem; font-weight: 600; color: #64748b; }
.dark .io-ticket__price { color: #fff; }
.dark .io-ticket__price small, .dark .io-ticket__was, .dark .io-ticket__per { color: #94a3b8; }
.io-ticket__per { margin: .25rem 0 0; font-size: .85rem; color: #64748b; }
.io-ticket__save {
    display: inline-block;
    margin-top: .75rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
    background: #d1fae5;
    color: #047857;
    font-size: .75rem;
    font-weight: 800;
}
.dark .io-ticket__save { border-color: rgba(6, 95, 70, .6); background: rgba(6, 78, 59, .4); color: #6ee7b7; }
.io-ticket hr { margin: 1.1rem 0 .9rem; border: 0; border-top: 1px solid #e2e8f0; }
.dark .io-ticket hr { border-top-color: #334155; }
.io-terms { margin: 0; font-size: .75rem; line-height: 1.7; color: #64748b; }
.dark .io-terms { color: #94a3b8; }

@media (max-width: 860px) {
    .io-card { grid-template-columns: 1fr; padding: 1.75rem 1.25rem; gap: 2rem; }
    .io-ticket { max-width: 26rem; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
    .io-list { grid-template-columns: 1fr; }
    .io-actions .io-btn { flex: 1 1 100%; }
    .io-ticket__price { font-size: 2.6rem; }
}

/* ── بطاقة الباقة في جدول الأسعار ─────────────────────── */
.io-card-flag {
    /* بنمط شارة «الأكثر طلباً» داخل البطاقة */
    position: absolute;
    top: .9rem;
    inset-inline-end: .9rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: #059669;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
/* العرض للسعودية فقط: لا إطار مميز حين تكون الدولة المكتشفة مصر */
html:not([data-pricing-region="EG"]) .io-plan-outline { border-color: #34d399 !important; }
.io-price-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: .375rem;
    padding: .125rem .5rem;
    border-radius: 999px;
    background: #d1fae5;
    color: #047857;
    box-shadow: 0 0 0 1px #a7f3d0;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.dark .io-price-badge { background: rgba(6, 78, 59, .4); color: #6ee7b7; box-shadow: 0 0 0 1px rgba(6, 95, 70, .6); }
