﻿/**
 * Empire Gym â€” ظ‡ظˆظٹط© ط¨طµط±ظٹط© ظ„ظ„ظˆط­ط© ط§ظ„طھط­ظƒظ… (Viho)
 * ط£ظ„ظˆط§ظ† ط§ظ„ط´ط¹ط§ط±: ط£ط³ظˆط¯ ط¹ظ…ظٹظ‚طŒ ط£ط­ظ…ط± ط¯ط§ظƒظ†طŒ ط£ط¨ظٹط¶طŒ ظ„ظ…ط³ط§طھ ط°ظ‡ط¨ظٹط©
 */
body.empire-brand.dark-only {
    --empire-red: #8b0000;
    --empire-red-deep: #5c0000;
    --empire-red-glow: rgba(139, 0, 0, 0.45);
    --empire-black: #050505;
    --empire-surface: #0f0f0f;
    --empire-surface-2: #161616;
    --empire-border: rgba(139, 0, 0, 0.35);
    --empire-gold: #c9a227;
    --empire-text: rgba(255, 255, 255, 0.92);
    /* ط­ظ‚ظˆظ„ ط§ظ„ط¥ط¯ط®ط§ظ„ â€” ط±ظ…ط§ط¯ظٹ ظ…ط­ط§ظٹط¯ (ط¨ط¯ظˆظ† ظ„ظ…ط³ط© ط­ظ…ط±ط§ط،) */
    --empire-input-bg: #1c1c1f;
    --empire-input-bg-hover: #232326;
    --empire-input-border: rgba(255, 255, 255, 0.14);
    --empire-input-border-focus: rgba(201, 162, 39, 0.65);
    --empire-input-placeholder: rgba(255, 255, 255, 0.38);
}

/* ط®ظ„ظپظٹط© ط§ظ„ظ…ط­طھظˆظ‰ ط§ظ„ط±ط¦ظٹط³ظٹ */
body.empire-brand.dark-only .page-body {
    background: radial-gradient(ellipse 140% 120% at 50% -20%, #1f0a0a 0%, #0a0a0a 45%, #000000 100%) !important;
}

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

/* ط§ظ„ظ‡ظٹط¯ط± ط§ظ„ط¹ظ„ظˆظٹ */
body.empire-brand.dark-only .compact-wrapper .page-main-header .main-header-right,
body.empire-brand.dark-only .page-wrapper.horizontal-wrapper .page-main-header .main-header-right {
    background: linear-gradient(180deg, #1a0a0a 0%, #0a0a0a 100%) !important;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.55) !important;
    border-bottom: 2px solid var(--empire-red) !important;
}

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

/* ط§ظ„ط´ط±ظٹط· ط§ظ„ط¬ط§ظ†ط¨ظٹ */
body.empire-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav,
body.empire-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(--empire-border) !important;
    box-shadow: inset -1px 0 0 rgba(201, 162, 39, 0.12);
}

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

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

/* ط¹ظ†طµط± ط§ظ„ظ‚ط§ط¦ظ…ط© ط§ظ„ظ†ط´ط· */
body.empire-brand.dark-only .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu > li .nav-link.active,
body.empire-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(139, 0, 0, 0.35) 0%, rgba(20, 20, 20, 0.95) 100%) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    border-inline-start: 3px solid var(--empire-gold) !important;
    box-shadow: 0 2px 12px rgba(139, 0, 0, 0.2);
}

body.empire-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(139, 0, 0, 0.15) !important;
}

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

/* ط´ط§ط±ط© ط§ظ„ظ…ط³طھط®ط¯ظ… */
body.empire-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(--empire-red) 0%, var(--empire-red-deep) 100%) !important;
    border: 1px solid rgba(201, 162, 39, 0.4);
}

/* ط§ظ„ط¨ط·ط§ظ‚ط§طھ ظˆط§ظ„ط¬ط¯ط§ظˆظ„ (ظ…طھظˆط§ظپظ‚ ظ…ط¹ طھط®طµظٹطµط§طھ ط§ظ„ظ…ط´ط±ظˆط¹) */
body.empire-brand.dark-only .card {
    background-color: var(--empire-surface-2) !important;
    border: 1px solid var(--empire-border) !important;
}

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

body.empire-brand.dark-only .card-stat {
    background: linear-gradient(165deg, #181818 0%, #101010 100%) !important;
    border: 1px solid var(--empire-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.empire-brand.dark-only .card-stat i {
    background: linear-gradient(145deg, #6b0f0f 0%, #3d0505 100%) !important;
}

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

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

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

body.empire-brand.dark-only .table td,
body.empire-brand.dark-only .table tbody th {
    border-color: rgba(139, 0, 0, 0.2) !important;
}

/* ط¹ظ†ط§ظˆظٹظ† ط§ظ„طµظپط­ط§طھ */
body.empire-brand.dark-only .page-header h3,
body.empire-brand.dark-only .content-header h3 {
    color: #ffffff !important;
}

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

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

/* ط£ط²ط±ط§ط± */
body.empire-brand.dark-only .btn-primary {
    background: linear-gradient(180deg, #a31818 0%, var(--empire-red) 45%, var(--empire-red-deep) 100%) !important;
    border-color: #4a0000 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.35);
}

body.empire-brand.dark-only .btn-primary:hover,
body.empire-brand.dark-only .btn-primary:focus {
    background: linear-gradient(180deg, #c41e1e 0%, #8b0000 100%) !important;
    border-color: #6b0000 !important;
    color: #fff !important;
}

body.empire-brand.dark-only .btn-primary-light {
    background: rgba(139, 0, 0, 0.25) !important;
    border: 1px solid var(--empire-border) !important;
    color: #ffffff !important;
}

body.empire-brand.dark-only .btn-primary-light:hover {
    background: rgba(139, 0, 0, 0.45) !important;
    color: #fff !important;
}

body.empire-brand.dark-only .btn-outline-primary {
    color: #ffb3b3 !important;
    border-color: var(--empire-red) !important;
}

body.empire-brand.dark-only .btn-outline-primary:hover {
    background: var(--empire-red) !important;
    color: #fff !important;
}

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

/* ط§ظ„ظ†ظ…ط§ط°ط¬ â€” ط­ظ‚ظˆظ„ ط¥ط¯ط®ط§ظ„ ظ…ط­ط§ظٹط¯ط© (ط±ظ…ط§ط¯ظٹطŒ ط¨ط¯ظˆظ† ط£ط­ظ…ط±) */
body.empire-brand.dark-only .form-control,
body.empire-brand.dark-only .form-select,
body.empire-brand.dark-only textarea.form-control,
body.empire-brand.dark-only input[type="text"],
body.empire-brand.dark-only input[type="email"],
body.empire-brand.dark-only input[type="password"],
body.empire-brand.dark-only input[type="number"],
body.empire-brand.dark-only input[type="tel"],
body.empire-brand.dark-only input[type="url"],
body.empire-brand.dark-only input[type="search"],
body.empire-brand.dark-only input[type="date"],
body.empire-brand.dark-only input[type="datetime-local"],
body.empire-brand.dark-only input[type="time"] {
    background-color: var(--empire-input-bg) !important;
    border-color: var(--empire-input-border) !important;
    color: var(--empire-text) !important;
}

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

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

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

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

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

/* ط§ظ„طھط°ظٹظٹظ„ */
body.empire-brand.dark-only .compact-wrapper .page-body-wrapper footer,
body.empire-brand.dark-only footer.footer {
    background: #020202 !important;
    border-top: 1px solid var(--empire-border) !important;
}

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

/* ط¹ظ„ط§ظ…ط© ط§ظ„ط´ط±ظٹط· ط§ظ„ط¬ط§ظ†ط¨ظٹ */
body.empire-brand.dark-only .empire-sidebar-brand {
    border-bottom: 1px solid var(--empire-border) !important;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.15) 0%, transparent 100%);
}

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

/* ط´ط¹ط§ط± ط§ظ„ظ‡ظٹط¯ط± */
.empire-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 / Empire ط§ط­طھط±ط§ظپظٹ) ========== */
body.empire-brand.dark-only .empire-page-title {
    letter-spacing: 0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

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

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

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

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

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

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

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

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

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

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

body.empire-brand.dark-only .empire-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.empire-brand.dark-only .empire-kpi-card--gold .empire-kpi-card__icon {
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.35), rgba(139, 0, 0, 0.35));
    color: var(--empire-gold);
}

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

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

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

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

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

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

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

/* ظ„ظˆط­ط© ط§ظ„ط¥ط¬ط±ط§ط،ط§طھ ط§ظ„ط³ط±ظٹط¹ط© */
body.empire-brand.dark-only .empire-actions-panel {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--empire-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.empire-brand.dark-only .empire-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.empire-brand.dark-only .empire-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.empire-brand.dark-only .empire-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

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

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

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

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

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

body.empire-brand.dark-only .empire-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.empire-brand.dark-only .empire-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.empire-brand.dark-only .empire-action-btn--transfer {
    color: #fff8e8 !important;
    background: linear-gradient(135deg, #c9a227 0%, #8b0000 55%, #5c0000 100%) !important;
    border-color: rgba(201, 162, 39, 0.55) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

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

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

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

/* ظ‚ط³ظ… ط§ظ„ظ…ط¯ظپظˆط¹ط§طھ */
body.empire-brand.dark-only .empire-payments-card {
    background: var(--empire-surface) !important;
    border-radius: 16px !important;
}

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

body.empire-brand.dark-only .empire-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(--empire-gold);
    font-size: 1.1rem;
}

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

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

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

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

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

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

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

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

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

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

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

body.empire-brand.dark-only .empire-table tbody tr:hover {
    background: rgba(139, 0, 0, 0.08) !important;
}

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

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

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

/* ظ…ظ„ط®طµ ظ…ط§ظ„ظٹ â€” طµظپط­ط© طھط¹ط¯ظٹظ„ ط§ظ„ط§ط´طھط±ط§ظƒ (Viho + Empire) */
body.empire-brand.dark-only .empire-edit-summary {
    border-radius: 16px;
    border: 1px solid var(--empire-border);
    background: var(--empire-surface);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

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

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

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

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

/* ظ…ظˆط¯ط§ظ„ ط¥ط¶ط§ظپط© ط¯ظپط¹ط© (Viho + Empire) */
body.empire-brand.dark-only .empire-payment-modal {
    background: var(--empire-surface) !important;
    border: 1px solid var(--empire-border) !important;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55) !important;
}

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

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

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

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

body.empire-brand.dark-only .empire-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.empire-brand.dark-only .empire-payment-modal .input-group .form-control {
    border-inline-end: 0;
}

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

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

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

/* â”€â”€â”€ Bottom Navigation (Viho â€” ط¬ظˆط§ظ„ / طھط§ط¨ظ„طھ) â”€â”€â”€ */
body.empire-brand.dark-only .viho-bottom-nav {
    display: none;
}

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

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

    body.empire-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.empire-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, #1a0a0a 0%, #0a0a0a 100%);
        border: 1px solid var(--empire-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(201, 162, 39, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body.empire-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.empire-brand.dark-only .viho-bottom-nav__item:hover,
    body.empire-brand.dark-only .viho-bottom-nav__item:focus-visible {
        color: rgba(255, 255, 255, 0.88);
        background: rgba(139, 0, 0, 0.2);
        outline: none;
    }

    body.empire-brand.dark-only .viho-bottom-nav__item.is-active {
        color: #ffffff;
        background: linear-gradient(180deg, rgba(139, 0, 0, 0.4) 0%, rgba(139, 0, 0, 0.12) 100%);
        box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35);
    }

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

    body.empire-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.empire-brand.dark-only .viho-bottom-nav__icon-wrap svg {
        width: 1.35rem;
        height: 1.35rem;
        stroke-width: 2px;
    }

    body.empire-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.empire-brand.dark-only .viho-bottom-nav__item.is-active .viho-bottom-nav__label {
        color: var(--empire-gold);
    }

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

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

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

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

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

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

body.empire-brand .viho-pagination__info strong {
    color: var(--empire-gold, #c9a227);
    font-weight: 700;
}

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

/* إلغاء width: 36px العام الذي يكسر أزرار التنقل */
body.empire-brand .viho-pagination .page-link,
body.empire-brand.dark-only .viho-pagination .page-link,
body.empire-brand.dark-only .card .viho-pagination .page-link,
body.empire-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(--empire-border, rgba(139, 0, 0, 0.35)) !important;
    background: var(--empire-surface-2, #161616) !important;
    color: var(--empire-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.empire-brand.dark-only .viho-pagination .page-item:first-child .page-link,
body.empire-brand.dark-only .viho-pagination .page-item:last-child .page-link,
body.empire-brand .rtl .viho-pagination .page-item:first-child .page-link,
body.empire-brand .rtl .viho-pagination .page-item:last-child .page-link {
    border-radius: 8px !important;
    background: var(--empire-surface-2, #161616) !important;
    color: var(--empire-text, rgba(255, 255, 255, 0.92)) !important;
}

body.empire-brand.dark-only .viho-pagination .page-item:hover:not(.disabled):not(.active) .page-link {
    background: rgba(201, 162, 39, 0.12) !important;
    border-color: rgba(201, 162, 39, 0.45) !important;
    color: var(--empire-gold, #c9a227) !important;
}

body.empire-brand.dark-only .viho-pagination .page-item.active .page-link,
body.empire-brand.dark-only .card .viho-pagination .page-item.active .page-link {
    background: linear-gradient(180deg, #a31818 0%, var(--empire-red, #8b0000) 45%, var(--empire-red-deep, #5c0000) 100%) !important;
    border-color: #4a0000 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.35) !important;
    cursor: default !important;
}

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

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

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

