:root {
    --hostina-bg-dark: #0b0b0b;
    --hostina-bg-dark-end: #111;
    --hostina-page-bg: #fafafa;
    --hostina-page-bg-alt: #f7f7f7;
    --hostina-card-bg: #fff;
    --hostina-card-border: #ededed;
    --hostina-card-shadow: 0 2px 12px rgba(0, 134, 205, 0.06), 0 1px 4px rgba(0, 134, 205, 0.04);
    --hostina-text-primary: #111;
    --hostina-text-secondary: #6b7280;
    --hostina-text-on-dark: #fff;
    --hostina-text-on-dark-muted: #b9b9b9;
    --hostina-accent-green: #28a745;
    --hostina-accent-red: #dc3545;
    --hostina-radius-card: 16px;
    --hostina-radius-card-lg: 20px;
    --hostina-radius-btn: 12px;
    --hostina-radius-btn-lg: 16px;
    --hostina-radius-hero: 20px;
    --hostina-radius-hero-lg: 28px;
    --hostina-radius-dropdown: 14px;
    --hostina-font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --hostina-transition: 0.2s ease;
}
#main-body {
    background: var(--hostina-page-bg);
    font-family: var(--hostina-font);
}
body.sidebar-collapsed .qwe {
    padding-left: 7.2rem !important;
}
#dashb-header {
    position: relative;
}
#dashb-header .dashb-header-logo {
    flex-shrink: 0;
    text-decoration: none;
}
#dashb-header .dashb-header-logo-img {
    max-height: 2.75rem;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}
@media (max-width: 767px) {
    #dashb-header .dashb-header-logo-img {
        max-height: 2.25rem;
        max-width: 120px;
    }
}
#dashb-header .hostina-user-dropdown {
    position: relative;
    margin-left: 0.5rem;
}
#dashb-header .hostina-user-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    border: 1px solid transparent;
    border-radius: var(--hostina-radius-btn);
    background: transparent;
    color: var(--hostina-text-primary);
    font-family: var(--hostina-font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background var(--hostina-transition),
        border-color var(--hostina-transition),
        color var(--hostina-transition);
    white-space: nowrap;
}
#dashb-header .hostina-user-dropdown-trigger:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--hostina-card-border);
    color: var(--hostina-text-primary);
}
#dashb-header .hostina-user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--hostina-card-border);
    display: block;
}
#dashb-header .hostina-user-email {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--hostina-text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}
#dashb-header .hostina-user-chevron {
    font-size: 1rem;
    color: var(--hostina-text-secondary);
    transition: transform var(--hostina-transition);
}
#dashb-header .hostina-user-dropdown:has(.dropdown-menu.show) .hostina-user-chevron {
    transform: rotate(180deg);
}
#dashb-header .hostina-user-dropdown .dropdown-menu {
    min-width: 220px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: var(--hostina-card-bg) !important;
    border: 1px solid var(--hostina-card-border) !important;
    border-radius: var(--hostina-radius-dropdown) !important;
    box-shadow:
        0 8px 24px rgba(0, 134, 205, 0.1),
        0 2px 8px rgba(0, 134, 205, 0.06) !important;
    z-index: 1060 !important;
    font-family: var(--hostina-font);
}
#dashb-header .hostina-user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--hostina-text-primary);
    border-radius: 10px;
    transition:
        background var(--hostina-transition),
        color var(--hostina-transition);
}
#dashb-header .hostina-user-dropdown .dropdown-item i {
    width: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--hostina-text-secondary);
    flex-shrink: 0;
}
#dashb-header .hostina-user-dropdown .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--hostina-text-primary);
}
#dashb-header .hostina-user-dropdown .dropdown-item:hover i {
    color: var(--hostina-text-primary);
}
#dashb-header .hostina-user-dropdown .dropdown-divider {
    margin: 0.4rem 0.5rem;
    border-top-color: var(--hostina-card-border);
    opacity: 0.8;
}
#dashb-header .hostina-user-dropdown .dropdown-item.hostina-dropdown-logout,
#dashb-header .hostina-user-dropdown .dropdown-item.text-danger {
    color: var(--hostina-accent-red) !important;
    font-weight: 600;
}
#dashb-header .hostina-user-dropdown .dropdown-item.hostina-dropdown-logout i,
#dashb-header .hostina-user-dropdown .dropdown-item.text-danger i {
    color: var(--hostina-accent-red) !important;
}
#dashb-header .hostina-user-dropdown .dropdown-item.hostina-dropdown-logout:hover,
#dashb-header .hostina-user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.08) !important;
    color: var(--hostina-accent-red) !important;
}
#dashb-header .hostina-header-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--hostina-card-border);
    color: var(--hostina-text-primary);
    transition:
        background var(--hostina-transition),
        color var(--hostina-transition);
}
#dashb-header .hostina-header-icon-wrap:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--hostina-text-primary);
}
#dashb-header .cart-icon a,
#dashb-header .bell-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--hostina-card-border);
    color: var(--hostina-text-primary);
    transition:
        background var(--hostina-transition),
        color var(--hostina-transition);
}
#dashb-header .cart-icon a:hover,
#dashb-header .bell-icon a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--hostina-text-primary);
}
#main-body .card {
    background: var(--hostina-card-bg);
    border: 1px solid var(--hostina-card-border);
    border-radius: var(--hostina-radius-card);
    box-shadow: var(--hostina-card-shadow);
    font-family: var(--hostina-font);
}
#main-body .card-header {
    background: var(--hostina-page-bg-alt);
    border-bottom: 1px solid var(--hostina-card-border);
    border-radius: var(--hostina-radius-card) var(--hostina-radius-card) 0 0;
    font-weight: 700;
    color: var(--hostina-text-primary);
}
#main-body .table {
    font-family: var(--hostina-font);
}
#main-body .table thead th {
    background: var(--hostina-page-bg-alt);
    color: var(--hostina-text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--hostina-card-border);
    padding: 0.85rem 1rem;
}
#main-body .table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    color: var(--hostina-text-primary);
}
#main-body .table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
#main-body .table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}
#main-body .badge.bg-success,
#main-body .badge.status-active,
#main-body .label-success {
    background: var(--hostina-accent-green) !important;
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8125rem;
}
#main-body .badge.bg-danger,
#main-body .badge.bg-warning,
#main-body .badge.status-inactive,
#main-body .label-danger {
    background: rgba(220, 53, 69, 0.12) !important;
    color: #b91c3c;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8125rem;
}
#main-body .btn-primary {
    background: var(--hostina-text-primary) !important;
    border-color: var(--hostina-text-primary) !important;
    color: #fff !important;
    border-radius: var(--hostina-radius-btn);
    font-family: var(--hostina-font);
    font-weight: 600;
}
#main-body .btn-primary:hover {
    background: #222 !important;
    border-color: #222 !important;
    color: #fff !important;
}
#main-body .btn-secondary,
#main-body .btn-light {
    border-radius: var(--hostina-radius-btn);
    font-family: var(--hostina-font);
    border: 1px solid var(--hostina-card-border);
}
#main-body .hero-hostina,
#banner-dashb .content {
    background: linear-gradient(180deg, var(--hostina-bg-dark) 0%, var(--hostina-bg-dark-end) 100%);
    border-radius: var(--hostina-radius-hero);
    color: var(--hostina-text-on-dark);
    position: relative;
    overflow: hidden;
}
#main-body .hero-hostina::before,
#banner-dashb .content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(2px 2px at 15% 20%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 80% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.25), transparent);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    #dashb-main,
    #main-body {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}
@media (max-width: 991px) {
    body[dir="rtl"] .sidebar {
        right: 0;
        left: auto;
        transform: translateX(100%);
    }
    body[dir="rtl"] .sidebar.show {
        transform: translateX(0);
    }
    /* إزالة الفراغات يمين ويسار في الموبايل */
    #dashb-header .p-4 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .hostina-main-body-container.container,
    #main-body .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100%;
    }
    #main-body .container .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* منع التمرير الأفقي وتحسين اللمس */
    html, body {
        overflow-x: hidden !important;
    }
    body {
        -webkit-overflow-scrolling: touch;
    }
    #main-body .container,
    .hostina-main-body-container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .hostina-user-dropdown-trigger,
    .hostina-header-icon-link,
    .dashb-btn,
    .hostina-header-menu-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

#order-standard_cart .tld-filters .badge {
  background: #000 !important;
}
