/* ==============================================================================
   SMMScripts - User Panel Modern Master Theme (Cyber Yellow & Deep Black / Pure White)
   Matches Reference Design: Cyber Yellow (#FFE600), Solid Black (#000000) & Crisp White (#FFFFFF)
   Supports Arabic (RTL) and English (LTR)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --up-yellow: #FFE600;
    --up-yellow-hover: #F2DA00;
    --up-yellow-light: #FFFBE6;
    --up-black: #000000;
    --up-sidebar-bg: #000000;
    --up-body-bg: #F8F9FB;
    --up-card-bg: #FFFFFF;
    --up-card-light: #F9FAFC;
    --up-border: #E5E7EB;
    --up-border-subtle: #F3F4F6;
    --up-text-main: #111827;
    --up-text-muted: #6B7280;
    --up-text-dim: #9CA3AF;
    --up-pill-bg: #F3F4F6;
    --up-green: #00C853;
    --up-radius-pill: 50px;
    --up-radius-card: 20px;
}

/* Base Body Override for User Dashboard */
body.user-panel-body {
    background-color: var(--up-body-bg) !important;
    color: var(--up-text-main) !important;
    font-family: 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Master Layout Container */
.user-panel-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--up-body-bg);
    position: relative;
}

/* ==============================================================================
   1. Left Sidebar (Deep Solid Black with Yellow Active Pill)
   ============================================================================== */

.user-sidebar {
    width: 250px;
    background: var(--up-sidebar-bg) !important;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    padding: 24px 16px;
    transition: transform 0.3s ease;
}

.user-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 8px;
}

.user-sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.user-sidebar-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    border-radius: var(--up-radius-pill);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-sidebar-item a i {
    font-size: 16px;
    width: 20px;
    color: var(--up-yellow);
    transition: all 0.2s ease;
    text-align: center;
}

/* Inactive Hover */
.user-sidebar-item:not(.active) a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

/* Active Menu Item: Iconic Bright Yellow Pill with Bold Black Text */
.user-sidebar-item.active a {
    background: var(--up-yellow) !important;
    color: #000000 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 16px rgba(255, 230, 0, 0.35);
}

.user-sidebar-item.active a i {
    color: #000000 !important;
}

/* "Show more" Accordion Button */
.user-sidebar-more-btn {
    background: #18181B;
    border: none;
    color: #FFFFFF;
    border-radius: var(--up-radius-pill);
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: all 0.2s;
}
.user-sidebar-more-btn:hover {
    background: #27272A;
}
.user-sidebar-sub-menu {
    display: none;
    list-style: none;
    padding: 8px 0 0 10px;
    margin: 0;
}
.user-sidebar-sub-menu.show {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ==============================================================================
   2. Main Container & Topbar
   ============================================================================== */

.user-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--up-body-bg);
}

/* Topbar */
.user-topbar {
    background: #FFFFFF;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid var(--up-border-subtle);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.user-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-topbar-pill {
    background: var(--up-pill-bg);
    color: #1F2937;
    border-radius: var(--up-radius-pill);
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.balance-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #6B7280;
    margin-inline-start: 4px;
    padding: 0;
}
.balance-toggle-btn:hover {
    color: #111827;
}

.user-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-topbar-search {
    position: relative;
    width: 200px;
}
.user-topbar-search input {
    background: var(--up-pill-bg);
    border: none;
    border-radius: var(--up-radius-pill);
    padding: 7px 16px 7px 34px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    outline: none;
    color: #111827;
}
html[dir="rtl"] .user-topbar-search input {
    padding: 7px 34px 7px 16px;
}
.user-topbar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #9CA3AF;
}
html[dir="rtl"] .user-topbar-search i {
    left: auto;
    right: 12px;
}

/* Circular Topbar Action Buttons */
.user-action-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

.user-action-circle.yellow {
    background: var(--up-yellow);
    color: #000000;
    box-shadow: 0 2px 8px rgba(255, 230, 0, 0.3);
}
.user-action-circle.yellow:hover {
    background: var(--up-yellow-hover);
    transform: translateY(-1px);
}

.user-action-circle.black {
    background: #000000;
    color: var(--up-yellow);
}
.user-action-circle.black:hover {
    background: #18181B;
    transform: translateY(-1px);
}

/* Dropdowns in Topbar (Currency & Language) */
.user-currency-dropdown-wrap,
.user-lang-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.user-currency-dropdown-menu,
.user-lang-dropdown-menu {
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 6px 0;
    animation: userDropdownFadeIn 0.15s ease-out;
}

@keyframes userDropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-content-area {
    padding: 25px 28px 40px;
    flex: 1;
}

/* ==============================================================================
   3. Top 4 Metric / Status Cards (Matching Screenshot 5)
   ============================================================================== */

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 1200px) {
    .user-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 650px) {
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Card 1: Black Status Card with Circular Progress */
.stat-card-status {
    background: #000000 !important;
    border-radius: var(--up-radius-card);
    padding: 22px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.stat-card-status .status-tag {
    color: var(--up-yellow);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.stat-card-status .status-title {
    font-size: 24px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 4px;
}
.stat-card-status .status-sub {
    font-size: 12px;
    color: #9CA3AF;
}
.stat-card-status .status-progress-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 5px solid #27272A;
    border-top-color: var(--up-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #FFFFFF;
}

/* Card 2: Bright Yellow Points Card */
.stat-card-points {
    background: var(--up-yellow) !important;
    border-radius: var(--up-radius-card);
    padding: 22px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(255, 230, 0, 0.25);
}
.stat-card-points .points-tag {
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 4px;
}
.stat-card-points .points-val {
    font-size: 20px;
    font-weight: 900;
    font-family: monospace;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block;
}
.stat-card-points .btn-redeem {
    background: #000000;
    color: #FFFFFF;
    border-radius: var(--up-radius-pill);
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.stat-card-points .btn-redeem:hover {
    background: #27272A;
}

/* Card 3 & 4: White Cards with 3D Illustrations */
.stat-card-white {
    background: #FFFFFF !important;
    border: 1px solid var(--up-border);
    border-radius: var(--up-radius-card);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}
.stat-card-white .white-tag {
    font-size: 13px;
    color: var(--up-text-muted);
    font-weight: 700;
    margin-bottom: 6px;
}
.stat-card-white .white-val {
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    font-family: 'Inter', sans-serif;
}
.stat-card-white .stat-icon-3d {
    font-size: 44px;
    color: #F59E0B;
}

/* ==============================================================================
   4. Table Pill Headers & Universal Tables (Matching Screenshots 3, 4)
   ============================================================================== */

.pill-table-header {
    background: #000000 !important;
    color: #FFFFFF !important;
    border-radius: 30px !important;
    padding: 14px 24px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Full Width Category Pill Banner in Services */
.category-pill-banner {
    background: var(--up-yellow) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    text-align: center;
    border-radius: 30px;
    padding: 14px;
    margin: 20px 0 12px;
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Professional category section header for the services catalogue */
.service-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #111827 0%, #000000 100%);
    border: 1px solid #27272A;
    border-inline-start: 4px solid var(--up-yellow);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.service-category-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.service-category-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--up-yellow);
    color: #000000;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.28);
}
.service-category-kicker {
    display: block;
    margin-bottom: 2px;
    color: #A1A1AA;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}
.service-category-header h2 {
    margin: 0;
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.service-category-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: #D1FAE5;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(110, 231, 183, 0.25);
    font-size: 11px;
    font-weight: 800;
}
.service-category-status i { color: #6EE7B7; }

@media (max-width: 560px) {
    .service-category-header {
        padding: 12px 14px;
        margin-top: 22px;
    }
    .service-category-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
        font-size: 16px;
    }
    .service-category-header h2 { font-size: 14px; }
    .service-category-status { display: none; }
}

/* Service Item Row (Clean White Card) */
.service-pill-row {
    background: #FFFFFF;
    border: 1px solid var(--up-border);
    border-radius: 18px;
    padding: 14px 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.service-pill-row:hover {
    border-color: #D1D5DB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-id-badge {
    background: #000000;
    color: #FFFFFF;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 800;
    font-size: 13px;
    min-width: 55px;
    text-align: center;
    display: inline-block;
}

.action-btn-circle-yellow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--up-yellow);
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.action-btn-circle-yellow:hover {
    background: var(--up-yellow-hover);
    transform: scale(1.05);
}

.btn-pill-black {
    background: #000000 !important;
    color: #FFFFFF !important;
    border-radius: var(--up-radius-pill) !important;
    padding: 7px 18px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-pill-black:hover {
    background: #27272A !important;
}

.btn-pill-yellow {
    background: var(--up-yellow) !important;
    color: #000000 !important;
    border-radius: var(--up-radius-pill) !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-pill-yellow:hover {
    background: var(--up-yellow-hover) !important;
}

/* Orders Status Filter Bar (Matching Screenshot 4) */
.orders-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.filter-pill-btn {
    padding: 8px 18px;
    border-radius: var(--up-radius-pill);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--up-border);
    color: #374151;
    transition: all 0.2s;
}
.filter-pill-btn:hover {
    background: var(--up-pill-bg);
}
.filter-pill-btn.active {
    background: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
}

/* ==============================================================================
   5. Tickets Step Cards & Tiles Grid (Matching Screenshot 1)
   ============================================================================== */

.tickets-steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
@media (max-width: 768px) {
    .tickets-steps-container {
        grid-template-columns: 1fr;
    }
}

.ticket-step-block {
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    font-size: 14px;
}
.ticket-step-num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
}

.ticket-step-block.step-black {
    background: #000000;
    color: #FFFFFF;
}
.ticket-step-block.step-black .ticket-step-num {
    background: var(--up-yellow);
    color: #000000;
}

.ticket-step-block.step-yellow {
    background: var(--up-yellow);
    color: #000000;
}
.ticket-step-block.step-yellow .ticket-step-num {
    background: #000000;
    color: var(--up-yellow);
}

.ticket-step-block.step-white {
    background: #FFFFFF;
    border: 1px solid var(--up-border);
    color: #111827;
}
.ticket-step-block.step-white .ticket-step-num {
    background: var(--up-yellow);
    color: #000000;
}

/* Category Square Tiles Grid */
.ticket-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin: 15px 0 25px;
}
.ticket-category-tile {
    background: #FFFFFF;
    border: 1.5px solid var(--up-border);
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 12.5px;
    color: #111827;
}
.ticket-category-tile i {
    font-size: 24px;
    color: #111827;
}
.ticket-category-tile:hover {
    border-color: #000000;
}
.ticket-category-tile.active {
    background: #000000;
    border-color: #000000;
    color: #FFFFFF;
}
.ticket-category-tile.active i {
    color: var(--up-yellow);
}

/* ==============================================================================
   6. Add Funds Green Banner & We Accept Logos (Matching Screenshot 2)
   ============================================================================== */

.addfunds-green-banner {
    background: #000000 !important;
    border: 1.5px solid #27272A !important;
    border-inline-start: 5px solid var(--up-yellow) !important;
    color: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 18px 24px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}
.addfunds-green-banner .banner-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #1C1917 !important;
    color: var(--up-yellow) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    border: 1px solid #44403C !important;
}

.we-accept-showcase {
    background: #FFFFFF;
    border: 1px solid var(--up-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 25px;
    text-align: center;
}
.we-accept-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}
.we-accept-badge {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: #111827;
    height: 42px;
}

/* ==============================================================================
   7. Footer & Floating Action Widgets
   ============================================================================== */

.user-panel-footer {
    background: #000000;
    color: #9CA3AF;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12.5px;
    margin-top: auto;
}

.user-footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--up-yellow);
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}
.user-footer-socials a:hover {
    transform: translateY(-2px);
    background: var(--up-yellow-hover);
}

/* Responsive Drawer: Pinned on Desktop, Drawer on Mobile */
@media (min-width: 769px) {
    .user-sidebar {
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        transform: none !important;
        display: flex !important;
        flex-shrink: 0 !important;
        z-index: 100 !important;
    }
    .user-topbar .user-sidebar-toggle-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .user-sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 270px !important;
        transform: translateX(-100%) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
        z-index: 9999 !important;
    }
    html[dir="rtl"] .user-sidebar {
        left: auto !important;
        right: 0 !important;
        transform: translateX(100%) !important;
    }
    .user-sidebar.active {
        transform: translateX(0) !important;
    }
    .user-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
    }
    .user-sidebar-backdrop.active {
        display: block;
    }
    .pill-table-header {
        display: none !important;
    }
    .service-pill-row {
        flex-wrap: wrap;
        padding: 14px 16px;
    }
    .service-pill-row > div {
        margin-bottom: 6px;
    }
}

/* ==============================================================================
   8. Pure White Crisp Theme Overrides & Guaranteed Light Layout (No Dark Leakage)
   ============================================================================== */

.user-panel-body,
body.user-panel-body {
    background-color: #F8F9FB !important;
    color: #111827 !important;
}

/* Universal Typography & Headings Contrast Fix for User Panel */
.user-panel-body h1,
.user-panel-body h2,
.user-panel-body h3,
.user-panel-body h4,
.user-panel-body h5,
.user-panel-body h6,
.user-content-area h1,
.user-content-area h2,
.user-content-area h3,
.user-content-area h4,
.user-content-area h5,
.user-content-area h6 {
    color: #111827 !important;
}

.user-panel-body p,
.user-content-area p {
    color: #4B5563;
}

.user-panel-body .card-title,
.user-content-area .card-title {
    color: #111827 !important;
    font-weight: 800 !important;
}

.user-panel-body .card {
    background: #FFFFFF !important;
    border: 1px solid var(--up-border) !important;
    border-radius: var(--up-radius-card) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    color: #111827 !important;
}

/* Explicit Dark Card Exception (e.g. VIP Loyalty Tier Card) */
.user-panel-body .card.card-dark,
.user-panel-body .card[data-dark="true"] {
    background: #000000 !important;
    border: 1px solid #27272A !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18) !important;
}
.user-panel-body .card.card-dark h1,
.user-panel-body .card.card-dark h2,
.user-panel-body .card.card-dark h3,
.user-panel-body .card.card-dark h4,
.user-panel-body .card.card-dark strong,
.user-panel-body .card[data-dark="true"] h1,
.user-panel-body .card[data-dark="true"] h2,
.user-panel-body .card[data-dark="true"] h3,
.user-panel-body .card[data-dark="true"] h4,
.user-panel-body .card[data-dark="true"] strong {
    color: #FFFFFF !important;
}
.user-panel-body .card.card-dark p,
.user-panel-body .card[data-dark="true"] p {
    color: #9CA3AF !important;
}

/* Suppress dragon fiery top border line from style.min.css */
.user-panel-body .card::before,
.user-panel-body .card::after {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

/* Stat Cards in User Dashboard */
.user-panel-body .stat-card {
    background: #FFFFFF !important;
    border: 1.5px solid var(--up-border) !important;
    border-radius: var(--up-radius-card) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    color: #111827 !important;
}
.user-panel-body .stat-card .stat-label {
    color: #6B7280 !important;
    font-weight: 700 !important;
}
.user-panel-body .stat-card .stat-value {
    color: #111827 !important;
    font-weight: 900 !important;
}

.user-panel-body .form-control,
.user-panel-body .form-select,
.user-panel-body select,
.user-panel-body input[type="text"],
.user-panel-body input[type="number"],
.user-panel-body input[type="email"],
.user-panel-body input[type="password"] {
    background-color: #FFFFFF !important;
    border: 1.5px solid var(--up-border) !important;
    border-radius: var(--up-radius-pill) !important;
    color: #111827 !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

/* Disabled & Readonly Input Fields (High Contrast & Clear Readability) */
.user-panel-body .form-control:disabled,
.user-panel-body .form-control[readonly],
.user-panel-body input:disabled,
.user-panel-body input[readonly],
.user-panel-body select:disabled {
    background-color: #F3F4F6 !important;
    border-color: #E5E7EB !important;
    color: #1F2937 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

.user-panel-body .form-control::placeholder,
.user-panel-body input::placeholder {
    color: #9CA3AF !important;
    font-weight: 500 !important;
}

.user-panel-body textarea.form-control,
.user-panel-body textarea {
    background-color: #FFFFFF !important;
    border: 1.5px solid var(--up-border) !important;
    border-radius: 16px !important;
    color: #111827 !important;
    padding: 14px 18px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
}

.user-panel-body .form-control:focus,
.user-panel-body .form-select:focus,
.user-panel-body select:focus,
.user-panel-body textarea:focus {
    border-color: #FFE600 !important;
    box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.25) !important;
    background-color: #FFFFFF !important;
    color: #111827 !important;
}

.user-panel-body .form-label {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Tables inside User Panel */
.user-panel-body .table {
    color: #111827 !important;
}
.user-panel-body .table thead tr th {
    background: #000000 !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    border: none !important;
}
.user-panel-body .table tbody tr td {
    color: #111827 !important;
    border-bottom: 1px solid var(--up-border) !important;
}

/* Fix generic .btn-primary in User Panel to match Cyber Yellow & Solid Black theme */
.user-panel-body .btn-primary:not(.btn-keep-custom) {
    background: #000000 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--up-radius-pill) !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}
.user-panel-body .btn-primary:not(.btn-keep-custom):hover {
    background: #27272A !important;
    color: #FFE600 !important;
    transform: translateY(-1px) !important;
}

.user-panel-body .btn-gold {
    background: var(--up-yellow) !important;
    color: #000000 !important;
    border: none !important;
    border-radius: var(--up-radius-pill) !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.25) !important;
    transition: all 0.2s ease !important;
}
.user-panel-body .btn-gold:hover {
    background: var(--up-yellow-hover) !important;
    transform: translateY(-1px) !important;
}

/* Platform Filter Pills in User Panel */
.user-panel-body .platform-pill {
    background: #FFFFFF !important;
    border: 1.5px solid var(--up-border) !important;
    color: #111827 !important;
    border-radius: var(--up-radius-pill) !important;
    padding: 8px 18px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}
.user-panel-body .platform-pill:hover {
    border-color: #000000 !important;
    transform: translateY(-1px) !important;
}
.user-panel-body .platform-pill.active {
    background: #000000 !important;
    border-color: #000000 !important;
    color: var(--up-yellow) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* ==============================================================================
   9. Social Network Filter Section (Matches Image 1 Reference Design)
   ============================================================================== */

.social-network-filter-section,
.social-network-section {
    margin-bottom: 28px;
}

.social-filter-header,
.social-network-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.social-filter-title,
.social-network-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

/* Yellow Pill Button for Hide the Filter */
.btn-toggle-filter {
    background: var(--up-yellow) !important;
    color: #000000 !important;
    border-radius: var(--up-radius-pill) !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(255, 230, 0, 0.25) !important;
    outline: none !important;
}
.btn-toggle-filter:hover {
    background: var(--up-yellow-hover) !important;
    transform: translateY(-1px);
}

/* Horizontal Scrollable Row for Circular Platform Icons */
.social-net-grid,
.social-network-grid {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    overflow-x: auto !important;
    padding: 6px 4px 18px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}
.social-net-grid::-webkit-scrollbar,
.social-network-grid::-webkit-scrollbar {
    display: none !important;
}

/* Reset ALL default button styles and eliminate borders completely */
.social-net-item,
button.social-net-item,
a.social-net-item {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    min-width: 58px !important;
    text-decoration: none !important;
    transition: transform 0.2s ease !important;
    user-select: none !important;
    -webkit-appearance: none !important;
}
.social-net-item:hover,
button.social-net-item:hover {
    transform: translateY(-3px) !important;
    border: none !important;
    background: transparent !important;
}
/* Neutralize .btn-outline if added */
.social-net-item.btn-outline,
button.social-net-item.btn-outline {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Circular Icon Badges */
.social-net-circle {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}
.social-net-item.active .social-net-circle {
    transform: scale(1.08) !important;
    box-shadow: 0 0 0 3px #FFE600, 0 6px 16px rgba(0, 0, 0, 0.18) !important;
}

/* Label Under Icon */
.social-net-name,
.social-net-label {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #4B5563 !important;
    text-align: center !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px !important;
    transition: color 0.2s ease !important;
}
.social-net-item.active .social-net-name,
.social-net-item.active .social-net-label {
    color: #111827 !important;
    font-weight: 800 !important;
}

/* Platform-specific gradient & color circles */
.social-circle-fb { background: #1877F2 !important; color: #FFF !important; }
.social-circle-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; color: #FFF !important; }
.social-circle-tt { background: #000000 !important; color: #FFF !important; }
.social-circle-yt { background: #FF0000 !important; color: #FFF !important; }
.social-circle-tw { background: #000000 !important; color: #FFF !important; }
.social-net-circle svg {
    width: 17px !important;
    height: 17px !important;
    fill: currentColor !important;
    display: block !important;
    margin: auto !important;
}
.social-circle-tw svg {
    fill: #FFFFFF !important;
}
.social-circle-sp { background: #1DB954 !important; color: #FFF !important; }
.social-circle-sc { background: #FFFC00 !important; color: #000000 !important; }
.social-circle-li { background: #0A66C2 !important; color: #FFF !important; }
.social-circle-tg { background: #0088CC !important; color: #FFF !important; }
.social-circle-dc { background: #5865F2 !important; color: #FFF !important; }
.social-circle-twc { background: #9146FF !important; color: #FFF !important; }
.social-circle-web { background: #0284C7 !important; color: #FFF !important; }
.social-circle-rev { background: #F59E0B !important; color: #FFF !important; }
.social-circle-gg { background: #EA4335 !important; color: #FFF !important; }
.social-circle-all { background: #EF4444 !important; color: #FFF !important; }

/* ==============================================================================
   10. Pill Tabs (New Order, Subscriptions, Favorites, Info, Read)
   ============================================================================== */

.tab-pills-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tab-pill-black,
button.tab-pill-black,
a.tab-pill-black {
    background: #000000 !important;
    color: #FFFFFF !important;
    border-radius: var(--up-radius-pill) !important;
    padding: 9px 24px !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}
.tab-pill-black:hover,
button.tab-pill-black:hover,
a.tab-pill-black:hover {
    background: #27272A !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

.tab-pill-yellow,
button.tab-pill-yellow,
a.tab-pill-yellow {
    background: var(--up-yellow) !important;
    color: #000000 !important;
    border-radius: var(--up-radius-pill) !important;
    padding: 9px 24px !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(255, 230, 0, 0.25) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}
.tab-pill-yellow:hover,
button.tab-pill-yellow:hover,
a.tab-pill-yellow:hover {
    background: var(--up-yellow-hover) !important;
    color: #000000 !important;
    transform: translateY(-1px);
}

/* Two Column Grid for User Panel */
.responsive-grid-2col {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 25px;
}
@media (max-width: 991px) {
    .responsive-grid-2col {
        grid-template-columns: 1fr;
    }
}


/* ============================================================================
   Hussein Omran UI refresh — modern controls & dropdown polish
   Safe additive layer: keeps existing markup and RTL/LTR behavior intact.
   ============================================================================ */

.user-panel-body .form-select,
.user-panel-body select.form-select,
.user-panel-body select {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 44px !important;
    padding-inline-start: 18px !important;
    padding-inline-end: 44px !important;
    cursor: pointer !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-position .2s ease !important;
}

html[dir="rtl"] .user-panel-body .form-select,
html[dir="rtl"] .user-panel-body select.form-select,
html[dir="rtl"] .user-panel-body select {
    background-position: left 16px center !important;
}

.user-panel-body .form-select:hover,
.user-panel-body select:hover {
    border-color: #c9b900 !important;
    box-shadow: 0 5px 16px rgba(17, 24, 39, .07) !important;
}

.user-panel-body .form-select:focus,
.user-panel-body select:focus {
    transform: translateY(-1px) !important;
    background-position: right 16px center !important;
}

html[dir="rtl"] .user-panel-body .form-select:focus,
html[dir="rtl"] .user-panel-body select:focus {
    background-position: left 16px center !important;
}

.user-panel-body .form-select option,
.user-panel-body select option {
    background: #fff !important;
    color: #111827 !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    padding: 10px 14px !important;
}

/* Search and selector groups feel like one calm control surface. */
.user-panel-body .form-label + .form-select,
.user-panel-body .form-label + select {
    margin-top: 2px !important;
}

.user-panel-body .card,
.user-panel-body .panel-card,
.user-panel-body .order-card {
    border-color: rgba(229, 231, 235, .9) !important;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .045) !important;
}

@media (prefers-reduced-motion: reduce) {
    .user-panel-body .form-select,
    .user-panel-body select {
        transition: none !important;
    }
}

/* Hussein Omran visual category picker — reference-inspired dark cards */
.modern-category-picker {
    margin-top: 6px !important;
}
.modern-picker-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.modern-picker-hint {
    color: #9CA3AF;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.modern-picker-hint i {
    color: #dc2626;
}
.visually-hidden-category-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.category-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    background: linear-gradient(145deg, #15171c 0%, #0d0f13 100%);
    border: 1px solid #2b2f37;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 12px 26px rgba(17,24,39,.12);
}
.category-card {
    position: relative;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border: 1px solid #272b33;
    border-bottom: 2px solid #3a1820;
    border-radius: 14px;
    background: linear-gradient(145deg, #181b21, #111318);
    color: #F3F4F6;
    font: inherit;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-2px);
    border-color: #b91c2d;
    outline: none;
    box-shadow: 0 8px 20px rgba(185,28,45,.18);
}
.category-card.is-selected {
    background: linear-gradient(145deg, #f5232e 0%, #b80e20 100%);
    border-color: #ff4a53;
    border-bottom-color: #7f101b;
    color: #fff;
    box-shadow: 0 8px 22px rgba(220,38,38,.28), inset 0 1px 0 rgba(255,255,255,.2);
}
.category-card-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #F87171;
    font-size: 19px;
}
.category-card.is-selected .category-card-icon {
    color: #fff;
}
.category-card-label {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}
.category-card-check {
    position: absolute;
    top: 7px;
    inset-inline-end: 8px;
    font-size: 10px;
    color: rgba(255,255,255,.9);
}
@media (max-width: 800px) {
    .category-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }
    .category-card {
        min-height: 70px;
        border-radius: 12px;
    }
}
@media (max-width: 480px) {
    .modern-picker-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
    .category-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (prefers-reduced-motion: reduce) {
    .category-card { transition: none; }
}

/* Dropdown behavior: closed trigger, animated card panel on open */
.category-dropdown-wrap {
    position: relative;
    z-index: 30;
}
.category-picker-trigger {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-align: start;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.category-picker-trigger:hover,
.category-picker-trigger.is-open {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220,38,38,.1), 0 8px 20px rgba(17,24,39,.08);
}
.category-picker-trigger-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff1f2;
    color: #dc2626;
}
.category-picker-trigger-label {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.category-picker-trigger-chevron {
    color: #6B7280;
    transition: transform .2s ease, color .2s ease;
}
.category-picker-trigger.is-open .category-picker-trigger-chevron {
    transform: rotate(180deg);
    color: #dc2626;
}
.category-dropdown-panel {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 8px);
    padding: 0;
    animation: categoryPanelIn .2s cubic-bezier(.16,1,.3,1);
}
.category-dropdown-panel[hidden] {
    display: none !important;
}
.category-dropdown-panel .category-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: min(420px, 58vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 22px 45px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
@keyframes categoryPanelIn {
    from { opacity: 0; transform: translateY(-8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 800px) {
    .category-dropdown-panel .category-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .category-dropdown-panel .category-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==============================================================================
   New Order 2026 Premium Workspace — strictly scoped to #new-order-card
   ============================================================================== */
#new-order-card.new-order-card {
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding: 26px !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(99,102,241,.18), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(14,165,233,.10), transparent 34%),
        linear-gradient(145deg, #0b1220 0%, #111827 58%, #172033 100%) !important;
    box-shadow: 0 24px 60px rgba(2,6,23,.22), inset 0 1px 0 rgba(255,255,255,.06) !important;
}
#new-order-card .form-group { position: relative; }
#new-order-card .form-label { color: #E5E7EB !important; letter-spacing: .1px; }
#new-order-card .modern-picker-heading { color: #F8FAFC; }
#new-order-card .modern-picker-hint { color: #94A3B8; }
#new-order-card .form-control,
#new-order-card .form-select {
    min-height: 50px;
    border-color: #334155 !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 4px 16px rgba(2,6,23,.12) !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}
#new-order-card .form-control:focus,
#new-order-card .form-select:focus {
    border-color: #60A5FA !important;
    box-shadow: 0 0 0 4px rgba(96,165,250,.18), 0 8px 24px rgba(2,6,23,.20) !important;
    outline: none;
    transform: translateY(-1px);
}
#new-order-card .form-control::placeholder { color: #64748B !important; }
#new-order-card .category-picker-trigger {
    min-height: 54px;
    border: 1px solid #334155 !important;
    border-radius: 14px;
    background: rgba(15,23,42,.82) !important;
    color: #F8FAFC !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 4px 16px rgba(2,6,23,.15);
}
#new-order-card .category-picker-trigger:hover,
#new-order-card .category-picker-trigger.is-open {
    border-color: #818CF8 !important;
    box-shadow: 0 0 0 4px rgba(129,140,248,.15), 0 12px 24px rgba(2,6,23,.25);
}
#new-order-card .category-dropdown-panel { z-index: 60; }
#new-order-card .category-dropdown-panel .category-card-grid {
    background: #111827;
    border-color: #334155;
}
#new-order-card .service-description-shell {
    min-height: 86px;
    padding: 16px !important;
    border: 1px solid rgba(96,165,250,.25) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(30,41,59,.96), rgba(15,23,42,.96)) !important;
    color: #CBD5E1 !important;
    font-size: 13px;
    line-height: 1.85;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 24px rgba(2,6,23,.16);
}
#new-order-card .service-description-shell.is-updated { animation: newOrderDescriptionIn .28s ease-out; }
#new-order-card .service-description-shell .service-metrics-bar { border-bottom-color: rgba(148,163,184,.18) !important; }
#new-order-card .service-description-shell .service-desc-content { color: #CBD5E1 !important; }
#new-order-card #quantity_group > div:last-child {
    color: #94A3B8 !important;
}
#new-order-card #quantity_group strong { color: #F8FAFC !important; }
#new-order-card #dripfeed_group {
    border-color: #334155 !important;
    background: rgba(23,32,51,.92) !important;
}
#new-order-card .order-summary-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border: 1px solid rgba(99,102,241,.45);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(30,41,59,.96), rgba(15,23,42,.96));
    box-shadow: 0 14px 32px rgba(2,6,23,.22), inset 0 1px 0 rgba(255,255,255,.05);
}
#new-order-card .order-summary-widget > div:first-child { min-width: 150px; }
#new-order-card .order-summary-widget > div:first-child > div:first-child { color: #94A3B8 !important; font-size: 12px; font-weight: 800; }
#new-order-card .order-total-amount {
    margin-top: 4px;
    color: #FFFFFF !important;
    font-family: 'Inter', monospace;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -.6px;
    text-shadow: 0 0 20px rgba(96,165,250,.28);
}
#new-order-card .order-submit-btn {
    min-height: 52px;
    padding: 13px 24px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #4F46E5, #2563EB) !important;
    box-shadow: 0 10px 24px rgba(37,99,235,.30), inset 0 1px 0 rgba(255,255,255,.18);
    font-size: 14px !important;
    font-weight: 900 !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
#new-order-card .order-submit-btn:hover,
#new-order-card .order-submit-btn:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37,99,235,.42), 0 0 0 4px rgba(96,165,250,.14);
    outline: none;
}
#new-order-card .btn-pill-yellow,
#new-order-card #btnOpenAiModal { box-shadow: 0 6px 16px rgba(250,204,21,.18); }
@keyframes newOrderDescriptionIn {
    from { opacity: .35; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
    #new-order-card.new-order-card { padding: 16px !important; border-radius: 18px !important; }
    #new-order-card .order-summary-widget { align-items: stretch; padding: 16px; }
    #new-order-card .order-summary-widget > div:first-child,
    #new-order-card .order-submit-btn { width: 100%; }
    #new-order-card .order-submit-btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    #new-order-card .form-control, #new-order-card .form-select, #new-order-card .order-submit-btn { transition: none !important; }
    #new-order-card .service-description-shell.is-updated { animation: none; }
}

/* Service dropdown: simple, bounded, and mobile-safe. */
#new-order-card .service-dropdown-wrap { position: relative; z-index: 70; width: 100%; min-width: 0; box-sizing: border-box; }
#new-order-card .service-dropdown-wrap[hidden], #new-order-card .service-dropdown-panel[hidden] { display: none !important; }
#new-order-card .service-dropdown-trigger { width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid #334155; border-radius: 10px; background: #111827; color: #F8FAFC; font: inherit; font-weight: 700; text-align: start; cursor: pointer; }
#new-order-card .service-dropdown-trigger:hover, #new-order-card .service-dropdown-trigger.is-open, #new-order-card .service-dropdown-trigger:focus-visible { border-color: #64748B; outline: none; box-shadow: none; }
#new-order-card .service-dropdown-trigger-icon { width: 28px; height: 28px; flex: 0 0 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #1E293B; color: #CBD5E1; }
#new-order-card .service-dropdown-trigger-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: right; }
#new-order-card .service-dropdown-chevron { color: #94A3B8; }
#new-order-card .service-dropdown-panel { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 120; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; border: 1px solid #334155; border-radius: 10px; background: #111827; box-shadow: 0 10px 22px rgba(0,0,0,.28); }
#new-order-card .service-dropdown-list { width: 100%; max-height: min(360px, 45vh); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #64748B transparent; }
#new-order-card .service-dropdown-option { width: 100%; max-width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-bottom: 1px solid rgba(148,163,184,.14); background: transparent; color: #F8FAFC; font: inherit; cursor: pointer; direction: ltr; text-align: start; }
#new-order-card .service-dropdown-option:last-child { border-bottom: 0; }
#new-order-card .service-dropdown-option:hover, #new-order-card .service-dropdown-option:focus-visible, #new-order-card .service-dropdown-option.is-selected { background: #1E293B; outline: none; }
#new-order-card .service-dropdown-radio { width: 18px; height: 18px; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #CBD5E1; border-radius: 50%; color: transparent; font-size: 8px; }
#new-order-card .service-dropdown-option.is-selected .service-dropdown-radio { border-color: #94A3B8; background: #94A3B8; color: #111827; }
#new-order-card .service-dropdown-copy { min-width: 0; max-width: calc(100% - 76px); flex: 1; display: flex; flex-direction: column; gap: 2px; direction: rtl; text-align: right; }
#new-order-card .service-dropdown-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #F8FAFC; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
#new-order-card .service-dropdown-copy small { color: #94A3B8; font-size: 10px; }
#new-order-card .service-dropdown-option-icon { width: 26px; height: 26px; flex: 0 0 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #475569; border-radius: 7px; color: #CBD5E1; background: #1E293B; font-size: 11px; }
#new-order-card .service-dropdown-empty { padding: 20px 12px; color: #CBD5E1; text-align: center; font-weight: 700; }
@media (max-width: 640px) {
    html, body.user-panel-body { overflow-x: hidden !important; }
    body.user-panel-body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    #new-order-card, #new-order-card .service-dropdown-wrap { width: 100%; max-width: 100%; min-width: 0; }
    #new-order-card .service-dropdown-panel { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
    #new-order-card .service-dropdown-list { max-height: min(320px, 42vh); }
}

/* Keep the off-canvas mobile drawer from creating page-level horizontal overflow. */
body.user-panel-body { overflow-x: hidden !important; }

/* Compact dropdown system: both selectors stay small and inside the order card. */
#new-order-card .category-picker-trigger {
    min-height: 44px !important;
    padding: 7px 10px !important;
    gap: 8px;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 13px !important;
}
#new-order-card .category-picker-trigger:hover,
#new-order-card .category-picker-trigger.is-open {
    box-shadow: none !important;
}
#new-order-card .category-picker-trigger-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    border-radius: 7px;
    font-size: 12px;
}
#new-order-card .category-dropdown-panel {
    top: calc(100% + 4px);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0,0,0,.28);
    animation: none;
}
#new-order-card .category-dropdown-panel .category-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    max-height: 280px;
    border-radius: 10px;
    box-shadow: none;
}
#new-order-card .category-dropdown-panel .category-card {
    min-height: 52px;
    padding: 6px 5px;
    gap: 3px;
    border-radius: 8px;
    box-shadow: none;
    transition: background .12s ease, border-color .12s ease;
}
#new-order-card .category-dropdown-panel .category-card:hover,
#new-order-card .category-dropdown-panel .category-card:focus-visible {
    transform: none;
    box-shadow: none;
}
#new-order-card .category-dropdown-panel .category-card-icon {
    width: 22px;
    height: 22px;
    font-size: 14px;
}
#new-order-card .category-dropdown-panel .category-card-label {
    font-size: 10px;
    line-height: 1.15;
}
#new-order-card .category-dropdown-panel .category-card-check {
    top: 4px;
    inset-inline-end: 5px;
    font-size: 8px;
}
#new-order-card .service-dropdown-trigger {
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 13px;
}
#new-order-card .service-dropdown-trigger-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    border-radius: 7px;
    font-size: 12px;
}
#new-order-card .service-dropdown-panel {
    top: calc(100% + 4px);
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0,0,0,.28);
}
#new-order-card .service-dropdown-list { max-height: 280px; }
#new-order-card .service-dropdown-option {
    min-height: 42px;
    padding: 5px 8px;
    gap: 6px;
}
#new-order-card .service-dropdown-copy strong { font-size: 11.5px; line-height: 1.2; }
#new-order-card .service-dropdown-copy small { font-size: 9px; }
#new-order-card .service-dropdown-radio { width: 16px; height: 16px; flex-basis: 16px; }
#new-order-card .service-dropdown-option-icon { width: 22px; height: 22px; flex-basis: 22px; font-size: 10px; border-radius: 6px; }
@media (max-width: 640px) {
    #new-order-card .category-dropdown-panel .category-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 240px; }
    #new-order-card .service-dropdown-list { max-height: 240px; }
}

/* Service-selection micro-interactions: visual only, no change to order behavior. */
@keyframes serviceTriggerOpen {
    0% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}
@keyframes serviceOptionSelected {
    0% { opacity: .72; transform: translateX(3px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes serviceDescriptionReveal {
    0% { opacity: .55; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}
#new-order-card .service-dropdown-trigger {
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
#new-order-card .service-dropdown-trigger.is-open {
    animation: serviceTriggerOpen .2s ease-out;
    background-color: #172033;
}
#new-order-card .service-dropdown-option {
    transition: background-color .14s ease, border-color .14s ease, transform .14s ease, opacity .14s ease;
}
#new-order-card .service-dropdown-option:active {
    transform: scale(.992);
}
#new-order-card .service-dropdown-option.is-selected {
    animation: serviceOptionSelected .18s ease-out;
}
#new-order-card .service-dropdown-option.is-selected .service-dropdown-radio {
    transition: background-color .14s ease, border-color .14s ease, transform .14s ease;
    transform: scale(1.04);
}
#new-order-card .service-description-shell.is-updated {
    animation: serviceDescriptionReveal .24s ease-out;
}
@media (prefers-reduced-motion: reduce) {
    #new-order-card .service-dropdown-trigger,
    #new-order-card .service-dropdown-option,
    #new-order-card .service-dropdown-option.is-selected .service-dropdown-radio {
        transition: none !important;
    }
    #new-order-card .service-dropdown-trigger.is-open,
    #new-order-card .service-dropdown-option.is-selected,
    #new-order-card .service-description-shell.is-updated {
        animation: none !important;
    }
}

/* Final mobile containment: keep both custom panels inside the phone viewport. */
@media (max-width: 640px) {
    #new-order-card .category-dropdown-panel,
    #new-order-card .service-dropdown-panel {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        inset-inline-start: 12px !important;
        inset-inline-end: 12px !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }
}

/* New Order Visual Polish 2026 — visual-only layer. */
:root { --order-ink:#f8fafc; --order-muted:#94a3b8; --order-panel:#0b1220; --order-panel-2:#111b2e; --order-line:rgba(148,163,184,.18); --order-accent:#7dd3fc; --order-accent-2:#a78bfa; }
body.user-panel-body { background:radial-gradient(circle at 78% 3%,rgba(56,189,248,.08),transparent 28rem),radial-gradient(circle at 20% 35%,rgba(167,139,250,.06),transparent 26rem),#f4f7fb !important; }
.responsive-grid-2col { gap:24px !important; align-items:start !important; }
.responsive-grid-2col > div:first-child,.responsive-grid-2col > div:last-child { min-width:0; }
.tab-pills-bar { gap:8px !important; margin-bottom:12px !important; }
.tab-pills-bar .tab-pill-black,.tab-pills-bar .tab-pill-yellow { min-height:38px !important; border-radius:12px !important; padding:9px 14px !important; font-size:12px !important; border:1px solid rgba(15,23,42,.12) !important; box-shadow:0 8px 18px rgba(15,23,42,.07) !important; }
#new-order-card { position:relative; overflow:visible !important; padding:26px !important; border:1px solid rgba(148,163,184,.22) !important; border-radius:26px !important; background:linear-gradient(145deg,#0b1220 0%,#101b31 55%,#0b1428 100%) !important; box-shadow:0 24px 60px rgba(15,23,42,.20),inset 0 1px 0 rgba(255,255,255,.07) !important; }
#new-order-card::before { content:''; position:absolute; inset:0 0 auto; height:3px; border-radius:26px 26px 0 0; background:linear-gradient(90deg,#38bdf8,#818cf8,#fbbf24); opacity:.9; }
#new-order-card .form-group { margin-bottom:19px !important; }
#new-order-card .form-label,#new-order-card .modern-picker-heading .form-label,#new-order-card label { color:#e2e8f0 !important; font-size:12px !important; letter-spacing:.1px; }
#new-order-card .modern-picker-heading { margin-bottom:8px !important; }
#new-order-card .modern-picker-hint { color:#64748b !important; font-size:11px !important; }
#new-order-card .form-control,#new-order-card .form-select,#new-order-card .category-picker-trigger,#new-order-card .service-dropdown-trigger { min-height:52px !important; border:1px solid rgba(148,163,184,.22) !important; border-radius:15px !important; background:rgba(17,27,46,.94) !important; color:#f8fafc !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 8px 20px rgba(2,6,23,.12) !important; }
#new-order-card .form-control,#new-order-card .form-select { padding:13px 16px !important; }
#new-order-card .form-control:focus,#new-order-card .form-select:focus,#new-order-card .category-picker-trigger:focus-visible,#new-order-card .service-dropdown-trigger:focus-visible,#new-order-card .category-picker-trigger.is-open,#new-order-card .service-dropdown-trigger.is-open { border-color:var(--order-accent) !important; box-shadow:0 0 0 4px rgba(125,211,252,.13),0 12px 26px rgba(2,6,23,.18) !important; }
#new-order-card .form-control::placeholder { color:#64748b !important; }
#new-order-card .search-input-icon { color:#7dd3fc !important; }
#new-order-card .category-picker-trigger,#new-order-card .service-dropdown-trigger { padding:9px 13px !important; }
#new-order-card .category-picker-trigger-icon,#new-order-card .service-dropdown-trigger-icon { width:31px !important; height:31px !important; flex-basis:31px !important; border-radius:10px !important; background:linear-gradient(135deg,rgba(56,189,248,.18),rgba(129,140,248,.2)) !important; color:#bae6fd !important; }
#new-order-card .category-picker-trigger-label,#new-order-card .service-dropdown-trigger-label { color:#f8fafc !important; font-size:13px !important; }
#new-order-card .category-dropdown-panel,#new-order-card .service-dropdown-panel { border:1px solid rgba(125,211,252,.28) !important; border-radius:16px !important; background:#0b1220 !important; box-shadow:0 24px 55px rgba(2,6,23,.42) !important; }
#new-order-card .category-dropdown-panel .category-card-grid { background:#0b1220 !important; }
#new-order-card .category-dropdown-panel .category-card { border-color:rgba(148,163,184,.14) !important; background:rgba(17,27,46,.85) !important; }
#new-order-card .category-dropdown-panel .category-card:hover,#new-order-card .category-dropdown-panel .category-card:focus-visible,#new-order-card .category-dropdown-panel .category-card.is-selected { border-color:rgba(125,211,252,.55) !important; background:linear-gradient(135deg,rgba(56,189,248,.18),rgba(129,140,248,.18)) !important; }
#new-order-card .service-dropdown-option:hover,#new-order-card .service-dropdown-option:focus-visible,#new-order-card .service-dropdown-option.is-selected { background:linear-gradient(90deg,rgba(56,189,248,.13),rgba(129,140,248,.13)) !important; }
#new-order-card .service-description-shell { min-height:118px !important; padding:18px !important; border:1px solid rgba(125,211,252,.18) !important; border-radius:18px !important; background:linear-gradient(145deg,rgba(17,27,46,.96),rgba(14,25,47,.82)) !important; color:#cbd5e1 !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.04) !important; }
#new-order-card .service-description-shell .service-metrics-bar { border-bottom-color:rgba(148,163,184,.16) !important; }
#new-order-card #quantity_group > div:last-child { color:#64748b !important; }
#new-order-card #quantity_group strong { color:#bae6fd !important; }
#new-order-card #dripfeed_group { border:1px solid rgba(125,211,252,.2) !important; border-radius:16px !important; background:rgba(17,27,46,.9) !important; }
#new-order-card .order-summary-widget { gap:16px !important; padding:18px 20px !important; border:1px solid rgba(125,211,252,.22) !important; border-radius:18px !important; background:linear-gradient(135deg,rgba(30,41,59,.96),rgba(15,23,42,.96)) !important; box-shadow:0 16px 34px rgba(2,6,23,.25),inset 0 1px 0 rgba(255,255,255,.06) !important; }
#new-order-card .order-summary-widget > div:first-child > div:first-child { color:#94a3b8 !important; }
#new-order-card .order-total-amount { color:#f8fafc !important; font-size:clamp(23px,3vw,32px) !important; text-shadow:0 0 22px rgba(125,211,252,.25) !important; }
#new-order-card .order-submit-btn { min-height:52px !important; border:0 !important; border-radius:15px !important; background:linear-gradient(135deg,#fbbf24,#f59e0b) !important; color:#111827 !important; box-shadow:0 12px 24px rgba(245,158,11,.24) !important; }
#new-order-card .order-submit-btn:hover,#new-order-card .order-submit-btn:focus-visible { filter:brightness(1.06) !important; box-shadow:0 16px 30px rgba(245,158,11,.34),0 0 0 4px rgba(251,191,36,.15) !important; }
.responsive-grid-2col > div:last-child .card { background:linear-gradient(145deg,#0b1220,#101b31) !important; border:1px solid rgba(148,163,184,.2) !important; border-radius:22px !important; box-shadow:0 18px 42px rgba(15,23,42,.16),inset 0 1px 0 rgba(255,255,255,.05) !important; }
.responsive-grid-2col > div:last-child .card > div,.responsive-grid-2col > div:last-child .card p,.responsive-grid-2col > div:last-child .card li { color:#cbd5e1 !important; }
.responsive-grid-2col > div:last-child .card > div:first-child { color:#f8fafc !important; }
.responsive-grid-2col > div:last-child .card > div[style*="background: #F9FAFB"],.responsive-grid-2col > div:last-child .card > div[style*="background:#F9FAFB"] { background:rgba(255,255,255,.045) !important; border-color:rgba(148,163,184,.16) !important; color:#e2e8f0 !important; }
.responsive-grid-2col > div:last-child .card code { color:#bae6fd !important; }
/* Mobile guardrails: panels stay compact and scroll internally. */
@media (max-width:800px) { #new-order-card { padding:20px !important; border-radius:22px !important; } .responsive-grid-2col { gap:16px !important; } }
@media (max-width:480px) { #new-order-card { padding:16px !important; } #new-order-card .order-summary-widget { align-items:stretch !important; padding:16px !important; } #new-order-card .order-submit-btn { width:100% !important; justify-content:center !important; } }
@media (max-width:640px) {
  #new-order-card .category-dropdown-panel .category-card-grid { max-height:240px !important; height:auto !important; overflow-y:auto !important; }
  #new-order-card .service-dropdown-panel,#new-order-card .service-dropdown-list { height:auto !important; max-height:240px !important; overflow-y:auto !important; }
}
.category-card-icon.has-image { width:40px !important; height:40px !important; overflow:hidden; border-radius:11px; }
.category-card-icon.has-image img { width:100%; height:100%; object-fit:cover; display:block; }
.order-filter-status { min-height: 18px; margin-top: 6px; color: #94a3b8; font-size: 11px; font-weight: 700; text-align: start; }
#new-order-card .service-dropdown-option:focus-visible,
#new-order-card .category-card:focus-visible { outline: 2px solid #7dd3fc !important; outline-offset: 2px; }
