/**
 * AZM Gym — هوية بصرية للوحة التحكم (Viho)
 * ألوان الشعار: كحلي Navy #0A2148، أزرق فاتح، أبيض
 */
body.azm-brand.dark-only {
    --azm-navy: #3D6BB5;
    --azm-navy-deep: #0A2148;
    --azm-navy-glow: rgba(61, 107, 181, 0.45);
    --azm-black: #050810;
    --azm-surface: #0a1020;
    --azm-surface-2: #101828;
    --azm-border: rgba(61, 107, 181, 0.30);
    --azm-accent: #4A7FD4;
    --azm-text: rgba(255, 255, 255, 0.92);
    --azm-input-bg: #121a2c;
    --azm-input-bg-hover: #182238;
    --azm-input-border: rgba(255, 255, 255, 0.14);
    --azm-input-border-focus: rgba(61, 107, 181, 0.65);
    --azm-input-placeholder: rgba(255, 255, 255, 0.38);
}

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

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

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

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

/* الشريط الجانبي */
body.azm-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav,
body.azm-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(--azm-border) !important;
    box-shadow: inset -1px 0 0 rgba(61, 107, 181, 0.12);
}

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

body.azm-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .sidebar-user img {
    border-color: var(--azm-navy-glow) !important;
    box-shadow: 0 0 0 2px rgba(61, 107, 181, 0.25);
}

/* عنصر القائمة النشط */
body.azm-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu > li .nav-link.active,
body.azm-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(61, 107, 181, 0.25) 0%, rgba(20, 20, 20, 0.95) 100%) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    border-inline-start: 3px solid var(--azm-accent) !important;
    box-shadow: 0 2px 12px rgba(61, 107, 181, 0.15);
}

body.azm-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(61, 107, 181, 0.12) !important;
}

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

/* شارة المستخدم */
body.azm-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(--azm-navy) 0%, var(--azm-navy-deep) 100%) !important;
    border: 1px solid rgba(74, 127, 212, 0.4);
}

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

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

body.azm-brand.dark-only .card-stat {
    background: linear-gradient(165deg, #121a2c 0%, #0a1020 100%) !important;
    border: 1px solid var(--azm-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.azm-brand.dark-only .card-stat i {
    background: linear-gradient(145deg, #3D6BB5 0%, #0A2148 100%) !important;
}

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

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

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

body.azm-brand.dark-only .table td,
body.azm-brand.dark-only .table tbody th {
    border-color: rgba(61, 107, 181, 0.15) !important;
}

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

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

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

/* أزرار */
body.azm-brand.dark-only .btn-primary {
    background: linear-gradient(180deg, #4A7FD4 0%, var(--azm-navy) 45%, var(--azm-navy-deep) 100%) !important;
    border-color: #163A78 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(61, 107, 181, 0.35);
    font-weight: 700;
}

body.azm-brand.dark-only .btn-primary:hover,
body.azm-brand.dark-only .btn-primary:focus {
    background: linear-gradient(180deg, #5B8FE0 0%, #3D6BB5 100%) !important;
    border-color: #4A7FD4 !important;
    color: #ffffff !important;
}

body.azm-brand.dark-only .btn-primary-light {
    background: rgba(61, 107, 181, 0.20) !important;
    border: 1px solid var(--azm-border) !important;
    color: #ffffff !important;
}

body.azm-brand.dark-only .btn-primary-light:hover {
    background: rgba(61, 107, 181, 0.35) !important;
    color: #fff !important;
}

body.azm-brand.dark-only .btn-outline-primary {
    color: #9ec1f5 !important;
    border-color: var(--azm-navy) !important;
}

body.azm-brand.dark-only .btn-outline-primary:hover {
    background: var(--azm-navy) !important;
    color: #ffffff !important;
}

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

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

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

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

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

body.azm-brand.dark-only .form-control:disabled,
body.azm-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.azm-brand.dark-only .input-group-text {
    background-color: #252528 !important;
    border-color: var(--azm-input-border) !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

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

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

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

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

body.azm-brand.dark-only .azm-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.azm-brand.dark-only .azm-sidebar-brand__accent {
    height: 2px;
    width: 48px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--azm-accent), transparent);
}

/* شعار الهيدر */
.azm-header-logo {
    max-height: 52px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 3px 6px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

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

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

body.azm-brand.dark-only .azm-sub-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 80% at 100% 0%, rgba(61, 107, 181, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 0% 100%, rgba(74, 127, 212, 0.10) 0%, transparent 50%),
        linear-gradient(135deg, #0e1628 0%, #0a1020 50%, #050810 100%);
    pointer-events: none;
}

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

body.azm-brand.dark-only .azm-sub-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(74, 127, 212, 0.35) 0%, rgba(22, 58, 120, 0.5) 100%);
    border: 2px solid rgba(74, 127, 212, 0.45);
    box-shadow: 0 8px 32px rgba(61, 107, 181, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

body.azm-brand.dark-only .azm-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.azm-brand.dark-only .azm-badge--success {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

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

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

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

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

body.azm-brand.dark-only .azm-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.azm-brand.dark-only .azm-kpi-card--navy .azm-kpi-card__icon {
    background: linear-gradient(145deg, rgba(74, 127, 212, 0.35), rgba(22, 58, 120, 0.35));
    color: var(--azm-accent);
}

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

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

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

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

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

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

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

/* لوحة الإجراءات السريعة */
body.azm-brand.dark-only .azm-actions-panel {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--azm-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.azm-brand.dark-only .azm-sub-hero-actions {
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(61, 107, 181, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.35);
}

body.azm-brand.dark-only .azm-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.azm-brand.dark-only .azm-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

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

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

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

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

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

body.azm-brand.dark-only .azm-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.azm-brand.dark-only .azm-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.azm-brand.dark-only .azm-action-btn--transfer {
    color: #ffffff !important;
    background: linear-gradient(135deg, #4A7FD4 0%, #3D6BB5 55%, #163A78 100%) !important;
    border-color: rgba(74, 127, 212, 0.55) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

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

body.azm-brand.dark-only .azm-modal-confirm {
    background: #121c30 !important;
    border-radius: 14px !important;
}

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

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

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

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

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

body.azm-brand.dark-only .azm-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.azm-brand.dark-only .azm-pay-stat--paid .azm-pay-stat__icon {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

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

body.azm-brand.dark-only .azm-pay-stat--done .azm-pay-stat__icon {
    background: rgba(61, 107, 181, 0.15);
    color: var(--azm-accent);
}

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

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

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

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

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

body.azm-brand.dark-only .azm-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(--azm-border) !important;
    background: linear-gradient(180deg, #141e32 0%, #0a1220 100%) !important;
    padding: 0.9rem 1rem !important;
    white-space: nowrap;
}

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

body.azm-brand.dark-only .azm-table tbody tr:hover {
    background: rgba(61, 107, 181, 0.06) !important;
}

body.azm-brand.dark-only .azm-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.azm-brand.dark-only .azm-empty-state {
    border: 1px dashed var(--azm-border);
    background: rgba(255, 255, 255, 0.02);
}

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

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

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

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

body.azm-brand.dark-only .azm-edit-summary__note {
    border-top: 1px solid var(--azm-border);
    background: linear-gradient(90deg, rgba(74, 127, 212, 0.12) 0%, rgba(61, 107, 181, 0.08) 100%);
    color: rgba(255, 255, 255, 0.88);
}

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

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

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

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

body.azm-brand.dark-only .azm-payment-modal__body {
    background: linear-gradient(180deg, #18243a 0%, #121c30 100%) !important;
}

body.azm-brand.dark-only .azm-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.azm-brand.dark-only .azm-payment-modal__footer {
    background: #0e1628 !important;
    border-top: 1px solid var(--azm-border) !important;
    padding: 1rem 1.25rem !important;
}

body.azm-brand.dark-only .azm-payment-modal__footer .btn-outline-danger {
    background: transparent !important;
    border: 1px solid #dc3545 !important;
    color: #ff6b75 !important;
}

body.azm-brand.dark-only .azm-payment-modal__footer .btn-outline-danger:hover,
body.azm-brand.dark-only .azm-payment-modal__footer .btn-outline-danger:focus {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

body.azm-brand.dark-only .azm-payment-modal__suffix {
    background: rgba(61, 107, 181, 0.12) !important;
    border-color: var(--azm-input-border) !important;
    color: var(--azm-accent) !important;
    font-weight: 700;
    font-size: 0.85rem;
}

body.azm-brand.dark-only .azm-payment-modal__transfer-wrap {
    border: 1px solid rgba(61, 107, 181, 0.35);
    background: rgba(61, 107, 181, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

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

body.azm-brand.dark-only .azm-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(--azm-border);
}

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

/* المودالات فقط — أفتح بدرجة بسيطة عن الصفحة، بدون تغيير باقي الواجهة */
body.azm-brand.dark-only .modal-content {
    background: #141e32 !important;
    border: 1px solid var(--azm-border) !important;
    color: var(--azm-text) !important;
}

body.azm-brand.dark-only .modal-header,
body.azm-brand.dark-only .modal-footer {
    background: #101828 !important;
    border-color: var(--azm-border) !important;
}

body.azm-brand.dark-only .modal-body {
    background: #162238 !important;
}

body.azm-brand.dark-only .modal .form-control,
body.azm-brand.dark-only .modal .form-select,
body.azm-brand.dark-only .modal textarea.form-control {
    background-color: #1c2a42 !important;
}

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

body.azm-brand.dark-only .git-deploy-page-viho .azm-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.azm-brand.dark-only .git-deploy-page-viho .azm-git-deploy-header__breadcrumb {
    font-size: 0.875rem;
    line-height: 1.55;
}

body.azm-brand.dark-only .git-deploy-page-viho .azm-git-deploy-header__breadcrumb .breadcrumb-item a {
    color: rgba(61, 107, 181, 0.9);
    text-decoration: none;
}

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

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

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

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

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

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

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

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

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

body.azm-brand.dark-only .git-deploy-page-viho .azm-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.azm-brand.dark-only .git-deploy-page-viho .azm-git-deploy-notice-card__text {
    display: block;
}

body.azm-brand.dark-only .git-deploy-page-viho .azm-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.azm-brand.dark-only .git-deploy-page-viho .azm-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.azm-brand.dark-only .git-deploy-page-viho .azm-git-deploy-result {
    background: linear-gradient(165deg, #121a2c 0%, #0a1020 100%) !important;
    border: 1px solid var(--azm-border) !important;
}

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

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

body.azm-brand.dark-only .git-deploy-page-viho .azm-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.azm-brand.dark-only .git-deploy-page-viho .azm-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.azm-brand.dark-only .git-deploy-page-viho .azm-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.azm-brand.dark-only .git-deploy-page-viho .azm-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.azm-brand.dark-only .git-deploy-page-viho .azm-git-deploy-btn span {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

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

body.azm-brand.dark-only .git-deploy-page-viho .azm-git-deploy-result--ok .azm-git-deploy-result__icon {
    background: rgba(61, 107, 181, 0.15);
    color: var(--azm-accent);
    border: 1px solid rgba(61, 107, 181, 0.35);
}

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

body.azm-brand.dark-only .git-deploy-page-viho .azm-git-deploy-log {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid var(--azm-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;
}

/* ─── Bottom Navigation (Viho — جوال / تابلت) ─── */
body.azm-brand.dark-only .viho-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    body.azm-brand.has-bottom-nav.dark-only .page-body {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.azm-brand.has-bottom-nav.dark-only .footer {
        margin-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    body.azm-brand.dark-only .viho-bottom-nav {
        display: block;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 1035;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        pointer-events: none;
    }

    body.azm-brand.dark-only .viho-bottom-nav__inner {
        pointer-events: auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: stretch;
        min-height: 4.25rem;
        margin: 0 0.5rem 0.5rem;
        padding: 0.35rem 0.25rem 0.25rem;
        border-radius: 16px;
        background: linear-gradient(180deg, #0d1a33 0%, #0a0a0a 100%);
        border: 1px solid var(--azm-border);
        box-shadow:
            0 -4px 24px rgba(0, 0, 0, 0.55),
            0 8px 32px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(61, 107, 181, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body.azm-brand.dark-only .viho-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        padding: 0.35rem 0.15rem;
        text-decoration: none !important;
        color: rgba(255, 255, 255, 0.55);
        border-radius: 12px;
        transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    body.azm-brand.dark-only .viho-bottom-nav__item:hover,
    body.azm-brand.dark-only .viho-bottom-nav__item:focus-visible {
        color: rgba(255, 255, 255, 0.88);
        background: rgba(61, 107, 181, 0.1);
        outline: none;
    }

    body.azm-brand.dark-only .viho-bottom-nav__item.is-active {
        color: #ffffff;
        background: linear-gradient(180deg, rgba(61, 107, 181, 0.28) 0%, rgba(61, 107, 181, 0.08) 100%);
        box-shadow: inset 0 0 0 1px rgba(61, 107, 181, 0.35);
    }

    body.azm-brand.dark-only .viho-bottom-nav__item.is-active .viho-bottom-nav__icon-wrap {
        color: var(--azm-navy);
        transform: translateY(-1px);
    }

    body.azm-brand.dark-only .viho-bottom-nav__icon-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.75rem;
        height: 1.75rem;
        transition: transform 0.15s ease, color 0.2s ease;
    }

    body.azm-brand.dark-only .viho-bottom-nav__icon-wrap svg,
    body.azm-brand.dark-only .viho-bottom-nav__icon-wrap .viho-bottom-nav-feather {
        width: 1.35rem;
        height: 1.35rem;
        stroke-width: 2px;
    }

    body.azm-brand.dark-only .viho-bottom-nav__label {
        font-size: 0.62rem;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0 2px;
    }

    body.azm-brand.dark-only .viho-bottom-nav__item.is-active .viho-bottom-nav__label {
        color: var(--azm-navy);
    }

    /* عدد أقل من 4 عناصر (صلاحيات) */
    body.azm-brand.dark-only .viho-bottom-nav__inner:has(.viho-bottom-nav__item:nth-child(3):last-child) {
        grid-template-columns: repeat(3, 1fr);
    }

    body.azm-brand.dark-only .viho-bottom-nav__inner:has(.viho-bottom-nav__item:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
    }

    body.azm-brand.dark-only .viho-bottom-nav__inner:has(.viho-bottom-nav__item:only-child) {
        grid-template-columns: 1fr;
    }
}

/* ========== Viho-style pagination (Livewire bootstrap) ========== */
body.azm-brand .viho-pagination {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.azm-brand .viho-pagination__bar {
    gap: 0.75rem;
}

body.azm-brand .viho-pagination__info {
    font-size: 0.85rem;
}

body.azm-brand .viho-pagination__info strong {
    color: var(--azm-navy, #3D6BB5);
    font-weight: 700;
}

body.azm-brand .viho-pagination .pagination {
    margin-bottom: 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* ����� width: 36px ����� ���� ���� ����� ������ */
body.azm-brand .viho-pagination .page-link,
body.azm-brand.dark-only .viho-pagination .page-link,
body.azm-brand.dark-only .card .viho-pagination .page-link,
body.azm-brand.dark-only .viho-pagination button.page-link {
    width: auto !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    border: 1px solid var(--azm-border, rgba(61, 107, 181, 0.30)) !important;
    background: var(--azm-surface-2, #161616) !important;
    color: var(--azm-text, rgba(255, 255, 255, 0.92)) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

body.azm-brand.dark-only .viho-pagination .page-item:first-child .page-link,
body.azm-brand.dark-only .viho-pagination .page-item:last-child .page-link,
body.azm-brand .rtl .viho-pagination .page-item:first-child .page-link,
body.azm-brand .rtl .viho-pagination .page-item:last-child .page-link {
    border-radius: 8px !important;
    background: var(--azm-surface-2, #161616) !important;
    color: var(--azm-text, rgba(255, 255, 255, 0.92)) !important;
}

body.azm-brand.dark-only .viho-pagination .page-item:hover:not(.disabled):not(.active) .page-link {
    background: rgba(61, 107, 181, 0.12) !important;
    border-color: rgba(61, 107, 181, 0.45) !important;
    color: var(--azm-navy, #3D6BB5) !important;
}

body.azm-brand.dark-only .viho-pagination .page-item.active .page-link,
body.azm-brand.dark-only .card .viho-pagination .page-item.active .page-link {
    background: linear-gradient(180deg, #4A7FD4 0%, var(--azm-navy, #3D6BB5) 45%, var(--azm-navy-deep, #163A78) 100%) !important;
    border-color: var(--azm-navy-deep, #163A78) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(61, 107, 181, 0.35) !important;
    cursor: default !important;
}

body.azm-brand.dark-only .viho-pagination .page-item.disabled .page-link {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

body.azm-brand.dark-only .pagination-primary .page-item .page-link {
    color: var(--azm-text, rgba(255, 255, 255, 0.92)) !important;
}

body.azm-brand.dark-only .pagination-primary .page-item.active .page-link {
    color: #ffffff !important;
}
