/**
 * Barakat Gym — هوية بصرية للوحة التحكم (Viho)
 * ألوان الشعار: أسود عميق، ذهبي، أبيض، لمسات رمادية
 */
body.barakat-brand.dark-only {
    --barakat-gold: #c9a227;
    --barakat-gold-deep: #9a7d1e;
    --barakat-gold-glow: rgba(201, 162, 39, 0.45);
    --barakat-black: #050505;
    --barakat-surface: #0f0f0f;
    --barakat-surface-2: #161616;
    --barakat-border: rgba(201, 162, 39, 0.30);
    --barakat-accent: #d4af37;
    --barakat-text: rgba(255, 255, 255, 0.92);
    --barakat-input-bg: #1c1c1f;
    --barakat-input-bg-hover: #232326;
    --barakat-input-border: rgba(255, 255, 255, 0.14);
    --barakat-input-border-focus: rgba(201, 162, 39, 0.65);
    --barakat-input-placeholder: rgba(255, 255, 255, 0.38);
}

/* خلفية المحتوى الرئيسي */
body.barakat-brand.dark-only .page-body {
    background: radial-gradient(ellipse 140% 120% at 50% -20%, #1f1a0a 0%, #0a0a0a 45%, #000000 100%) !important;
}

body.barakat-brand.dark-only .page-wrapper .page-body-wrapper {
    background-color: var(--barakat-black) !important;
}

/* الهيدر العلوي */
body.barakat-brand.dark-only .compact-wrapper .page-main-header .main-header-right,
body.barakat-brand.dark-only .page-wrapper.horizontal-wrapper .page-main-header .main-header-right {
    background: linear-gradient(180deg, #1a1508 0%, #0a0a0a 100%) !important;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.55) !important;
    border-bottom: 2px solid var(--barakat-gold) !important;
}

body.barakat-brand.dark-only .compact-wrapper .page-main-header .main-header-left {
    background: transparent !important;
}

/* الشريط الجانبي */
body.barakat-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav,
body.barakat-brand.dark-only .page-wrapper.horizontal-wrapper .page-body-wrapper.horizontal-menu header.main-nav {
    background: linear-gradient(180deg, #121212 0%, #080808 100%) !important;
    border-color: var(--barakat-border) !important;
    box-shadow: inset -1px 0 0 rgba(201, 162, 39, 0.12);
}

body.barakat-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .sidebar-user {
    border-color: var(--barakat-border) !important;
}

body.barakat-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .sidebar-user img {
    border-color: var(--barakat-gold-glow) !important;
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}

/* عنصر القائمة النشط */
body.barakat-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu > li .nav-link.active,
body.barakat-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu > li > a.active {
    background: linear-gradient(270deg, rgba(201, 162, 39, 0.25) 0%, rgba(20, 20, 20, 0.95) 100%) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    border-inline-start: 3px solid var(--barakat-accent) !important;
    box-shadow: 0 2px 12px rgba(201, 162, 39, 0.15);
}

body.barakat-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu > li > a:hover {
    color: #ffffff !important;
    background-color: rgba(201, 162, 39, 0.12) !important;
}

body.barakat-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .nav-menu .dropdown ul.nav-submenu li a.active {
    color: #ffeebb !important;
    text-shadow: none !important;
}

/* شارة المستخدم */
body.barakat-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .sidebar-user .badge-bottom .badge.badge-primary {
    background: linear-gradient(180deg, var(--barakat-gold) 0%, var(--barakat-gold-deep) 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* البطاقات والجداول */
body.barakat-brand.dark-only .card {
    background-color: var(--barakat-surface-2) !important;
    border: 1px solid var(--barakat-border) !important;
}

body.barakat-brand.dark-only .card-header {
    border-bottom-color: var(--barakat-border) !important;
}

body.barakat-brand.dark-only .card-stat {
    background: linear-gradient(165deg, #181818 0%, #101010 100%) !important;
    border: 1px solid var(--barakat-border) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.barakat-brand.dark-only .card-stat i {
    background: linear-gradient(145deg, #8a7520 0%, #5c4d10 100%) !important;
}

body.barakat-brand.dark-only .table-responsive {
    background-color: var(--barakat-surface) !important;
    border: 1px solid var(--barakat-border) !important;
}

body.barakat-brand.dark-only .table {
    color: var(--barakat-text) !important;
}

body.barakat-brand.dark-only .table thead th {
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: var(--barakat-border) !important;
}

body.barakat-brand.dark-only .table td,
body.barakat-brand.dark-only .table tbody th {
    border-color: rgba(201, 162, 39, 0.15) !important;
}

/* عناوين الصفحات */
body.barakat-brand.dark-only .page-header h3,
body.barakat-brand.dark-only .content-header h3 {
    color: #ffffff !important;
}

body.barakat-brand.dark-only .breadcrumb-item.active {
    color: var(--barakat-accent) !important;
}

body.barakat-brand.dark-only .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* أزرار */
body.barakat-brand.dark-only .btn-primary {
    background: linear-gradient(180deg, #d4af37 0%, var(--barakat-gold) 45%, var(--barakat-gold-deep) 100%) !important;
    border-color: #7a6518 !important;
    color: #1a1200 !important;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.35);
    font-weight: 700;
}

body.barakat-brand.dark-only .btn-primary:hover,
body.barakat-brand.dark-only .btn-primary:focus {
    background: linear-gradient(180deg, #e0c040 0%, #c9a227 100%) !important;
    border-color: #8a7520 !important;
    color: #1a1200 !important;
}

body.barakat-brand.dark-only .btn-primary-light {
    background: rgba(201, 162, 39, 0.20) !important;
    border: 1px solid var(--barakat-border) !important;
    color: #ffffff !important;
}

body.barakat-brand.dark-only .btn-primary-light:hover {
    background: rgba(201, 162, 39, 0.35) !important;
    color: #fff !important;
}

body.barakat-brand.dark-only .btn-outline-primary {
    color: #ffeebb !important;
    border-color: var(--barakat-gold) !important;
}

body.barakat-brand.dark-only .btn-outline-primary:hover {
    background: var(--barakat-gold) !important;
    color: #1a1200 !important;
}

body.barakat-brand.dark-only .badge-primary {
    background: linear-gradient(180deg, var(--barakat-gold) 0%, var(--barakat-gold-deep) 100%) !important;
}

/* النماذج — حقول إدخال محايدة */
body.barakat-brand.dark-only .form-control,
body.barakat-brand.dark-only .form-select,
body.barakat-brand.dark-only textarea.form-control,
body.barakat-brand.dark-only input[type="text"],
body.barakat-brand.dark-only input[type="email"],
body.barakat-brand.dark-only input[type="password"],
body.barakat-brand.dark-only input[type="number"],
body.barakat-brand.dark-only input[type="tel"],
body.barakat-brand.dark-only input[type="url"],
body.barakat-brand.dark-only input[type="search"],
body.barakat-brand.dark-only input[type="date"],
body.barakat-brand.dark-only input[type="datetime-local"],
body.barakat-brand.dark-only input[type="time"] {
    background-color: var(--barakat-input-bg) !important;
    border-color: var(--barakat-input-border) !important;
    color: var(--barakat-text) !important;
}

body.barakat-brand.dark-only .form-control:hover:not(:disabled):not([readonly]),
body.barakat-brand.dark-only .form-select:hover:not(:disabled) {
    background-color: var(--barakat-input-bg-hover) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.barakat-brand.dark-only .form-control:focus,
body.barakat-brand.dark-only .form-select:focus {
    background-color: var(--barakat-input-bg-hover) !important;
    border-color: var(--barakat-input-border-focus) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.15rem rgba(201, 162, 39, 0.18) !important;
}

body.barakat-brand.dark-only .form-control::placeholder,
body.barakat-brand.dark-only textarea::placeholder {
    color: var(--barakat-input-placeholder) !important;
}

body.barakat-brand.dark-only .form-control:disabled,
body.barakat-brand.dark-only .form-select:disabled {
    background-color: #141416 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    opacity: 1 !important;
}

body.barakat-brand.dark-only .input-group-text {
    background-color: #252528 !important;
    border-color: var(--barakat-input-border) !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

body.barakat-brand.dark-only .input-group .form-control:focus {
    z-index: 3;
}

/* التذييل */
body.barakat-brand.dark-only .compact-wrapper .page-body-wrapper footer,
body.barakat-brand.dark-only footer.footer {
    background: #020202 !important;
    border-top: 1px solid var(--barakat-border) !important;
}

body.barakat-brand.dark-only footer.footer p,
body.barakat-brand.dark-only .footer-copyright {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* علامة الشريط الجانبي */
body.barakat-brand.dark-only .barakat-sidebar-brand {
    border-bottom: 1px solid var(--barakat-border) !important;
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.12) 0%, transparent 100%);
}

body.barakat-brand.dark-only .barakat-sidebar-brand__title {
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

body.barakat-brand.dark-only .barakat-sidebar-brand__accent {
    height: 2px;
    width: 48px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--barakat-accent), transparent);
}

/* شعار الهيدر */
.barakat-header-logo {
    max-height: 42px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

/* ========== صفحة الاشتراك + المدفوعات (Viho / Barakat احترافي) ========== */
body.barakat-brand.dark-only .barakat-page-title {
    letter-spacing: 0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

body.barakat-brand.dark-only .barakat-sub-hero {
    background: var(--barakat-surface) !important;
    border: 1px solid var(--barakat-border) !important;
    border-radius: 16px !important;
    position: relative;
}

body.barakat-brand.dark-only .barakat-sub-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 80% at 100% 0%, rgba(201, 162, 39, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 0% 100%, rgba(212, 175, 55, 0.10) 0%, transparent 50%),
        linear-gradient(135deg, #121212 0%, #0a0a0a 50%, #050505 100%);
    pointer-events: none;
}

body.barakat-brand.dark-only .barakat-sub-hero .card-body {
    z-index: 1;
}

body.barakat-brand.dark-only .barakat-sub-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.35) 0%, rgba(154, 125, 30, 0.5) 100%);
    border: 2px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 8px 32px rgba(201, 162, 39, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.barakat-brand.dark-only .barakat-sub-avatar__letter {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
}

body.barakat-brand.dark-only .barakat-badge {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

body.barakat-brand.dark-only .barakat-badge--success {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

body.barakat-brand.dark-only .barakat-badge--danger {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

body.barakat-brand.dark-only .barakat-badge--info {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.35);
}

body.barakat-brand.dark-only .barakat-kpi-card {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--barakat-border);
    background: linear-gradient(180deg, var(--barakat-surface-2) 0%, #0c0c0c 100%);
    min-height: 92px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.barakat-brand.dark-only .barakat-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

body.barakat-brand.dark-only .barakat-kpi-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

body.barakat-brand.dark-only .barakat-kpi-card--gold .barakat-kpi-card__icon {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.35), rgba(154, 125, 30, 0.35));
    color: var(--barakat-accent);
}

body.barakat-brand.dark-only .barakat-kpi-card--cyan .barakat-kpi-card__icon {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

body.barakat-brand.dark-only .barakat-kpi-card--rose .barakat-kpi-card__icon {
    background: rgba(244, 114, 182, 0.12);
    color: #f472b6;
}

body.barakat-brand.dark-only .barakat-kpi-card--emerald .barakat-kpi-card__icon {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

body.barakat-brand.dark-only .barakat-kpi-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
}

body.barakat-brand.dark-only .barakat-kpi-card__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
}

body.barakat-brand.dark-only .barakat-kpi-card__value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--barakat-text);
    line-height: 1.2;
}

body.barakat-brand.dark-only .barakat-kpi-card__value small {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.75;
}

/* لوحة الإجراءات السريعة */
body.barakat-brand.dark-only .barakat-actions-panel {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--barakat-border);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(8, 8, 8, 0.98) 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

body.barakat-brand.dark-only .barakat-sub-hero-actions {
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.35);
}

body.barakat-brand.dark-only .barakat-action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.55rem 1.15rem !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.02em;
    border: 2px solid transparent !important;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

body.barakat-brand.dark-only .barakat-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

body.barakat-brand.dark-only .barakat-action-btn__ico {
    font-size: 1.1rem;
}

body.barakat-brand.dark-only .barakat-action-btn__text {
    white-space: nowrap;
}

body.barakat-brand.dark-only .barakat-freeze-ico-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

body.barakat-brand.dark-only .barakat-freeze-ico-wrap--freeze {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

body.barakat-brand.dark-only .barakat-freeze-ico-wrap--unfreeze {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

body.barakat-brand.dark-only .barakat-action-btn--freeze {
    color: #1a0f00 !important;
    background: linear-gradient(180deg, #ffc94a 0%, #e6a800 45%, #c98700 100%) !important;
    border-color: rgba(255, 220, 120, 0.55) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.barakat-brand.dark-only .barakat-action-btn--unfreeze {
    color: #ffffff !important;
    background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 50%, #0369a1 100%) !important;
    border-color: rgba(125, 211, 252, 0.45) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

body.barakat-brand.dark-only .barakat-action-btn--transfer {
    color: #fff8e8 !important;
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 55%, #9a7d1e 100%) !important;
    border-color: rgba(212, 175, 55, 0.55) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

body.barakat-brand.dark-only .barakat-action-btn--transfer:hover {
    color: #fff !important;
}

body.barakat-brand.dark-only .barakat-modal-confirm {
    background: var(--barakat-surface) !important;
    border-radius: 14px !important;
}

body.barakat-brand.dark-only .barakat-modal-confirm__icon {
    display: inline-block;
    vertical-align: middle;
}

/* قسم المدفوعات */
body.barakat-brand.dark-only .barakat-payments-card {
    background: var(--barakat-surface) !important;
    border-radius: 16px !important;
}

body.barakat-brand.dark-only .barakat-payments-card__head {
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.22) 0%, rgba(20, 20, 20, 0.98) 45%, #0a0a0a 100%);
    border-bottom: 1px solid var(--barakat-border);
}

body.barakat-brand.dark-only .barakat-payments-card__icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.15);
    color: var(--barakat-accent);
    font-size: 1.1rem;
}

body.barakat-brand.dark-only .barakat-pay-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--barakat-border);
    background: var(--barakat-surface-2);
    min-height: 88px;
}

body.barakat-brand.dark-only .barakat-pay-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

body.barakat-brand.dark-only .barakat-pay-stat--paid .barakat-pay-stat__icon {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

body.barakat-brand.dark-only .barakat-pay-stat--due .barakat-pay-stat__icon {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

body.barakat-brand.dark-only .barakat-pay-stat--done .barakat-pay-stat__icon {
    background: rgba(201, 162, 39, 0.15);
    color: var(--barakat-accent);
}

body.barakat-brand.dark-only .barakat-pay-stat--info .barakat-pay-stat__icon {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

body.barakat-brand.dark-only .barakat-pay-stat__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.45);
}

body.barakat-brand.dark-only .barakat-pay-stat__num {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--barakat-text);
}

body.barakat-brand.dark-only .barakat-pay-stat__num--sm {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

body.barakat-brand.dark-only .barakat-table-shell {
    border-radius: 12px;
    border: 1px solid var(--barakat-border);
    overflow: hidden;
    background: #080808;
}

body.barakat-brand.dark-only .barakat-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid var(--barakat-border) !important;
    background: linear-gradient(180deg, #141414 0%, #0c0c0c 100%) !important;
    padding: 0.9rem 1rem !important;
    white-space: nowrap;
}

body.barakat-brand.dark-only .barakat-table tbody td {
    padding: 0.85rem 1rem !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    vertical-align: middle;
}

body.barakat-brand.dark-only .barakat-table tbody tr:hover {
    background: rgba(201, 162, 39, 0.06) !important;
}

body.barakat-brand.dark-only .barakat-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.barakat-brand.dark-only .barakat-empty-state {
    border: 1px dashed var(--barakat-border);
    background: rgba(255, 255, 255, 0.02);
}

body.barakat-brand.dark-only .barakat-fw-500 {
    font-weight: 500;
}

body.barakat-brand.dark-only .payments-amount-cell {
    color: #4ade80 !important;
    font-variant-numeric: tabular-nums;
}

/* ملخص مالي — صفحة تعديل الاشتراك (Viho + Barakat) */
body.barakat-brand.dark-only .barakat-edit-summary {
    border-radius: 16px;
    border: 1px solid var(--barakat-border);
    background: var(--barakat-surface);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

body.barakat-brand.dark-only .barakat-edit-summary .barakat-pay-stat {
    height: 100%;
    margin-bottom: 0;
}

body.barakat-brand.dark-only .barakat-edit-summary__note {
    border-top: 1px solid var(--barakat-border);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(201, 162, 39, 0.08) 100%);
    color: rgba(255, 255, 255, 0.88);
}

body.barakat-brand.dark-only .barakat-edit-summary__note .barakat-edit-summary__note-title {
    color: var(--barakat-accent);
    font-weight: 700;
}

body.barakat-brand.dark-only .barakat-edit-summary__note > .d-flex > .fa {
    color: var(--barakat-accent);
}

/* مودال إضافة دفعة (Viho + Barakat) */
body.barakat-brand.dark-only .barakat-payment-modal {
    background: var(--barakat-surface) !important;
    border: 1px solid var(--barakat-border) !important;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55) !important;
}

body.barakat-brand.dark-only .barakat-payment-modal .modal-header.barakat-payments-card__head {
    border-radius: 0;
}

body.barakat-brand.dark-only .barakat-payment-modal__body {
    background: linear-gradient(180deg, var(--barakat-surface-2) 0%, #0c0c0c 100%) !important;
}

body.barakat-brand.dark-only .barakat-payment-modal__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55) !important;
}

body.barakat-brand.dark-only .barakat-payment-modal__footer {
    background: rgba(0, 0, 0, 0.4) !important;
    border-top: 1px solid var(--barakat-border) !important;
    padding: 1rem 1.25rem !important;
}

body.barakat-brand.dark-only .barakat-payment-modal__suffix {
    background: rgba(201, 162, 39, 0.12) !important;
    border-color: var(--barakat-input-border) !important;
    color: var(--barakat-accent) !important;
    font-weight: 700;
    font-size: 0.85rem;
}

body.barakat-brand.dark-only .barakat-payment-modal__transfer-wrap {
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: rgba(201, 162, 39, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.barakat-brand.dark-only .barakat-payment-modal .input-group .form-control {
    border-inline-end: 0;
}

body.barakat-brand.dark-only .barakat-payment-modal .input-group .input-group-text {
    border-inline-start: 0;
}

body.barakat-brand.dark-only .barakat-payment-modal__section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.42) !important;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--barakat-border);
}

body.barakat-brand.dark-only .barakat-payment-modal__remaining {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--barakat-border);
    color: var(--barakat-accent);
    font-variant-numeric: tabular-nums;
    min-height: 42px;
    display: flex;
    align-items: center;
}

/* —— صفحة تحديث النظام (Viho + Barakat) —— */
body.barakat-brand.dark-only .git-deploy-page-viho {
    font-family: 'Tajawal', sans-serif;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-header__title {
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-header__breadcrumb {
    font-size: 0.875rem;
    line-height: 1.55;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-header__breadcrumb .breadcrumb-item a {
    color: rgba(201, 162, 39, 0.9);
    text-decoration: none;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-header__breadcrumb .breadcrumb-item a:hover {
    color: var(--barakat-accent);
    text-decoration: underline;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-header__breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-main-card {
    background: linear-gradient(165deg, #181818 0%, #101010 100%) !important;
    border: 1px solid var(--barakat-border) !important;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.35) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid var(--barakat-border);
    color: var(--barakat-accent);
    font-size: 1.15rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-card-icon--large {
    width: 72px;
    height: 72px;
    font-size: 1.75rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    gap: 0.5rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-btn__icon {
    flex-shrink: 0;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-notice-card {
    background: linear-gradient(165deg, #181818 0%, #101010 100%) !important;
    border: 1px solid var(--barakat-border) !important;
    border-inline-start: 4px solid var(--barakat-accent) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-notice-card__icon {
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.28);
    color: var(--barakat-accent);
    font-size: 1.35rem;
    height: 3rem;
    width: 3rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-notice-card__title {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-notice-card__text {
    display: block;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-notice-card__lead {
    color: rgba(255, 255, 255, 0.96);
    display: block;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.65;
    margin-bottom: 0.35rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-notice-card__sub {
    color: rgba(255, 255, 255, 0.62);
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.65;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-result {
    background: linear-gradient(165deg, #181818 0%, #101010 100%) !important;
    border: 1px solid var(--barakat-border) !important;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-result--ok {
    border-inline-start: 4px solid var(--barakat-accent) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-result--fail {
    border-inline-start: 4px solid #c9302c !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-result__heading {
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-result__lead {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.7;
    margin-inline: auto;
    max-width: 22rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-main-card__title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-main-card__hint {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.75;
    margin-inline: auto;
    max-width: 19rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-btn span {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-result__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-result--ok .barakat-git-deploy-result__icon {
    background: rgba(201, 162, 39, 0.15);
    color: var(--barakat-accent);
    border: 1px solid rgba(201, 162, 39, 0.35);
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-result--fail .barakat-git-deploy-result__icon {
    background: rgba(201, 48, 44, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(201, 48, 44, 0.4);
}

body.barakat-brand.dark-only .git-deploy-page-viho .barakat-git-deploy-log {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid var(--barakat-border) !important;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.55;
    padding: 1rem 1.15rem;
    max-height: 360px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
