/*
 * AH-GSM reseller panel — workspace 2026
 * Ink sidebar + light operating deck. Keep JS hooks/IDs untouched.
 */
:root {
    --primary: #0e7490 !important;
    --secondary: #0f766e !important;
    --bg-body: #eaf4f7 !important;
    --text-main: #071018 !important;
    --ink: #061018;
    --ink2: #0b1824;
    --cyan: #2ee6c7;
    --cyan2: #67e8f9;
    --stroke: #d5e8e6;
}

html:has(body.panel-workspace) body.panel-workspace,
body.panel-workspace {
    background:
        radial-gradient(circle at 92% -8%, rgba(46, 230, 199, 0.14), transparent 26rem),
        radial-gradient(circle at 8% 100%, rgba(14, 116, 144, 0.06), transparent 22rem),
        #eaf4f7 !important;
}
body.panel-workspace {
    --primary: #0e7490 !important;
    --secondary: #0f766e !important;
    --bg-body: #eaf4f7 !important;
    color: #071018;
    max-width: 100%;
    overflow-x: hidden;
}

.floating-menu-container,
.btm-nav,
.fab-add,
.panel-dock {
    display: none !important;
}

.main-btn {
    background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px -14px rgba(14, 116, 144, 0.55) !important;
    border-radius: 16px !important;
}

.cat-fa {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #0f766e !important;
    color: #0f766e !important;
    font-size: 1.45rem !important;
}

.svc-order-btn {
    background: linear-gradient(135deg, #0f766e, #0e7490) !important;
}

.smm-progress-bar-fill {
    background: linear-gradient(90deg, #2ee6c7 0%, #0e7490 100%) !important;
}

.inner-header {
    background: rgba(255,255,255,0.92) !important;
    border-bottom: 1px solid var(--stroke);
    box-shadow: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.inner-title {
    font-weight: 800 !important;
    color: #0b1220;
}

#svc-desc-btn {
    background: linear-gradient(135deg, #ecfeff 0%, #ccfbf1 100%) !important;
    color: #0f766e !important;
}

/* ===== Home dashboard ===== */
#view-home {
    overflow-x: hidden;
}
#view-home .curved-header {
    background: transparent !important;
    color: #0b1220 !important;
    padding: 16px 16px 8px !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
#view-home .panel-page-chip {
    background: rgba(46, 230, 199, 0.16);
    border: 1px solid rgba(46, 230, 199, 0.28);
    color: #0f766e;
}
#view-home .panel-welcome-hi {
    color: #64748b;
    opacity: 1;
}
#view-home .panel-welcome-name {
    color: #0b1220;
}

.panel-home-tier {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 16px 14px;
    min-height: 96px;
    padding: 16px 18px;
    border-radius: 22px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 100% 0%, var(--tier-glow, rgba(46, 230, 199, 0.32)), transparent 46%),
        linear-gradient(160deg, #061018 0%, #0b1824 72%);
    border: 1px solid var(--tier-line, rgba(46, 230, 199, 0.78));
    box-shadow:
        inset -5px 0 0 var(--tier-color, #2ee6c7),
        0 16px 32px -20px rgba(6, 16, 24, 0.85);
}
.panel-home-tier .sidebar-tier-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--tier-color, #2ee6c7);
    color: var(--tier-icon-fg, #fff) !important;
    font-size: 1.35rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}
.panel-home-tier .sidebar-tier-icon i {
    color: var(--tier-icon-fg, #fff) !important;
}
.panel-home-tier .sidebar-tier-icon.has-image {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 4px;
}
.panel-home-tier .sidebar-tier-icon.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.panel-home-tier .sidebar-tier-copy small {
    color: rgba(234, 247, 255, 0.72);
    font-size: 0.74rem;
}
.panel-home-tier .sidebar-tier-name {
    font-size: 1.22rem !important;
    color: var(--tier-text, var(--tier-color, #2ee6c7)) !important;
}

.panel-top-tier {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-height: 40px;
    padding: 6px 12px;
    border-radius: 12px;
    background: #061018;
    border: 1px solid var(--tier-line, rgba(46, 230, 199, 0.78));
    box-shadow: inset -3px 0 0 var(--tier-color, #2ee6c7);
    color: var(--tier-text, #2ee6c7);
    line-height: 1.2;
    flex-shrink: 0;
}
.panel-top-tier span {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(234, 247, 255, 0.72);
}
.panel-top-tier b {
    font-size: 0.82rem;
    font-weight: 900;
    color: var(--tier-text, #2ee6c7);
}

#view-home .floating-balance {
    margin: 0 16px 14px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    gap: 10px !important;
    display: grid !important;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    align-items: stretch;
}
#view-home .floating-balance .bal-row {
    grid-column: 1;
    background:
        radial-gradient(circle at 100% 0%, rgba(46, 230, 199, 0.22), transparent 46%),
        linear-gradient(160deg, #061018 0%, #0b1824 70%);
    color: #fff;
    border-radius: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(46, 230, 199, 0.18);
    box-shadow: 0 18px 36px -22px rgba(6, 16, 24, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
#view-home .floating-balance .bal-row > div { min-width: 0; flex: 1; }
#view-home .floating-balance .bal-label {
    color: #94a3b8 !important;
    letter-spacing: 0.04em;
}
#view-home .floating-balance .bal-amount {
    color: #2ee6c7 !important;
    font-size: 1.45rem !important;
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}
#view-home .floating-balance .stats-row {
    display: contents !important;
    border: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}
#view-home .floating-balance .stat-item {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 14px 10px 12px;
    box-shadow: 0 10px 22px -18px rgba(15, 23, 42, 0.28);
    min-width: 0;
    border-top: 3px solid #cbd5e1;
}
#view-home .floating-balance .stat-item:nth-child(1) { border-top-color: #16a34a; }
#view-home .floating-balance .stat-item:nth-child(2) { border-top-color: #f59e0b; }
#view-home .floating-balance .stat-item:nth-child(3) { border-top-color: #ef4444; }
#view-home .floating-balance .stat-val {
    font-size: 1.25rem;
    font-weight: 900;
}
#view-home .floating-balance .stat-lbl {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
}

.panel-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 16px 12px;
}
.panel-shortcut {
    border: 1px solid var(--stroke);
    background: #fff;
    border-radius: 18px;
    padding: 12px 8px 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.72rem;
    color: #0b1824;
    cursor: pointer;
    box-shadow: 0 8px 18px -16px rgba(6, 16, 24, 0.45);
}
.panel-shortcut:active { transform: scale(0.98); }
.panel-shortcut i {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.92rem;
}
.panel-shortcut.is-topup i { background: linear-gradient(135deg, #2ee6c7, #0f766e); }
.panel-shortcut.is-hist i { background: linear-gradient(135deg, #67e8f9, #0e7490); }
.panel-shortcut.is-wallet i { background: linear-gradient(135deg, #5eead4, #115e59); }
.panel-shortcut.is-support i { background: linear-gradient(135deg, #38bdf8, #0e7490); }

.search-container {
    padding: 0 16px 12px !important;
}
.main-search-bar,
.top-navbar-search {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 48px;
    background: #fff !important;
    border: 1px solid var(--stroke) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px -18px rgba(15, 23, 42, 0.4);
    padding: 5px 8px !important;
    box-sizing: border-box;
    margin: 0;
    cursor: text;
    width: 100%;
}
.search-ico {
    width: 38px;
    height: 38px;
    margin: 0 !important;
    border-radius: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    line-height: 1;
    background: linear-gradient(145deg, #2ee6c7 0%, #0f766e 78%);
    color: #04251f !important;
    box-shadow: 0 8px 16px -12px rgba(15, 118, 110, 0.7);
}
.main-search-bar .search-ico i,
.top-navbar-search .search-ico i,
.main-search-bar > i,
.top-navbar-search > i {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: inherit;
    line-height: 1;
}
body.panel-workspace .main-search-bar input,
body.panel-workspace .top-navbar-search input,
.main-search-bar input,
.top-navbar-search input {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 0 !important;
    padding: 0 6px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: #0b1220 !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 38px !important;
}
.main-search-bar input::placeholder,
.top-navbar-search input::placeholder {
    font-weight: 600;
    opacity: 0.85;
}
.main-search-bar:focus-within,
.top-navbar-search:focus-within {
    border-color: #2ee6c7 !important;
    box-shadow: 0 0 0 4px rgba(46, 230, 199, 0.16);
}

.search-container,
.panel-shortcuts {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.quick-access-container {
    padding: 0 16px 8px !important;
}

.panel-dash-topup {
    border: 0;
    background: #2ee6c7;
    color: #04251f;
    font-weight: 900;
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 9px 14px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 16px -10px rgba(46, 230, 199, 0.8);
}

.panel-nav-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 14px 10px 6px;
    text-transform: none;
}
.sidebar .panel-nav-label {
    color: #7dd3fc;
    opacity: 0.85;
}

.panel-page-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
    width: fit-content;
}

.panel-welcome {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    padding-top: 2px;
}
.panel-welcome-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.panel-welcome-hi {
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.86;
    white-space: nowrap;
}
.panel-welcome-name {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-section-head {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0b1220;
    margin: 4px 4px 12px;
}

.panel-wa-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
}
.panel-wa-banner:hover { color: #14532d; }

.panel-header-cta {
    border: 0;
    background: linear-gradient(135deg, #0f766e, #0e7490);
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    border-radius: 12px;
    padding: 8px 12px;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}
.panel-window-name {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0f766e;
    margin-bottom: 4px;
}

.panel-sheet-form { padding: 0 16px 24px; }
.panel-sheet-body {
    background: #fff;
    border-radius: 20px;
    padding: 12px 14px 8px;
    border: 1px solid var(--stroke);
}
.panel-sheet-foot { padding: 14px 0 8px; }

.sidebar-nav-logout,
.panel-mobile-menu-item.is-logout { margin-top: 6px; }
.panel-desk-iconbar .sidebar-nav-logout { margin-top: 0 !important; }
#view-profile .panel-profile-tabs,
#view-profile .nav-tabs { display: none !important; }
#view-profile .tab-content > .tab-pane { display: none !important; }
#view-profile .tab-content > .tab-pane.active { display: block !important; }
.panel-shortcuts { display: none !important; }
@media (min-width: 992px) {
    #view-home .search-container { display: none !important; }
}
.sidebar-nav-item,
.panel-mobile-menu-item {
    white-space: normal;
    line-height: 1.3;
}

.panel-notif-list { padding: 8px 12px 24px; }

.modal-content {
    border-radius: 22px !important;
    border: 1px solid var(--stroke) !important;
}

/* ===== Mobile hamburger ===== */
.panel-menu-fab {
    display: none;
    position: fixed;
    z-index: 55;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2ee6c7 0%, #0f766e 70%);
    color: #04251f;
    box-shadow: 0 12px 28px -12px rgba(15, 118, 110, 0.75);
    -webkit-appearance: none;
    appearance: none;
}
.panel-menu-fab:active { transform: scale(0.94); }
.panel-menu-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 18px;
}
.panel-menu-bars span {
    display: block;
    height: 2.5px;
    width: 100%;
    border-radius: 99px;
    background: #04251f;
}
body.panel-menu-open .panel-menu-bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.panel-menu-open .panel-menu-bars span:nth-child(2) { opacity: 0; }
body.panel-menu-open .panel-menu-bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.panel-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(6, 16, 24, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
body.panel-menu-open { overflow: hidden; }
body.panel-menu-open .panel-menu-backdrop { display: block; }

.panel-mobile-menu {
    position: fixed;
    z-index: 65;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 340px);
    background:
        radial-gradient(circle at 0% 0%, rgba(46, 230, 199, 0.2), transparent 16rem),
        linear-gradient(180deg, #041016 0%, #0a1c28 100%);
    color: #eaf7ff;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 18px 0 40px -20px rgba(0,0,0,0.55);
    padding: calc(18px + env(safe-area-inset-top, 0px)) 14px 24px;
    overflow-y: auto;
    display: none;
}
body.panel-menu-open .panel-mobile-menu { transform: translateX(0); }
.panel-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 4px 4px 14px;
    border-bottom: 1px solid rgba(46, 230, 199, 0.16);
}
.panel-mobile-menu .sidebar-tier-margin {
    margin: 0 0 14px;
}
.panel-mobile-menu-brand { font-weight: 800; font-size: 1.05rem; color: #fff; }
.panel-mobile-menu-user { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }
.panel-mobile-menu-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    cursor: pointer;
}
.panel-mobile-user {
    background: rgba(46, 230, 199, 0.08);
    border: 1px solid rgba(46, 230, 199, 0.18);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.panel-mobile-user small { color: #94a3b8; font-weight: 700; font-size: 0.7rem; }
.panel-mobile-user strong { display: block; color: #2ee6c7; font-size: 1.2rem; margin-top: 2px; }
.panel-mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    text-align: right;
    padding: 11px 10px;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    margin-bottom: 2px;
    position: relative;
}
.panel-mobile-menu-item i {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.9rem;
    position: relative;
}
.panel-mobile-menu-item:active,
.panel-mobile-menu-item.is-active { background: rgba(46, 230, 199, 0.12); }
.panel-mobile-menu-item.is-home i { background: #0e7490; }
.panel-mobile-menu-item.is-hist i { background: #0f766e; }
.panel-mobile-menu-item.is-topup i { background: #14b8a6; }
.panel-mobile-menu-item.is-membership i { background: #d97706; }
.panel-mobile-menu-item.is-notif i { background: #0891b2; }
.panel-mobile-menu-item.is-financial i { background: #155e75; }
.panel-mobile-menu-item.is-wallet i { background: #0f766e; }
.panel-mobile-menu-item.is-support i { background: #0284c7; }
.panel-mobile-menu-item.is-profile i,
.panel-mobile-menu-item.is-profile-general i { background: #334155; }
.panel-mobile-menu-item.is-profile-notif i { background: #0e7490; }
.panel-mobile-menu-item.is-profile-security i { background: #155e75; }
.panel-mobile-menu-item.is-profile-api i { background: #0f766e; }
.panel-mobile-menu-item.is-profile-accounts i { background: #14748a; }
.panel-mobile-menu-item.is-wa i { background: #25d366; }
.panel-mobile-menu-item.is-logout i { background: #b91c1c; }

.site-supported-by {
    margin: 4px 0 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0f766e;
    line-height: 1.25;
    text-align: left;
    direction: ltr;
}
.sidebar .site-supported-by,
.panel-mobile-menu .site-supported-by {
    color: #7dd3fc !important;
}
.panel-mobile-menu .panel-nav-label {
    color: #7dd3fc;
    opacity: 0.9;
}

.panel-mobile-menu-item .notif-dot,
.sidebar-nav-item .notif-dot {
    position: absolute;
    top: 10px;
    left: 12px;
    right: auto;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    border: 1px solid #fff;
    display: none;
    z-index: 2;
}
.sidebar-nav-item { position: relative; }

.panel-menu-fab.has-alert::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e11d48;
    border: 2px solid #fff;
}
.panel-mobile-menu-item i.has-notif::after,
.panel-mobile-menu-item i.has-notif-green::after,
.sidebar-nav-item i.has-notif::after,
.sidebar-nav-item i.has-notif-green::after,
.panel-top-notif i.has-notif::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #061018;
}
.panel-mobile-menu-item i.has-notif::after,
.sidebar-nav-item i.has-notif::after,
.panel-top-notif i.has-notif::after { background: #e11d48; }
.panel-mobile-menu-item i.has-notif-green::after,
.sidebar-nav-item i.has-notif-green::after { background: #16a34a; }

html:has(.ds-modal[data-open="1"]) .panel-menu-fab,
html:has(.custom-alert-overlay.show) .panel-menu-fab,
body:has(.modal.show) .panel-menu-fab,
body:has(#view-chat.active) .panel-menu-fab,
body:has(#view-topup-verify.active) .panel-menu-fab,
body:has(#egypt-support-modal[style*="flex"]) .panel-menu-fab,
body.panel-chat-on .panel-menu-fab,
body.panel-verify-on .panel-menu-fab {
    display: none !important;
}

@media (max-width: 991.98px) {
    .panel-menu-fab { display: inline-flex !important; }
    .panel-mobile-menu { display: block; }
    .sidebar,
    .top-navbar,
    .panel-desk-iconbar { display: none !important; }
    .app-view {
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    }
    #view-home {
        padding: 0 12px;
        overflow-x: hidden;
    }
    #view-home .curved-header {
        padding: 12px 4px 8px 56px !important;
        margin: 0 !important;
    }
    .inner-header { padding-left: 62px !important; }
    #view-home .panel-welcome,
    #view-home .panel-welcome-line {
        max-width: 100%;
        min-width: 0;
    }
    #view-home .panel-welcome-name { font-size: 1.05rem; }
    .panel-dash-topup { flex-shrink: 0; }
    #view-chat .inner-header,
    #view-topup-verify .inner-header {
        padding-left: 16px !important;
    }
    #view-home .floating-balance {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        width: auto !important;
    }
    #view-home .floating-balance .stats-row {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        border: 0 !important;
        padding: 0 !important;
    }
    .panel-shortcuts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 0 0 12px !important;
    }
    .search-container { padding: 0 0 12px !important; }
    .home-content-wrapper { padding: 0 0 24px !important; }
    #view-chat,
    #view-topup-verify { padding-bottom: 0 !important; }
    .chat-input-container {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 575.98px) {
    .panel-shortcuts { grid-template-columns: repeat(2, 1fr); }
    #view-home .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (min-width: 992px) {
    .panel-menu-fab,
    .panel-menu-backdrop,
    .panel-mobile-menu { display: none !important; }

    html body.panel-workspace {
        /* transparent so #ah-world shows through; no !important so the
           html.no-webgl fallback (higher specificity) still applies */
        background: transparent;
    }
    .main-container { background: transparent !important; }

    .sidebar { display: none !important; }
    .sidebar-header {
        margin-bottom: 10px;
        padding: 4px 6px 16px;
        border-bottom: 1px solid rgba(46, 230, 199, 0.14);
        flex-shrink: 0;
    }
    .sidebar-brand { display: flex; align-items: center; gap: 12px; }
    .sidebar-brand-logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        object-fit: contain;
        background: #fff;
        flex-shrink: 0;
    }
    .sidebar-brand-text { min-width: 0; flex: 1; }
    .sidebar-logo { font-weight: 900; font-size: 1.12rem; color: #67e8f9; line-height: 1.2; }
    .sidebar-user { font-size: 0.84rem; color: #d6eeff; margin-top: 4px; direction: ltr; text-align: right; word-break: break-all; }
    .sidebar-tier-margin {
        margin-top: 14px;
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 84px;
        flex-shrink: 0;
        background: var(--tier-bg, rgba(46, 230, 199, 0.38)) !important;
        border: 1px solid var(--tier-line, rgba(46, 230, 199, 0.78)) !important;
        border-radius: 18px;
        padding: 14px 16px;
    }
    .sidebar-tier-margin .sidebar-tier-name { font-size: 1.08rem; font-weight: 900; color: var(--tier-text, var(--tier-color, #2ee6c7)) !important; }
    .sidebar .panel-nav-label { color: #7dd3fc; }
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 3px;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-bottom: 8px;
    }
    .sidebar-nav-item {
        color: #cbd5e1 !important;
        padding: 8px 10px;
        border-radius: 14px;
        font-weight: 800;
        font-size: 0.84rem;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        position: relative;
    }
    .sidebar-nav-item i {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        flex-shrink: 0;
        position: relative;
    }
    .sidebar-nav-item:hover {
        background: rgba(46, 230, 199, 0.08) !important;
        color: #fff !important;
    }
    .sidebar-nav-item.active {
        background: rgba(46, 230, 199, 0.16) !important;
        color: #fff !important;
        box-shadow: inset -3px 0 0 #2ee6c7;
    }
    .sidebar-nav-home i { background: #0e7490 !important; }
    .sidebar-nav-history i { background: #0f766e !important; }
    .sidebar-nav-topup i { background: #14b8a6 !important; }
    .sidebar-nav-membership i { background: #d97706 !important; }
    .sidebar-nav-notifs i { background: #0891b2 !important; }
    .sidebar-nav-financial i { background: #155e75 !important; }
    .sidebar-nav-wallet i { background: #0f766e !important; }
    .sidebar-nav-support i { background: #0284c7 !important; }
    .sidebar-nav-profile i,
    .sidebar-nav-profile-general i { background: #334155 !important; }
    .sidebar-nav-profile-notif i { background: #0e7490 !important; }
    .sidebar-nav-profile-security i { background: #155e75 !important; }
    .sidebar-nav-profile-api i { background: #0f766e !important; }
    .sidebar-nav-profile-accounts i { background: #14748a !important; }
    .sidebar-nav-wa-group i { background: #16a34a !important; }
    .sidebar-nav-logout i { background: #b91c1c !important; }

    .top-navbar {
        display: flex !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 64px;
        z-index: 40;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
        background: rgba(243, 248, 250, 0.88);
        border-bottom: 1px solid var(--stroke);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        overflow: visible;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .top-navbar-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1 1 auto;
        min-width: 0;
    }
    .top-navbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
    .top-navbar-search {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 640px;
        min-width: 220px;
        flex: 1 1 auto;
        color: #64748b;
    }
    .top-navbar-search input {
        border: 0;
        background: transparent;
        outline: none;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        font-family: inherit;
    }
    .balance-display {
        background: #061018;
        color: #2ee6c7;
        font-weight: 800;
        border-radius: 12px;
        padding: 8px 12px;
        display: flex;
        gap: 6px;
        align-items: center;
        border: 1px solid rgba(46, 230, 199, 0.28);
    }
    .notif-btn, .profile-btn, .panel-top-topup {
        width: auto;
        height: 40px;
        border: 1px solid var(--stroke);
        background: #fff;
        border-radius: 12px;
        color: #0b1220;
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 12px;
        font-weight: 800;
        font-size: 0.8rem;
        font-family: inherit;
        cursor: pointer;
    }
    .panel-top-topup {
        background: #2ee6c7;
        color: #04251f;
        border: 0;
    }
    .notif-btn i, .profile-btn i, .panel-top-topup i {
        font-size: 0.92rem;
        line-height: 1;
        flex-shrink: 0;
    }

    .panel-desk-iconbar {
        display: flex !important;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        height: 76px;
        z-index: 39;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        padding: 6px 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        background: rgba(243, 248, 250, 0.96);
        border-bottom: 1px solid var(--stroke);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .panel-desk-iconbar .sidebar-nav-item {
        display: flex !important;
        flex: 1 1 0;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 5px !important;
        min-width: 64px;
        max-width: none;
        height: auto;
        padding: 6px 4px !important;
        margin: 0;
        appearance: none;
        -webkit-appearance: none;
        border: 0;
        border-radius: 12px !important;
        background: transparent !important;
        color: #334155 !important;
        font-family: inherit;
        font-weight: 800;
        font-size: 0.62rem;
        line-height: 1.2;
        text-align: center;
        cursor: pointer;
        box-shadow: none !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .panel-desk-iconbar .sidebar-nav-item i {
        width: 32px !important;
        height: 32px !important;
        border-radius: 10px !important;
        font-size: 0.82rem;
        margin: 0;
    }
    .panel-desk-iconbar .panel-desk-iconbar-label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: inherit;
    }
    .panel-desk-iconbar .sidebar-nav-item:hover {
        background: rgba(14, 116, 144, 0.08) !important;
        color: #0f172a !important;
    }
    .panel-desk-iconbar .sidebar-nav-item.active {
        background: rgba(46, 230, 199, 0.18) !important;
        color: #04251f !important;
        box-shadow: none !important;
    }
    .panel-desk-iconbar .sidebar-nav-logout {
        color: #be123c !important;
    }

    .app-view {
        left: 0 !important;
        right: auto !important;
        width: 100% !important;
        top: 140px !important;
        height: calc(100% - 140px) !important;
        padding: 0 !important;
        padding-bottom: 24px !important;
    }
    .inner-header {
        margin: 0 !important;
        position: sticky !important;
        top: 0 !important;
    }
    .home-content-wrapper { padding: 0 24px 24px !important; }
    .panel-shortcuts { padding: 0 24px 14px; }
    .search-container { padding: 0 24px 14px !important; }
    #view-home .curved-header { padding: 18px 24px 6px !important; }
    #view-home .floating-balance { margin: 0 24px 16px !important; }
    #view-home .panel-home-tier { margin: 0 24px 16px; min-height: 104px; }
    #view-home .panel-welcome-name { font-size: 1.4rem; }
    #view-chat {
        position: absolute !important;
        top: 140px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100% - 140px) !important;
        padding: 0 !important;
        z-index: 20 !important;
    }
}

#view-chat:not(.active) {
    z-index: 1 !important;
    pointer-events: none !important;
    display: none !important;
}
#view-chat.active {
    z-index: 9999 !important;
    display: flex !important;
}
@media (min-width: 992px) {
    #view-chat.active { z-index: 20 !important; }
}

#view-profile.active,
#view-notifs.active { z-index: 26; }

.panel-subcat-head {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}
#cat-header.panel-subcat-head[style*="flex"] { display: flex !important; }
.panel-back-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #ecfeff;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.inner-header > i,
.chat-header-fixed > i {
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.nav-tabs .nav-link.active {
    background: #ccfbf1 !important;
    color: #0f766e !important;
}
#loader-overlay { z-index: 200000 !important; }

.svc-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px !important;
    padding: 14px 16px 24px !important;
}
.svc-card-style,
.svc-mini-card {
    background: rgba(14, 24, 44, 0.55) !important;
    border: 1px solid rgba(103, 232, 249, 0.16) !important;
    backdrop-filter: blur(16px) saturate(155%);
    -webkit-backdrop-filter: blur(16px) saturate(155%);
    border-radius: 20px !important;
    padding: 14px !important;
    box-shadow: 0 12px 28px -20px rgba(8, 47, 73, 0.45) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
}
.app-card-icon-box {
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    background: #ecfeff !important;
    border-radius: 14px !important;
    border: 1px solid #cffafe;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-card-icon-box img,
.svc-icon-box .svc-img,
.cat-icon-wrap .cat-img,
.qa-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}
.qa-icon { background: #ecfeff !important; }
.svc-card-style .card-title,
.svc-name {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    color: #0b1220 !important;
    line-height: 1.35 !important;
    text-align: right !important;
    margin: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
}
.svc-card-style .card-price,
.svc-price {
    background: transparent !important;
    padding: 0 !important;
    color: #16a34a !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
}
.svc-order-btn { border-radius: 12px !important; padding: 8px 12px !important; cursor: pointer !important; }
.fav-star { top: 12px !important; left: 12px !important; }
.svc-card-top { padding-left: 28px; }

#view-home .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px !important; }
#view-home .cat-grid .cat-card {
    padding: 14px 8px 12px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: rgba(14, 24, 44, 0.55) !important;
    border: 1px solid rgba(103, 232, 249, 0.16) !important;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    min-height: 0 !important;
    min-width: 0 !important;
    box-shadow: 0 10px 22px -18px rgba(6, 16, 24, 0.32) !important;
    cursor: pointer;
}
#view-home .cat-grid .cat-card::before { display: none !important; }
#view-home .cat-grid .cat-icon-wrap {
    width: 52px !important;
    height: 52px !important;
    margin: 0 auto 8px !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #f0fdfa, #ccfbf1) !important;
    box-shadow: inset 0 0 0 1px rgba(46, 230, 199, 0.22);
}
#view-home .cat-grid .cat-name {
    padding: 0 6px;
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

@media (min-width: 992px) {
    .svc-grid,
    #services-list,
    #cat-svc-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        padding: 8px 24px 28px !important;
    }
    #view-home .cat-grid { gap: 14px !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    #view-home .cat-grid .cat-card { padding: 18px 10px 14px !important; }
    #view-home .cat-grid .cat-icon-wrap {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: 10px !important;
    }
    #view-home .cat-grid .cat-name { font-size: 0.86rem !important; }
}

@media (hover: hover) and (min-width: 992px) {
    #view-home .cat-grid .cat-card:hover {
        transform: translateY(-5px) !important;
        border-color: #2ee6c7 !important;
        box-shadow: 0 22px 36px -18px rgba(14, 116, 144, 0.28) !important;
    }
}

.order-card {
    border-color: var(--stroke) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 22px -18px rgba(6, 16, 24, 0.28) !important;
}
.modern-inp:focus {
    border-color: #2ee6c7 !important;
    box-shadow: 0 0 0 4px rgba(46, 230, 199, 0.18) !important;
}

#pwa-install-banner {
    display: none;
    position: fixed;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 420px;
    background: #061018;
    color: #fff;
    padding: 14px 16px;
    border-radius: 16px;
    z-index: 100040;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
}
#pwa-install-banner.is-visible { display: flex !important; }
#pwa-install-banner .pwa-btn {
    background: #2ee6c7;
    color: #04251f;
    border: 0;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 800;
    cursor: pointer;
}
#pwa-howto {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 100050;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
#pwa-howto .pwa-howto-box {
    background: #fff;
    color: #0b1220;
    border-radius: 18px;
    padding: 22px 20px;
    max-width: 360px;
    width: 100%;
}

.order-card::before {
    left: auto;
    right: auto;
    inset-inline-start: 0;
}
.order-card.st-success::before { background: #16a34a !important; }
.order-card.st-warn::before,
.order-card.st-warning::before { background: #ea580c !important; }
.order-card.st-danger::before { background: #dc2626 !important; }
html[data-ds-skin] body.panel-workspace .sidebar,
html body.panel-workspace .sidebar {
    background: linear-gradient(180deg, #061018 0%, #0b1c28 100%) !important;
}
html[data-ds-skin] body.panel-workspace .top-navbar,
html body.panel-workspace .top-navbar {
    background: rgba(243, 248, 250, 0.88) !important;
    color: #071018 !important;
}
html[data-ds-skin] body.panel-workspace .inner-header,
html body.panel-workspace .inner-header,
html body.panel-workspace .chat-header-fixed {
    background: rgba(255,255,255,0.92) !important;
    color: #0b1220 !important;
}
html body.panel-workspace .chat-header-fixed {
    border-bottom: 1px solid var(--stroke);
    box-shadow: none !important;
}
#view-services .main-search-bar,
#view-history .main-search-bar {
    background: rgba(10, 16, 32, 0.66) !important;
    border: 1px solid rgba(103, 232, 249, 0.16) !important;
    backdrop-filter: blur(16px) saturate(155%);
    -webkit-backdrop-filter: blur(16px) saturate(155%);
}
.svc-toolbar {
    flex-wrap: wrap;
}
@media (max-width: 575.98px) {
    .svc-toolbar .main-search-bar {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    .svc-toolbar .svc-card-switch {
        margin-inline-start: auto;
    }
}
#ui-sym { font-size: 1rem !important; font-weight: 800; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    #view-home .floating-balance {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
    #view-home .floating-balance .bal-row {
        grid-column: 1 / -1;
    }
    .top-navbar-search { min-width: 0; max-width: none; flex: 1 1 auto; }
    .top-navbar-right { flex-shrink: 0; }
}
@media (hover: hover) {
    .panel-shortcut:hover {
        border-color: #2ee6c7;
        box-shadow: 0 14px 24px -16px rgba(14, 116, 144, 0.35);
    }
}
#view-history .order-card .badge.bg-success { background: #16a34a !important; color: #fff !important; }
#view-history .order-card .badge.bg-warning { background: #ea580c !important; color: #fff !important; }
#view-history .order-card .badge.bg-danger { background: #dc2626 !important; color: #fff !important; }
#view-history .st-filter-btn[data-filter="all"] { color: #0f766e !important; background: #ecfeff !important; }
#view-history .st-filter-btn[data-filter="all"].active { color: #fff !important; background: #0f766e !important; }
#view-history .st-filter-btn[data-filter="st-success"] { color: #15803d !important; background: #dcfce7 !important; }
#view-history .st-filter-btn[data-filter="st-success"].active { color: #fff !important; background: #16a34a !important; }
#view-history .st-filter-btn[data-filter="st-warning"] { color: #c2410c !important; background: #ffedd5 !important; }
#view-history .st-filter-btn[data-filter="st-warning"].active { color: #fff !important; background: #ea580c !important; }
#view-history .st-filter-btn[data-filter="st-danger"] { color: #b91c1c !important; background: #fee2e2 !important; }
#view-history .st-filter-btn[data-filter="st-danger"].active { color: #fff !important; background: #dc2626 !important; }

/* ===== شحن الرصيد — AH Charge Deck ===== */
#topup-summary,
#topup-fee-row,
#rounding-note,
#pay-qrcode-box-panel,
#pay-instructions-box,
#smart-pay-widget,
#notes-pay-widget {
    display: none;
}
.topup-shell {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 16px 28px;
}
.topup-shell--wallet {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.topup-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: sticky;
    top: 58px;
    z-index: 8;
    margin: 0;
    padding: 6px 2px 10px;
    background: linear-gradient(180deg, #f3f8fa 72%, rgba(243, 248, 250, 0));
}
.topup-steps--slim {
    gap: 0;
}
.topup-steps::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 16%;
    left: 16%;
    height: 1px;
    background: #d5e8e6;
    z-index: 0;
}
.topup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
    color: #64748b;
}
.topup-step-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #d5e8e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.72rem;
    color: #64748b;
}
.topup-step-lbl {
    font-size: 0.68rem;
    font-weight: 800;
}
.topup-step.active { color: #0f766e; }
.topup-step.active .topup-step-num {
    background: #2ee6c7;
    border-color: #2ee6c7;
    color: #061018;
}
.topup-step.done { color: #15803d; }
.topup-step.done .topup-step-num {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

/* شريط المبلغ — محفظة */
.topup-wallet {
    border-radius: 20px;
    padding: 18px 16px 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(46, 230, 199, 0.18), transparent 48%),
        linear-gradient(165deg, #061018 0%, #0d1a28 100%);
    border: 1px solid rgba(46, 230, 199, 0.2);
    color: #fff;
}
.topup-wallet-head {
    text-align: center;
    margin-bottom: 10px;
}
.topup-wallet-kicker {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #67e8f9;
    margin-bottom: 6px;
}
.topup-wallet .topup-label {
    color: #94a3b8;
    margin-bottom: 0;
    font-size: 0.8rem;
}
.topup-amount-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    direction: ltr;
}
.topup-amount-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    font-weight: 900;
    color: #2ee6c7;
    pointer-events: none;
    z-index: 1;
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topup-amount-wrap .modern-inp {
    font-size: 2.35rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.03em;
    height: 72px;
    width: 100%;
    padding: 12px 52px;
    margin-bottom: 0;
    border: 1px solid rgba(46, 230, 199, 0.28);
    border-radius: 16px;
    background: rgba(8, 16, 28, 0.55);
    color: #fff;
}
.topup-amount-wrap .modern-inp:focus {
    border-color: #2ee6c7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 230, 199, 0.15);
}
.topup-amount-wrap .modern-inp::placeholder {
    color: rgba(148, 163, 184, 0.55);
}
.topup-limits-hint {
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 12px;
}
.topup-quick-btns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.topup-quick-btn {
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(46, 230, 199, 0.22);
    background: rgba(15, 30, 44, 0.7);
    color: #e2e8f0;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: 0.15s ease;
}
.topup-quick-btn.active {
    background: #2ee6c7;
    border-color: #2ee6c7;
    color: #061018;
}
@media (hover: hover) {
    .topup-quick-btn:hover {
        border-color: #2ee6c7;
        color: #2ee6c7;
    }
}

/* أقسام مضغوطة */
.topup-panel,
.topup-card,
.topup-pay-card,
.topup-verify-card {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 0;
    box-shadow: none;
}
.topup-pay-card--flat,
.topup-verify-card--flat {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.topup-label {
    display: block;
    font-weight: 800;
    color: #334155;
    margin-bottom: 8px;
    font-size: 0.86rem;
}
.topup-code-strip {
    padding: 12px 14px;
}
.topup-code-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.topup-code-head i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ecfeff;
    color: #0e7490;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.topup-code-head strong { display: block; font-size: 0.88rem; color: #0b1220; }
.topup-code-head span { display: block; font-size: 0.72rem; color: #64748b; }
.topup-code-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.topup-code-row .modern-inp {
    flex: 1;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    text-align: center;
    height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
}
.topup-code-btn {
    border: 0;
    border-radius: 12px;
    background: #061018;
    color: #2ee6c7;
    font-weight: 800;
    font-family: inherit;
    padding: 0 16px;
    min-width: 84px;
    cursor: pointer;
}

.topup-methods-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.topup-methods-head .topup-label { margin-bottom: 0; }
.topup-methods-hint {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
}

/* وسائل الدفع — صفوف */
#pm-grid-container.pm-list,
#pm-grid-container.pm-grid,
.pm-list,
.pm-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pm-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    min-height: 0;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    color: #0b1824;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.pm-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ecfeff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pm-item .pm-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #0e7490;
    font-size: 1.05rem;
    display: inline-flex;
}
.pm-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.pm-item .pm-name {
    display: block;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-curr {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
}
.pm-badge {
    display: inline-flex;
    width: fit-content;
    font-size: 0.62rem;
    font-weight: 800;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 2px 7px;
}
.pm-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.65rem;
    flex-shrink: 0;
}
.pm-item.active {
    border-color: #2ee6c7;
    background: #f0fdfa;
}
.pm-item.active .pm-check {
    background: #2ee6c7;
    border-color: #2ee6c7;
    color: #061018;
}
.pm-item.active::after { display: none; }

.topup-footer {
    position: sticky;
    bottom: 0;
    z-index: 6;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(243, 248, 250, 0), #f3f8fa 22%);
}
.topup-footer--dock {
    margin-top: 4px;
}
#topup-summary {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 12px 14px 10px;
    margin-bottom: 10px;
    box-shadow: none;
}
.topup-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.88rem;
}
.topup-sum-row b { color: #0e7490; font-size: 1.05rem; }
.topup-sum-fee { color: #dc2626; }
.topup-sum-fee b { color: #dc2626; font-size: 0.92rem; }
.topup-sum-pay {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    border-top: 1px dashed #99f6e4;
    padding-top: 10px;
    margin-top: 4px;
}
.topup-sum-pay strong {
    display: block;
    color: #0f766e;
    font-size: 0.86rem;
}
#rounding-note {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 4px;
}
.topup-sum-pay b {
    color: #061018;
    font-size: 1.25rem;
    line-height: 1.1;
}
#sum-curr { font-size: 0.82rem; color: #0f766e; }
.topup-cta {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem !important;
    border-radius: 14px !important;
}
.topup-cta.is-hidden,
#bybit-checkout-link.is-hidden,
#paypal-checkout-link.is-hidden {
    display: none !important;
}
.topup-cta-ok {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    box-shadow: none !important;
}

.topup-pay-card { padding: 16px; }
.topup-pay-amount-box {
    background:
        radial-gradient(circle at 100% 0%, rgba(46, 230, 199, 0.22), transparent 46%),
        linear-gradient(160deg, #061018 0%, #0b1824 72%);
    color: #fff;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    margin-bottom: 0;
    border: 1px solid rgba(46, 230, 199, 0.18);
}
.topup-pay-amount-box .lbl {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.topup-pay-amount-box .val {
    color: #2ee6c7;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}
#pay-req-curr { font-size: 1rem; }
.topup-pay-method {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(15, 30, 44, 0.65);
    border: 1px solid rgba(46, 230, 199, 0.2);
    color: #67e8f9;
    font-size: 0.78rem;
    font-weight: 800;
}
.topup-pay-method:empty { display: none; }
.topup-copy-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fffe;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 14px 12px;
    margin-bottom: 0;
}
#pay-acc-details {
    flex: 1;
    font-weight: 800;
    font-size: 1.02rem;
    direction: ltr;
    text-align: left;
    word-break: break-all;
    color: #061018;
    user-select: all;
}
.topup-copy-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: #fff;
    color: #0e7490;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.topup-qr-box {
    text-align: center;
    margin-bottom: 0;
    background: #f0fdfa;
    padding: 16px;
    border-radius: 14px;
    border: 1px dashed #2ee6c7;
}
.topup-qr-box span {
    display: block;
    font-size: 0.75rem;
    color: #0f766e;
    font-weight: 800;
    margin-bottom: 8px;
}
.topup-qr-box img {
    max-height: 160px;
    border-radius: 10px;
    border: 1px solid #d5e8e6;
}
.topup-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 0;
    font-size: 0.88rem;
    text-align: right;
}
/* jQuery .show()/fadeIn() يرجّع display:block — نخليه flex */
#pay-instructions-box.topup-note[style*="display: block"],
#smart-pay-widget.topup-note[style*="display: block"] {
    display: flex !important;
}
.topup-note-warn {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.topup-note-ok {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.topup-note-title {
    font-weight: 800;
    margin-bottom: 6px;
}
.topup-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 900;
    color: #061018;
    margin-bottom: 8px;
}
.topup-ghost-btn {
    background: transparent;
    border: 1px solid var(--stroke);
    color: #475569;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: inherit;
    padding: 7px 14px;
    cursor: pointer;
}
.topup-center-inp {
    text-align: center;
    font-weight: 800;
    border-radius: 12px;
    margin-bottom: 0;
}
.topup-note-code {
    text-align: center;
    background: #f0fdfa;
    border: 1px dashed #2ee6c7;
    border-radius: 14px;
    padding: 14px;
    margin: 0;
}
#generated-note-code {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #061018;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    user-select: all;
    margin: 10px 0 8px;
}
.topup-note-code > span {
    font-size: 0.75rem;
    color: #64748b;
}

.topup-verify-shell {
    min-height: calc(100% - 8px);
    display: flex;
    flex-direction: column;
}
.topup-verify-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 20px;
    min-height: 360px;
}
.topup-verify-card--flat {
    flex: 1;
}
.topup-verify-card h2 {
    margin: 8px 0 8px;
    font-weight: 900;
    color: #061018;
}
.topup-verify-card p {
    color: #64748b;
    margin: 0 0 22px;
    max-width: 28ch;
}
#view-topup-verify .timer-container {
    width: 148px;
    height: 148px;
    margin: 8px auto 18px;
}
#view-topup-verify .timer-circle { stroke: #d5e8e6; }
#view-topup-verify .timer-path { stroke: #2ee6c7; }
#view-topup-verify .timer-text {
    font-size: 2.35rem;
    color: #061018;
}

@media (min-width: 992px) {
    #view-topup,
    #view-topup-pay,
    #view-topup-verify {
        padding-bottom: 32px !important;
    }
    .topup-shell { padding: 18px 28px 40px; }
    .topup-steps {
        top: 58px;
        background: linear-gradient(180deg, #f3f8fa 70%, rgba(243, 248, 250, 0));
    }
    .topup-footer { padding-bottom: 12px; }
}
@media (max-width: 991.98px) {
    #view-topup,
    #view-topup-pay {
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden;
    }
    .topup-shell { padding: 10px 12px 20px; }
    .topup-steps {
        position: static;
        margin-bottom: 0;
        padding: 0 0 4px;
        background: transparent;
    }
    .topup-wallet {
        padding: 14px 12px 12px;
        border-radius: 16px;
    }
    .topup-panel,
    .topup-pay-card { padding: 12px; border-radius: 16px; }
    .topup-amount-wrap .modern-inp {
        font-size: 1.85rem;
        height: 64px;
    }
    .topup-quick-btns { gap: 6px; }
    .topup-quick-btn { height: 36px; font-size: 0.82rem; border-radius: 10px; }
    .topup-footer {
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    }
    #view-topup-pay #topup-verify-cta {
        position: sticky;
        bottom: 8px;
        z-index: 5;
    }
    .pm-item { padding: 11px 12px; }
}
@media (max-width: 480px) {
    .topup-code-row {
        flex-direction: column;
    }
    .topup-code-btn {
        height: 44px;
        width: 100%;
        min-width: 0;
    }
    .topup-pay-amount-box .val { font-size: 1.55rem; }
    .topup-sum-pay { flex-direction: column; align-items: stretch; }
    .topup-sum-pay b { font-size: 1.1rem; }
    .topup-quick-btns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.panel-workspace {
    --store-ticker-h: 32px;
}
body.panel-workspace .store-ticker {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: var(--store-ticker-h);
    flex: none;
    margin: 0;
    overflow: hidden;
}
@media (min-width: 992px) {
    body.panel-workspace.has-desk-ticker .store-ticker-desk {
        top: 140px;
        z-index: 37;
    }
    html body.panel-workspace.has-desk-ticker .app-view,
    html body.panel-workspace.has-desk-ticker #view-chat {
        top: calc(140px + var(--store-ticker-h)) !important;
        height: calc(100% - 140px - var(--store-ticker-h)) !important;
    }
}
@media (max-width: 991.98px) {
    body.panel-workspace.has-mob-ticker .store-ticker-mob {
        top: 0;
        z-index: 54;
        height: calc(var(--store-ticker-h) + env(safe-area-inset-top, 0px));
        padding-top: env(safe-area-inset-top, 0px);
        line-height: var(--store-ticker-h);
    }
    html body.panel-workspace.has-mob-ticker .app-view {
        top: calc(var(--store-ticker-h) + env(safe-area-inset-top, 0px)) !important;
        height: calc(100% - var(--store-ticker-h) - env(safe-area-inset-top, 0px)) !important;
    }
    body.panel-workspace.has-mob-ticker .panel-menu-fab {
        top: calc(10px + var(--store-ticker-h) + env(safe-area-inset-top, 0px));
    }
}
