/* نبراس — بوابة العملاء */
.customer-portal-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(8, 22, 40, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.customer-portal-overlay.show { display: flex; }

.customer-portal-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.customer-portal-modal h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #0d2840;
}
.customer-portal-modal p { margin: 0 0 16px; font-size: 0.85rem; color: #5d6d7e; }
.customer-portal-modal input {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid #d0dbe8;
    border-radius: 10px;
    font-family: inherit;
}
.cp-login-status { font-size: 0.82rem; color: #c0392b; min-height: 1.2em; margin-bottom: 8px; }
.cp-login-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.customer-portal-app {
    position: fixed;
    inset: 0;
    z-index: 11500;
    background: linear-gradient(160deg, #f4f8fc 0%, #e8f0f8 100%);
    overflow-x: hidden;
    overflow-y: auto;
    display: none;
    -webkit-overflow-scrolling: touch;
}
.customer-portal-app.show { display: block; }
body.customer-portal-open {
    overflow: hidden;
}
/* إخفاء عناصر الموقع تحت لوحة العميل — منع الشريط السفلي والبكسلة */
body.customer-portal-open #nebras-storefront,
body.customer-portal-open .nebras-mobile-commerce-bar,
body.customer-portal-open .cart-fab,
body.customer-portal-open .fab-send-channel-group,
body.customer-portal-open .fab-send-transfer-receipt,
body.customer-portal-open .nebras-callback-fab,
body.customer-portal-open #nebras-partners-section,
body.customer-portal-open #site-celebration-overlay,
body.customer-portal-open footer,
body.customer-portal-open .nebras-partners-section {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
/* المتجر من لوحة العميل — فوق اللوحة مع زر عودة */
body.customer-portal-store-active #nebras-workspace {
    z-index: 13000 !important;
}
body.customer-portal-store-active .customer-portal-app {
    visibility: hidden;
    pointer-events: none;
}
body.customer-portal-store-active .cart-fab,
body.customer-portal-store-active .nebras-mobile-commerce-bar {
    display: none !important;
}

#customer-portal-head {
    background: linear-gradient(135deg, #071828 0%, #0d2840 45%, #155e94 100%);
    color: #fff;
    padding: 28px 20px 22px;
    position: relative;
    overflow: hidden;
}
#customer-portal-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(0, 168, 255, 0.22), transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(201, 162, 39, 0.15), transparent 40%);
    pointer-events: none;
}
.cp-head-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.cp-head-inner--premium {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.cp-head-brand { position: relative; z-index: 1; }
.cp-head-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    margin-bottom: 8px;
}
.cp-head-inner h2 { margin: 0 0 4px; font-size: 1.35rem; }
.cp-head-inner p { margin: 0; opacity: 0.9; font-size: 0.88rem; }
.cp-logout-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
}

.cp-head-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.cp-head-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.cp-head-nav__btn:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.cp-head-nav__btn--active {
    background: rgba(255, 255, 255, 0.95);
    color: #0d2840;
    border-color: transparent;
}
.cp-head-nav__btn span { white-space: nowrap; }

#customer-portal-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

/* شبكة اللوحات — منظمة 2×2 */
.cp-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.cp-panels-grid .cp-panel {
    margin-bottom: 0;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}
.cp-panels-grid .cp-panel .cp-list {
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
}
.cp-stats--top { margin-bottom: 14px; }

/* زر العودة للوحة من المتجر */
.cp-store-back-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 13100;
    display: none;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #155e94, #0d2840);
    box-shadow: 0 12px 32px rgba(13, 40, 64, 0.35);
}
.cp-store-back-fab.show { display: inline-flex; }
[dir="ltr"] .cp-store-back-fab { left: auto; right: 20px; }

/* تخطيط لوحة العميل — عمود رئيسي + شريط جانبي */
.cp-dashboard-shell {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 16px;
    align-items: start;
}
.cp-dashboard-main { min-width: 0; }
.cp-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 12px;
}

.cp-sidebar-card {
    background: linear-gradient(165deg, #0d2840 0%, #134e6a 55%, #155e94 100%);
    border-radius: 18px;
    padding: 16px 14px;
    color: #fff;
    border: 1px solid rgba(0, 168, 255, 0.28);
    box-shadow: 0 10px 28px rgba(13, 40, 64, 0.2);
}
.cp-sidebar-card--promo {
    background: linear-gradient(165deg, #0a1e32 0%, #0d2840 50%, #1a5276 100%);
    border-color: rgba(201, 162, 39, 0.35);
}
.cp-sidebar-card--branches {
    background: linear-gradient(165deg, #0d2840 0%, #123a5c 100%);
}
.cp-sidebar-card h3 {
    margin: 0 0 6px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cp-sidebar-sub {
    margin: 0 0 10px;
    font-size: 0.72rem;
    opacity: 0.85;
    line-height: 1.45;
}
.cp-promo-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cp-promo-list li {
    font-size: 0.76rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    opacity: 0.92;
}
.cp-promo-list li i { color: #f0c040; margin-top: 2px; flex-shrink: 0; }
.cp-promo-cta {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    color: #0d2840;
    background: linear-gradient(135deg, #f0c040, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cp-promo-cta:hover { filter: brightness(1.05); }

.cp-branch-rail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding-left: 2px;
}
.cp-branch-rail-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px 10px 8px;
}
.cp-branch-rail-item strong {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 4px;
}
.cp-branch-rail-item strong i { color: #5dade2; margin-left: 4px; }
.cp-branch-rail-phone {
    display: block;
    font-size: 0.72rem;
    color: #a8d8f0;
    text-decoration: none;
    margin-bottom: 6px;
}
.cp-branch-rail-actions {
    display: flex;
    gap: 6px;
}
.cp-branch-rail-btn {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 0.72rem;
    cursor: pointer;
    font-family: inherit;
}
.cp-branch-rail-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* شكاوى العميل — فوق لوحة العميل */
body.customer-portal-open #complaint-overlay.show,
#complaint-overlay.show {
    z-index: 12600 !important;
}

.cp-action-btn--store { background: linear-gradient(145deg, #e67e22, #d35400); }

body.customer-portal-open #branches,
body.customer-portal-open #nebras-storefront > #branches {
    display: none !important;
}


/* معاينة أبواب + شركاء — نفس حركة الموقع */
.cp-hero-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.cp-showcase-card {
    background: linear-gradient(165deg, #0a1e32 0%, #0d2840 55%, #123a5c 100%);
    border-radius: 18px;
    padding: 12px 12px 14px;
    border: 1px solid rgba(0, 168, 255, 0.25);
    box-shadow: 0 12px 32px rgba(13, 40, 64, 0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 168px;
}
.cp-showcase-card--partners {
    background: linear-gradient(165deg, #0d2840 0%, #134e4a 100%);
    border-color: rgba(46, 204, 113, 0.35);
}
.cp-showcase-card--doors { cursor: pointer; }
.cp-showcase-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}
.cp-showcase-chip--doors { border-color: rgba(0, 168, 255, 0.5); }
.cp-showcase-chip--partners { border-color: rgba(46, 204, 113, 0.55); background: rgba(39, 174, 96, 0.2); }
.cp-showcase-frame {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.cp-showcase-frame .nebras-mini-showcase {
    --mini-showcase-w: clamp(78px, 22vw, 96px);
    --mini-showcase-h: clamp(118px, 30vw, 142px);
}

/* أزرار خدمة العميل */
.cp-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.cp-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 88px;
    padding: 12px 10px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #155e94, #0d2840);
    box-shadow: 0 8px 20px rgba(13, 40, 64, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cp-action-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13, 40, 64, 0.24); }
.cp-action-btn i { font-size: 1.15rem; }
.cp-action-btn span { font-size: 0.8rem; font-weight: 700; text-align: center; line-height: 1.3; }
.cp-action-btn small { font-size: 0.68rem; opacity: 0.88; direction: ltr; }
.cp-action-btn--complaint { background: linear-gradient(145deg, #c0392b, #922b21); }
.cp-action-btn--service { background: linear-gradient(145deg, #1a6fa8, #0d4a6e); }
.cp-action-btn--sales { background: linear-gradient(145deg, #0d2840, #1a5276); }
.cp-action-btn--rep { background: linear-gradient(145deg, #16a085, #0e6655); }
.cp-action-btn--pdf { background: linear-gradient(145deg, #8e44ad, #6c3483); }
.cp-action-btn[disabled] { opacity: 0.65; cursor: wait; }

.cp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.cp-stat {
    background: #fff;
    border: 1px solid #dce6f0;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}
.cp-stat strong { display: block; font-size: 1.2rem; color: #0d2840; }
.cp-stat span { font-size: 0.75rem; color: #718096; }
.cp-stat--vip { border-color: #d4af37; background: linear-gradient(135deg, #fffef8, #fff); }
.cp-stat--trusted { border-color: #27ae60; }

.cp-panel {
    background: #fff;
    border: 1px solid #dce6f0;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(13, 40, 64, 0.04);
}
.cp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.cp-panel-head h3 { margin: 0; }
.cp-panel-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #c0392b;
    background: rgba(192, 57, 43, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.cp-panel h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #1a5276;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cp-list { display: flex; flex-direction: column; gap: 8px; }
.cp-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #edf2f7;
}
.cp-row strong { color: #0d2840; font-size: 0.88rem; }
.cp-row span { color: #2980b9; font-size: 0.82rem; text-align: left; }
.cp-row small { grid-column: 1 / -1; color: #718096; font-size: 0.76rem; }

.cp-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(192, 57, 43, 0.12);
    color: #c0392b;
    font-size: 0.74rem;
    font-weight: 800;
}
.cp-empty { color: #718096; font-size: 0.85rem; margin: 0; }
.cp-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cp-subtab {
    font-size: 0.76rem;
    background: #e8f2fa;
    color: #1a5276;
    padding: 4px 10px;
    border-radius: 999px;
}

.cp-gov-card { --role-accent: #1a6fa8; }

/* نوع حساب العميل — مؤسسة / نقدي شخصي */
.cp-customer-type-fieldset {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d4e4f2;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbfe 0%, #fff 100%);
}
.cp-customer-type-fieldset legend {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1a5276;
    padding: 0 6px;
}
.cp-customer-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}
.cp-customer-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid #d4e4f2;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    color: #2d3748;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.cp-customer-type-option input { accent-color: #1a6fa8; }
.cp-customer-type-option.is-active {
    border-color: #1a6fa8;
    background: #e8f4fc;
    color: #1a5276;
}
.cp-customer-type-option span i { margin-left: 6px; color: #1a6fa8; }
.cp-customer-type-hint {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.8rem;
    color: #4a5568;
    line-height: 1.5;
}
.cp-editor-business-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.cp-editor-business-fields[hidden] { display: none !important; }
.cp-req { color: #c0392b; font-style: normal; font-weight: 800; }
.cp-customer-type-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.cp-customer-type-badge--business {
    background: rgba(26, 111, 168, 0.12);
    color: #1a5276;
}
.cp-customer-type-badge--cash {
    background: rgba(39, 174, 96, 0.12);
    color: #1e7e45;
}
.cp-gov-card .nebras-user-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.cp-gov-card .nebras-user-card-head > div { flex: 1 1 auto; }

.cp-loyalty-hint {
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #7d6608;
    margin-bottom: 14px;
}
.cp-loyalty-table th { font-size: 0.78rem; }

/* كشف حساب PDF */
.cp-statement-pdf-mount {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 794px;
    pointer-events: none;
    opacity: 0;
}
.cp-statement-pdf-doc {
    width: 794px;
    padding: 28px 32px;
    background: #fff;
    color: #0d2840;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}
.cp-statement-head {
    border-bottom: 4px solid #0d2840;
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.cp-statement-brand strong { display: block; font-size: 1.15rem; color: #0d2840; }
.cp-statement-brand span { font-size: 0.82rem; color: #5d6d7e; }
.cp-statement-head h2 { margin: 10px 0 4px; font-size: 1.05rem; }
.cp-statement-meta { margin-bottom: 14px; font-size: 0.88rem; }
.cp-statement-section { margin-bottom: 14px; }
.cp-statement-section h3 { font-size: 0.92rem; margin: 0 0 8px; color: #1a5276; }
.cp-statement-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.cp-statement-table th,
.cp-statement-table td { border: 1px solid #dce6f0; padding: 6px 8px; text-align: right; }
.cp-statement-table th { background: #e8f2fa; }
.cp-statement-empty { color: #718096; font-size: 0.82rem; }
.cp-statement-foot {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #dce6f0;
    font-size: 0.75rem;
    color: #718096;
    text-align: center;
}

/* لوحات إدارة بوابة العملاء — تمرير وظهور المحرر */
#customer-portal-governance .nebras-erp-modal,
#customer-loyalty-analytics .nebras-erp-modal {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: min(88vh, 920px);
}

#customer-portal-governance .scm-panel-toolbar,
#customer-loyalty-analytics .scm-panel-toolbar {
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#customer-portal-governance .scm-panel-toolbar button,
#customer-loyalty-analytics .scm-panel-toolbar button {
    pointer-events: auto;
    cursor: pointer;
}

#cp-gov-editor:not([hidden]) {
    padding: 0 24px 8px;
    scroll-margin-top: 88px;
}

#cp-gov-editor .nebras-editor-card {
    border: 2px solid #1a6fa8;
    box-shadow: 0 12px 36px rgba(26, 111, 168, 0.18);
}

#customer-loyalty-analytics.admin-section.show {
    z-index: 2010;
}

#cp-loyalty-body {
    padding: 0 24px 20px;
}

.cp-portal-access-block {
    border: 1px solid #c5dff0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 8px;
    grid-column: 1 / -1;
}
.cp-portal-access-block legend {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a5276;
    padding: 0 6px;
}
.cp-portal-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.cp-portal-access-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

@media (max-width: 520px) {
    .cp-quick-actions { grid-template-columns: repeat(2, 1fr); }
    .cp-panels-grid { grid-template-columns: 1fr; }
    .cp-dashboard-shell { grid-template-columns: 1fr; }
    .cp-dashboard-sidebar { position: static; }
    .cp-branch-rail { max-height: none; }
    .cp-promo-board__grid { grid-template-columns: 1fr; }
    .cp-head-inner--premium { flex-direction: column; align-items: stretch; }
    .cp-head-nav { justify-content: center; }
    .cp-head-nav__btn span { display: none; }
    .cp-head-nav__btn { padding: 9px 12px; }
}

/* لوحة الخصومات الديناميكية */
.cp-welcome-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
    border: 1px solid #dce6f0;
    box-shadow: 0 8px 24px rgba(13, 40, 64, 0.06);
}
.cp-welcome-strip__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #0d2840;
    background: #e8f2fa;
}
.cp-welcome-strip__badge--vip { background: linear-gradient(135deg, #fff8e1, #f9e79f); color: #7d6608; }
.cp-welcome-strip__badge--trusted { background: rgba(39, 174, 96, 0.15); color: #1e6f43; }
.cp-welcome-strip__copy { flex: 1 1 180px; min-width: 0; }
.cp-welcome-strip__copy strong { display: block; font-size: 0.92rem; color: #0d2840; }
.cp-welcome-strip__copy span { font-size: 0.76rem; color: #5d6d7e; }
.cp-welcome-strip__rep {
    border: 1px solid #c5dff0;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    color: #155e94;
    cursor: pointer;
}

.cp-promo-board {
    position: relative;
    margin-bottom: 16px;
    border-radius: 20px;
    overflow: hidden;
}
.cp-promo-board__glow {
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.18), transparent 55%);
    pointer-events: none;
}
.cp-promo-board__inner {
    position: relative;
    background: linear-gradient(165deg, #071828 0%, #0d2840 40%, #134e6a 70%, #1a6fa8 100%);
    border-radius: 20px;
    padding: 18px 18px 16px;
    color: #fff;
    border: 1px solid rgba(0, 168, 255, 0.35);
    box-shadow: 0 16px 40px rgba(13, 40, 64, 0.24);
}
.cp-promo-board__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.cp-promo-board__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(231, 76, 60, 0.92);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}
.cp-promo-board__tier {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cp-promo-board__tier--vip { background: rgba(249, 231, 159, 0.25); border-color: rgba(249, 231, 159, 0.5); }
.cp-promo-board__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
}
.cp-promo-board__sub {
    margin: 0 0 14px;
    font-size: 0.76rem;
    opacity: 0.92;
    line-height: 1.5;
}
.cp-promo-board__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}
.cp-promo-offer {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 10px 11px;
}
.cp-promo-offer strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 3px;
}
.cp-promo-offer span {
    font-size: 0.72rem;
    opacity: 0.9;
    line-height: 1.45;
}
.cp-promo-offer--hero,
.cp-promo-offer--highlight {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.35), rgba(230, 126, 34, 0.28));
    border-color: rgba(201, 162, 39, 0.55);
}
.cp-promo-price-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.78rem;
}
.cp-promo-price-pill s { opacity: 0.65; font-size: 0.72rem; }
.cp-promo-price-pill em {
    font-style: normal;
    font-weight: 800;
    color: #f9e79f;
    font-size: 0.95rem;
}
.cp-promo-price-pill span { font-size: 0.65rem; opacity: 0.8; width: 100%; }
.cp-promo-board__foot { margin-top: 12px; }
.cp-promo-board__cta {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    color: #0d2840;
    background: linear-gradient(135deg, #f9e79f, #f5b041);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.cp-promo-ticker {
    margin: 10px 0 0;
    font-size: 0.68rem;
    opacity: 0.85;
    border-top: 1px dashed rgba(255, 255, 255, 0.25);
    padding-top: 8px;
    line-height: 1.45;
}

.cp-sidebar-card--rep {
    background: linear-gradient(165deg, #0a1e32 0%, #123a5c 100%);
    border-color: rgba(46, 204, 113, 0.3);
}
.cp-rep-card { display: flex; flex-direction: column; gap: 8px; }
.cp-rep-card__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.76rem;
}
.cp-rep-card__row i { color: #5dade2; margin-top: 2px; }
.cp-rep-card__row strong { display: block; font-size: 0.68rem; opacity: 0.8; }
.cp-rep-card__row span { display: block; font-weight: 700; }
.cp-rep-card__btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    color: #0d2840;
    background: linear-gradient(135deg, #f0c040, #d4af37);
}
.cp-rep-card__btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cp-stats--premium .cp-stat {
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 6px 18px rgba(13, 40, 64, 0.06);
}
.cp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.cp-panel-head h3 { margin: 0; }
.cp-panel-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #c0392b;
    background: rgba(192, 57, 43, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}
.cp-row--clickable {
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.cp-row--clickable:hover,
.cp-row--clickable:focus {
    transform: translateY(-1px);
    border-color: #a8d4f0;
    box-shadow: 0 8px 20px rgba(21, 94, 148, 0.1);
    outline: none;
}
.cp-row__lead { min-width: 0; }
.cp-row__lead strong { display: block; color: #0d2840; font-size: 0.88rem; }
.cp-row__lead small { display: block; color: #718096; font-size: 0.74rem; margin-top: 2px; }
.cp-row__trail {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.cp-row__amount { color: #155e94; font-weight: 800; font-size: 0.88rem; }
.cp-row__chev { color: #a0aec0; font-size: 0.7rem; }
.cp-row__status {
    align-self: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a5276;
    background: #e8f2fa;
    padding: 4px 10px;
    border-radius: 999px;
}

/* عرض السعر الاحترافي للعميل */
.cp-quote-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 12800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 24, 40, 0.78);
    backdrop-filter: blur(4px);
}
.cp-quote-detail-overlay.show { display: flex; }
.cp-quote-detail-modal {
    width: min(520px, 100%);
    max-height: min(88vh, 720px);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 22px 20px 18px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.cp-quote-detail-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #edf2f7;
    color: #0d2840;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.cp-quote-detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #155e94;
    background: #e8f2fa;
    padding: 4px 10px;
    border-radius: 999px;
}
.cp-quote-detail-head h3 {
    margin: 10px 0 4px;
    font-size: 1.2rem;
    color: #0d2840;
}
.cp-quote-detail-meta { margin: 0; font-size: 0.8rem; color: #718096; }
.cp-quote-detail-disc {
    margin: 12px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
    font-size: 0.8rem;
    font-weight: 800;
}
.cp-quote-detail-totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0 14px;
}
.cp-quote-detail-totals div {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 10px 12px;
}
.cp-quote-detail-totals span { display: block; font-size: 0.72rem; color: #718096; }
.cp-quote-detail-totals strong { font-size: 0.95rem; color: #0d2840; }
.cp-quote-detail-grand { color: #155e94 !important; }
.cp-quote-detail-lines {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cp-quote-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #edf2f7;
}
.cp-quote-line__main { min-width: 0; flex: 1; }
.cp-quote-line__main strong { display: block; font-size: 0.84rem; color: #0d2840; }
.cp-quote-line__main small { display: block; font-size: 0.72rem; color: #718096; margin-top: 2px; }
.cp-quote-line__nums { text-align: end; flex-shrink: 0; }
.cp-quote-line__nums span { display: block; font-size: 0.72rem; color: #718096; }
.cp-quote-line__nums em { font-style: normal; font-weight: 800; color: #155e94; }
.cp-quote-line-disc {
    display: block;
    font-size: 0.68rem;
    color: #c0392b;
    font-weight: 700;
    margin-top: 2px;
}
.cp-quote-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cp-quote-detail-btn {
    width: 100%;
    border: 1px solid #dce6f0;
    border-radius: 12px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    color: #0d2840;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cp-quote-detail-btn--primary {
    background: linear-gradient(135deg, #155e94, #0d2840);
    color: #fff;
    border-color: transparent;
}
.cp-quote-detail-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(192, 57, 43, 0.08);
    color: #c0392b;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
}
