/* ===== Premium sidebar / profile panel / misc fixes ===== */
:root{--pr-blue:#1e90ff;--pr-cyan:#00c2ff;--pr-ink:#0b1220;--pr-ink2:#111c33}
img{max-width:100%;height:auto}

/* ---------- Sidebar ---------- */
.dashboard #main_container .sidebar,
.dashboard.nightmode #main_container .sidebar{
  background:
    radial-gradient(420px 260px at 0% 0%, rgba(30,144,255,.28), transparent 70%),
    radial-gradient(360px 260px at 100% 100%, rgba(0,194,255,.16), transparent 70%),
    linear-gradient(180deg,#0b1220 0%,#101a30 55%,#0c2748 100%) !important;
  border-right:1px solid rgba(255,255,255,.06);
  box-shadow:6px 0 24px rgba(2,10,30,.18);
  display:flex;flex-direction:column;
  height:100vh;height:100dvh;min-height:0 !important;
  color:#dbe6ff;
}
.sidebar .sidebar_top{flex:0 0 auto;padding:14px 16px 6px !important;position:relative}
.sidebar .logo{width:100% !important;margin:0 0 10px !important;padding:6px 4px;text-align:center}
.sidebar .logo .logo_img{max-height:54px;width:auto !important;max-width:100%;object-fit:contain;margin:0 !important}
.sidebar .logo .sb-brand{display:block;color:#fff;font-weight:800;font-size:22px;letter-spacing:.4px;text-decoration:none}

.close_btn_phone{background:rgba(255,255,255,.1) !important;color:#cfe3ff !important;border:1px solid rgba(255,255,255,.18) !important;
  border-radius:12px !important;width:34px !important;height:34px !important;display:none;top:12px !important;right:12px !important;z-index:3;
  transition:.2s}
.close_btn_phone:hover{background:rgba(30,144,255,.35) !important;color:#fff !important}
@media (max-width:991px){.close_btn_phone{display:flex !important;align-items:center;justify-content:center}}

/* profile card */
.sidebar .dd-custom{margin:0}
.sidebar-profile{display:block;width:100%;background:none;border:0;padding:0;text-align:left}
.sidebar-profile .sp-box{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:6px 0 4px !important;padding:10px 12px;border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.04)) !important;
  border:1px solid rgba(255,255,255,.10);color:#fff !important}
.sidebar-profile .sp-wrapper{display:flex;align-items:center;gap:10px;min-width:0;position:relative}
.sidebar-profile .sidebar-text img{width:44px !important;height:44px;border-radius:50%;object-fit:cover;
  padding:2px;background:linear-gradient(135deg,var(--pr-blue),var(--pr-cyan))}
.sidebar-profile .blob{position:absolute;left:34px;top:30px;width:11px;height:11px;border-radius:50%;
  background:#22e07a !important;border:2px solid #101a30;box-shadow:0 0 0 3px rgba(34,224,122,.25)}
.sidebar-profile .sidebar-user{color:#fff;font-weight:700;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:120px}
.sidebar-profile .verified{margin-left:2px;vertical-align:middle}
.sidebar-profile .power-off{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0 !important;
  border-radius:11px !important;background:rgba(30,144,255,.22) !important;color:#7cc4ff !important;border:1px solid rgba(30,144,255,.4);transition:.2s}
.sidebar-profile .power-off:hover{background:var(--pr-blue) !important;color:#fff !important}

/* menu */
.sidebar .sidebar_bottom{flex:1 1 auto;min-height:0;max-height:none !important;overflow-y:auto;padding:6px 0 24px;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
.sidebar .sidebar_bottom::-webkit-scrollbar{width:5px}
.sidebar .sidebar_bottom::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:10px}
.sidebar .sidebar_menu{padding:4px 12px;display:flex;flex-direction:column;gap:4px}
.sidebar .sidebar_menu .menu_item{
  display:flex !important;align-items:center;gap:12px;min-height:46px;padding:6px 10px !important;margin:0 !important;
  border-radius:14px;border:1px solid transparent !important;background:transparent !important;
  color:#b9c7e4 !important;text-decoration:none !important;font-size:15px;font-weight:600;
  transition:background .2s,color .2s,transform .2s,box-shadow .2s}
.sidebar .sidebar_menu .menu_item .menu_icon{
  width:34px !important;min-width:34px;height:34px;display:inline-flex !important;align-items:center;justify-content:center;
  border-radius:11px;background:rgba(255,255,255,.07);color:#8fb8ff;font-size:14px;transition:.2s}
.sidebar .sidebar_menu .menu_item .menu_icon i{color:inherit !important;font-size:14px}
.sidebar .sidebar_menu .menu_item .menu_name{flex:1;color:inherit !important;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:8px}
.sidebar .sidebar_menu .menu_item:hover{background:rgba(255,255,255,.07) !important;color:#fff !important;transform:translateX(3px)}
.sidebar .sidebar_menu .menu_item:hover .menu_icon{background:rgba(30,144,255,.25);color:#fff}
.sidebar .sidebar_menu .menu_item.active{
  background:linear-gradient(90deg,var(--pr-blue),var(--pr-cyan)) !important;color:#fff !important;
  box-shadow:0 10px 24px rgba(0,140,255,.38);border:1px solid rgba(255,255,255,.18) !important}
.sidebar .sidebar_menu .menu_item.active .menu_icon{background:rgba(255,255,255,.22);color:#fff}
.sidebar .sidebar_menu .menu_item .badge{background:#ffb500 !important;color:#1b1400;border-radius:20px;padding:3px 8px;font-size:11px;font-weight:800}

/* mobile: dim page behind sidebar */
@media (max-width:550px){
  #main_container.toogle_sidebar .content_area{filter:blur(3px) brightness(.7)}
  .dashboard #main_container .sidebar{width:min(300px,84vw)}
}

/* ---------- Profile panel: compact floating card instead of full screen ---------- */
#offcanvasExample.offcanvas{
  width:min(340px,92vw) !important;height:auto !important;max-height:calc(100vh - 90px);
  top:72px !important;right:12px !important;bottom:auto !important;
  border:1px solid rgba(120,140,180,.25) !important;border-radius:22px !important;
  box-shadow:0 24px 60px rgba(8,20,50,.35) !important;overflow:hidden;
  background:#fff;color:#1b2438}
.nightmode #offcanvasExample.offcanvas{background:#1c2438;color:#e8efff;border-color:rgba(255,255,255,.1) !important}
#offcanvasExample .offcanvas-header{padding:10px 14px 0;justify-content:flex-end;min-height:0}
#offcanvasExample .btn-close{width:30px;height:30px;padding:0;margin:0;border-radius:50%;opacity:1;
  background:rgba(30,144,255,.12) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e90ff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/11px no-repeat;
  border:1px solid rgba(30,144,255,.35) !important}
#offcanvasExample .offcanvas-body{padding:6px 14px 16px;overflow-y:auto}
#offcanvasExample .user_data{border-radius:18px;padding:14px;background:linear-gradient(135deg,#0f1b34,#12315c) !important;color:#fff}
#offcanvasExample .user_data .user_wrap{display:flex;align-items:center;gap:12px}
#offcanvasExample .v2_avatar img{width:52px !important;height:52px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.35)}
#offcanvasExample .v2_user_info h5{margin:0;color:#fff;font-size:17px}
#offcanvasExample .user_balance{margin-top:12px;border-radius:12px;padding:10px 14px;background:rgba(255,255,255,.12) !important;color:#fff !important;font-weight:800;text-align:center}
#offcanvasExample .user_badges{display:inline-block;margin-bottom:8px;padding:2px 12px;border-radius:20px;background:linear-gradient(90deg,var(--pr-blue),var(--pr-cyan));cursor:pointer}
#offcanvasExample .user_badges h4{margin:0;font-size:11px;color:#fff;letter-spacing:1px}
#offcanvasExample .user__menu{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
#offcanvasExample .user_menu__item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;text-decoration:none;
  background:rgba(30,144,255,.08);color:inherit;font-weight:700;font-size:14px;border:1px solid rgba(30,144,255,.15);transition:.2s}
#offcanvasExample .user_menu__item:hover{background:rgba(30,144,255,.18);transform:translateY(-1px)}
#offcanvasExample .user_menu_icon{width:30px;height:30px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;background:rgba(30,144,255,.18);color:#1e90ff}
.offcanvas-backdrop.show{opacity:.35}

/* ---------- API page: examples were invisible (text colour == background) ---------- */
pre{background:#10192d !important;color:#d7e6ff !important;border-radius:14px;padding:16px 18px !important;
  overflow:auto;font-size:13px;line-height:1.55;white-space:pre;border:1px solid rgba(255,255,255,.08)}
#api pre,#defOrder pre{padding:16px 18px !important}
pre code{color:inherit;background:none}

/* ---------- Profile card avatar (fix: avatar sat too high over a purple disc) ---------- */
#offcanvasExample .v2_avatar{width:64px !important;height:64px !important;min-width:64px;border-radius:50% !important;background:linear-gradient(135deg,#1e90ff,#00c2ff) !important;
  margin:0 !important;padding:3px;display:flex;align-items:center;justify-content:center;overflow:hidden}
#offcanvasExample .v2_avatar img{width:100% !important;height:100% !important;border-radius:50% !important;border:0 !important;margin:0 !important;object-fit:cover;background:#fff}
#offcanvasExample .user_data .user_wrap{flex-direction:row !important;justify-content:flex-start !important;align-items:center !important;margin:0 0 4px !important}
#offcanvasExample .user_data{position:relative;padding:0 !important;overflow:hidden}
#offcanvasExample .user_data .total_data{padding:18px 16px 16px !important}
#offcanvasExample .user_badges{position:absolute !important;top:14px;right:14px;transform:none !important;width:auto !important;height:auto !important}
#offcanvasExample .v2_user_info{min-width:0}
#offcanvasExample .v2_user_info h5{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}
.user_top_avatar img{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.15)}

/* ---------- New Order: platform buttons use the animated icons ---------- */
#defOrder .nav-link img,#defOrder [data-change-cat] img,.platform-btn img{width:34px !important;height:34px !important;object-fit:contain}

/* ---------- Performance: stop decorative infinite animations (they kept the GPU busy on phones) ---------- */
#hero .banner_img *,.def_animations,.def_animations *,.animations_float,.payment_item,.payment_item_2,
.banner_animations *,.best_smm_animations *,.smmpanel_best_main__image,.roateds,#howItworks .how_img img,
.stat-wrap:hover .stat-icon i{animation:none !important}
@media (prefers-reduced-motion:reduce){*{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}}
/* sidebar open: dim with a light overlay instead of blurring the whole page (blur filter is very slow on phones) */
@media (max-width:991px){
  #main_container.toogle_sidebar .content_area{filter:none !important}
  #main_container.toogle_sidebar:after{content:"";position:fixed;inset:0;background:rgba(5,12,30,.55);z-index:90}
  .dashboard #main_container .sidebar{z-index:100 !important}
}

/* =====================================================================
   v7 - sidebar full height + safe area, profile card, Select2 redesign
   ===================================================================== */

/* ---------- sidebar: always touches top and bottom, nothing cut off ---------- */
.dashboard #main_container .sidebar{
  position:fixed !important;top:0 !important;bottom:0 !important;left:0;height:auto !important;max-height:none !important;
  padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);
  overflow:hidden;overscroll-behavior:contain}
.sidebar .sidebar_top{padding:max(18px,env(safe-area-inset-top,0px)) 16px 8px !important}
.sidebar .sidebar_bottom{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px)) !important}
.sidebar-profile .sp-box{margin-top:2px !important}
/* online dot sits on the avatar corner (it used to float with a big pulse ring) */
.sidebar-profile .sp-wrapper .blob{left:auto !important;top:auto !important;position:absolute !important;
  width:13px !important;height:13px !important;bottom:2px;left:34px !important;
  animation:none !important;box-shadow:0 0 0 3px #101a30 !important;border:0 !important;transform:none !important}
.sidebar-profile .sidebar-text{position:relative;display:inline-block;line-height:0}
@media (min-width:992px){.dashboard #main_container .sidebar{width:290px}}

/* ---------- profile card ---------- */
#offcanvasExample .pf-card{position:relative;border-radius:22px;overflow:hidden;color:#fff;
  background:radial-gradient(260px 160px at 50% -10%,rgba(0,194,255,.45),transparent 70%),linear-gradient(160deg,#0f1b34 0%,#16346b 100%)}
#offcanvasExample .pf-badge{position:absolute;top:12px;right:12px;padding:3px 12px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:1px;
  background:linear-gradient(90deg,#1e90ff,#00c2ff);color:#fff;cursor:pointer;z-index:2}
#offcanvasExample .pf-top{display:flex;flex-direction:column;align-items:center;padding:26px 16px 8px;text-align:center}
#offcanvasExample .pf-avatar{width:92px;height:92px;border-radius:50%;padding:4px;background:linear-gradient(135deg,#1e90ff,#00e0ff);
  box-shadow:0 10px 26px rgba(0,160,255,.4);margin-bottom:12px}
#offcanvasExample .pf-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;background:#fff;display:block}
#offcanvasExample .pf-name{font-size:20px;font-weight:800;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#offcanvasExample .pf-sub{font-size:12.5px;opacity:.7;margin-top:2px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#offcanvasExample .pf-balance{margin:12px 16px 16px;border-radius:16px;padding:10px 14px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:800}
#offcanvasExample .pf-balance-label{font-size:12px;opacity:.75;font-weight:600;text-transform:uppercase;letter-spacing:.8px}
#offcanvasExample .pf-balance .balance{font-size:18px}

/* ---------- Select2 (Category + Service): premium, readable in light and dark ---------- */
.select2-container{width:100% !important}
.select2-container .select2-selection--single{
  min-height:58px;height:auto !important;border-radius:16px !important;padding:8px 46px 8px 14px !important;display:flex !important;align-items:center;
  background:#f3f6fd !important;border:1.5px solid #dbe3f5 !important;box-shadow:none !important;transition:border-color .2s,box-shadow .2s}
.select2-container--open .select2-selection--single,.select2-container--focus .select2-selection--single{
  border-color:#2f8cff !important;box-shadow:0 0 0 4px rgba(47,140,255,.16) !important}
.select2-container .select2-selection__rendered{padding:0 !important;line-height:1.35 !important;color:#10182b !important;font-weight:600;font-size:15px;
  display:flex !important;align-items:center;gap:8px;white-space:normal !important;overflow:hidden;word-break:break-word}
.select2-container .select2-selection__rendered .select2-selection__text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.select2-container .select2-selection__rendered > *{vertical-align:middle}
.select2-container .select2-selection__arrow{position:absolute !important;right:8px !important;top:0 !important;bottom:0;height:auto !important;width:36px;display:flex;align-items:center;justify-content:center}
.select2-container .select2-selection__arrow b{display:none !important}
.select2-container .select2-selection__arrow:after{content:"";width:9px;height:9px;border-right:2.5px solid #2f8cff;border-bottom:2.5px solid #2f8cff;
  transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s}
.select2-container--open .select2-selection__arrow:after{transform:rotate(-135deg) translate(-2px,-2px)}

.select2-dropdown{border:1.5px solid #dbe3f5 !important;border-radius:20px !important;overflow:hidden;margin-top:8px !important;
  background:#fff !important;box-shadow:0 24px 60px rgba(14,30,80,.22) !important;padding:8px !important}
.select2-search--dropdown{padding:4px 4px 8px !important}
.select2-search--dropdown .select2-search__field{height:46px;border-radius:14px !important;border:1.5px solid #dbe3f5 !important;background:#f3f6fd !important;
  padding:0 14px 0 40px !important;font-size:15px;color:#10182b !important;outline:none;box-shadow:none !important}
.select2-search--dropdown .select2-search__field:focus{border-color:#2f8cff !important;box-shadow:0 0 0 4px rgba(47,140,255,.14) !important}
.select2-results__options{max-height:min(52vh,420px) !important;overflow-y:auto !important;padding:2px !important;scrollbar-width:thin}
.select2-results__option{padding:12px 14px !important;margin:4px 0 !important;border-radius:14px !important;border:1px solid transparent !important;
  color:#10182b !important;background:transparent !important;font-size:15px;line-height:1.45;white-space:normal !important;word-break:break-word;transition:background .15s,border-color .15s}
.select2-results__option a{color:inherit !important;text-decoration:none !important;display:block}
.select2-results__option--highlighted,.select2-results__option:hover{background:#eaf3ff !important;color:#0b1b3d !important;border-color:#bcd8ff !important}
.select2-results__option[aria-selected=true],.select2-results__option.active{
  background:linear-gradient(90deg,rgba(30,144,255,.16),rgba(0,194,255,.08)) !important;border-color:#2f8cff !important;color:#0b1b3d !important;font-weight:700}
.select2-results__option > *,.select2-results__option a > *{color:inherit}
.select2-selection__id.badge,.select2-selection__id{
  display:inline-flex !important;align-items:center;justify-content:center;min-width:34px;height:26px;padding:0 9px !important;margin-right:8px;border-radius:999px !important;
  background:linear-gradient(135deg,#1e90ff,#00b4ff) !important;color:#fff !important;font-weight:800 !important;font-size:12.5px !important;vertical-align:middle;flex:0 0 auto}
.select2-selection__text{font-weight:inherit}
.select2-selection__icon{margin-right:8px}

/* dark mode: dark surfaces, light text, clearly highlighted rows (no more white-on-grey) */
.nightmode .select2-container .select2-selection--single{background:#1a2338 !important;border-color:#33415f !important}
.nightmode .select2-container .select2-selection__rendered{color:#f1f5ff !important}
.nightmode .select2-dropdown{background:#18213a !important;border-color:#33415f !important;box-shadow:0 24px 60px rgba(0,0,0,.55) !important}
.nightmode .select2-search--dropdown .select2-search__field{background:#101829 !important;border-color:#33415f !important;color:#f1f5ff !important}
.nightmode .select2-results__option{color:#e8efff !important}
.nightmode .select2-results__option--highlighted,.nightmode .select2-results__option:hover{
  background:rgba(47,140,255,.22) !important;border-color:rgba(98,170,255,.55) !important;color:#fff !important}
.nightmode .select2-results__option[aria-selected=true],.nightmode .select2-results__option.active{
  background:linear-gradient(90deg,rgba(30,144,255,.38),rgba(0,194,255,.16)) !important;border-color:#4aa3ff !important;color:#fff !important}
.dashboard.nightmode .select2-results__option.active > *,.dashboard.nightmode .select2-results__option--highlighted > *{color:#fff !important}
.nightmode .select2-selection__arrow:after{border-color:#6bb4ff}

/* the New Order card buttons / labels also get clearer in dark mode */
.nightmode .control-label,.nightmode label.control-label{color:#d6e2ff !important;font-weight:600}

/* ---------- closed sidebar must not leave a grey shadow strip on the page edge ---------- */
@media (max-width:991px){
  .dashboard #main_container .sidebar{box-shadow:none !important}
  .dashboard #main_container.toogle_sidebar .sidebar{box-shadow:12px 0 40px rgba(2,10,30,.35) !important}
}

/* =====================================================================
   v9 - light, slim, smooth. (Overrides the heavy v7/v8 look.)
   ===================================================================== */

/* ---------- typography: body was forced to bold in header.twig -> everything looked thick ---------- */
body.dashboard{font-weight:500 !important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.dashboard h1,.dashboard h2,.dashboard h3,.dashboard h4,.dashboard h5,.dashboard h6{font-weight:600}
.dashboard b,.dashboard strong{font-weight:600}
.dashboard .user__data span{font-weight:500 !important;font-size:12.5px;color:#7a869f}
.dashboard .user__data h4{font-weight:600;font-size:17px}

/* ---------- no scroll-jank: no big blur/backdrop effects, light shadows ---------- */
.dashboard .top_header{backdrop-filter:none !important;-webkit-backdrop-filter:none !important;box-shadow:0 1px 0 rgba(20,40,90,.07) !important}
html{scroll-behavior:auto !important}
.dashboard .card,.dashboard .card.card_v2{border:1px solid #e8edf7 !important;border-radius:16px !important;box-shadow:0 2px 10px rgba(30,55,110,.05) !important;background:#fff}
.dashboard.nightmode .card,.dashboard.nightmode .card.card_v2{background:#141c2f !important;border-color:#232e48 !important;box-shadow:none !important}

/* ---------- sidebar: slim, quiet, modern ---------- */
.dashboard #main_container .sidebar,.dashboard.nightmode #main_container .sidebar{
  background:linear-gradient(180deg,#0e1628 0%,#111d36 100%) !important;box-shadow:none;border-right:1px solid rgba(255,255,255,.05)}
@media (min-width:992px){
  .dashboard #main_container .sidebar{width:264px !important}
  .dashboard #main_container:not(.toogle_sidebar) .content_area{padding-left:264px !important}
  .dashboard #main_container.toogle_sidebar .sidebar{transform:translateX(-100%) !important}
  .dashboard #main_container.toogle_sidebar .content_area{padding-left:0 !important}
  }
.sidebar .sidebar_menu{padding:4px 12px !important;gap:2px !important}
.sidebar .sidebar_menu .menu_item{min-height:42px !important;padding:4px 10px !important;gap:12px !important;border-radius:12px !important;
  font-size:14px !important;font-weight:500 !important;color:#a9b6d3 !important;background:transparent !important;border:0 !important;box-shadow:none !important;
  transition:background .15s,color .15s !important;transform:none !important}
.sidebar .sidebar_menu .menu_item .menu_icon{width:30px !important;min-width:30px !important;height:30px !important;border-radius:9px !important;background:rgba(255,255,255,.05) !important;color:#7fb0ff !important}
.sidebar .sidebar_menu .menu_item .menu_icon i{font-size:13px !important}
.sidebar .sidebar_menu .menu_item .menu_name{font-weight:500 !important}
.sidebar .sidebar_menu .menu_item:hover{background:rgba(255,255,255,.06) !important;color:#fff !important;transform:none !important}
.sidebar .sidebar_menu .menu_item.active{background:linear-gradient(90deg,rgba(47,140,255,.28),rgba(47,140,255,.08)) !important;color:#fff !important;
  box-shadow:inset 3px 0 0 #3da0ff !important;border:0 !important}
.sidebar .sidebar_menu .menu_item.active .menu_icon{background:#2f8cff !important;color:#fff !important}
.sidebar .sidebar_menu .menu_item .badge{font-weight:600 !important;font-size:10.5px}
.sidebar .logo .sb-brand{font-weight:700;font-size:20px}
.sidebar-profile .sidebar-user{font-weight:600;font-size:14px}
.sidebar-profile .sp-box{border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07)}
.sidebar .sidebar_bottom{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
@media (hover:none){.sidebar .sidebar_menu .menu_item:hover{background:transparent !important}}

/* ---------- header: round avatar (no more egg) ---------- */
.top_header .user_settings .dropdown > button,.top_header .user_settings .btn_profiles{
  width:42px !important;height:42px !important;min-width:42px;flex:0 0 42px;padding:2px !important;margin:0 !important;border-radius:50% !important;
  border:0 !important;overflow:hidden;line-height:0;display:inline-flex !important;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#2f8cff,#00c2ff) !important;box-shadow:none !important}
.top_header .user_settings .dropdown > button::after{display:none !important}
.user_top_avatar{display:block !important;width:100% !important;height:100% !important;border-radius:50% !important;overflow:hidden;background:#fff !important}
.user_top_avatar img{width:100% !important;height:100% !important;max-width:none !important;border-radius:50% !important;border:0 !important;box-shadow:none !important;object-fit:cover;display:block}

/* ---------- category (platform) chips ---------- */
#category_filter .card,#category_filter .card-body{background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important}
#category_filter .filter_btn_wrap{display:grid !important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
#category_filter .btn_filter,#new-order-cats .nwo-cat-btn{display:flex !important;align-items:center;justify-content:flex-start;gap:10px;width:100% !important;margin:0 !important;
  min-height:48px;padding:6px 14px !important;border-radius:14px !important;border:1px solid #e3e9f6 !important;background:#fff !important;
  color:#26324d !important;font-size:14px !important;font-weight:500 !important;box-shadow:none !important;transition:border-color .15s,background .15s}
#category_filter .btn_filter img{width:26px !important;height:26px !important;object-fit:contain;flex:0 0 auto}
#category_filter .btn_filter .filter_txt{font-weight:500 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#category_filter .btn_filter:hover{border-color:#8fbaff !important;background:#f5f9ff !important}
#category_filter .btn_filter.active,#category_filter .btn_filter.selected,#category_filter .btn_filter:focus{border-color:#2f8cff !important;background:#eaf3ff !important;color:#0f4fb3 !important}
.dashboard.nightmode #category_filter .btn_filter{background:#141c2f !important;border-color:#27324f !important;color:#d6e0f5 !important}
.dashboard.nightmode #category_filter .btn_filter.active{background:#17294d !important;border-color:#2f8cff !important}
@media (max-width:575px){
  #category_filter .filter_btn_wrap{grid-template-columns:repeat(4,1fr);gap:8px}
  #category_filter .btn_filter{flex-direction:column;justify-content:center;gap:4px;min-height:64px;padding:8px 4px !important;border-radius:14px !important}
  #category_filter .btn_filter .filter_txt{font-size:11px !important;max-width:100%}
  #category_filter .btn_filter img{width:28px !important;height:28px !important}
}

/* ---------- form fields: slim and clean ---------- */
.dashboard .form-control,.dashboard .form-select{min-height:46px;border-radius:12px !important;border:1px solid #dbe3f5 !important;background:#f6f8fe;font-weight:500;font-size:14.5px;transition:border-color .15s,box-shadow .15s}
.dashboard .form-control:focus,.dashboard .form-select:focus{border-color:#2f8cff !important;box-shadow:0 0 0 3px rgba(47,140,255,.14) !important;background:#fff}
.dashboard.nightmode .form-control,.dashboard.nightmode .form-select{background:#19233a !important;border-color:#2c3957 !important;color:#eef3ff}
.dashboard .control-label,.dashboard label.control-label{font-weight:600;font-size:12.5px;letter-spacing:.3px;text-transform:none;color:#56627d;margin-bottom:6px}
.dashboard.nightmode .control-label{color:#a3b3d4 !important}
.select2-container .select2-selection--single{min-height:48px !important;border-radius:12px !important;border:1px solid #dbe3f5 !important;background:#f6f8fe !important;padding:6px 40px 6px 12px !important}
.select2-container .select2-selection__rendered{font-weight:500 !important;font-size:14.5px !important}
.select2-container--open .select2-selection--single,.select2-container--focus .select2-selection--single{box-shadow:0 0 0 3px rgba(47,140,255,.14) !important}
.select2-dropdown{border-radius:14px !important;box-shadow:0 12px 34px rgba(14,30,80,.16) !important;padding:6px !important}
.select2-search--dropdown .select2-search__field{height:42px;border-radius:10px !important}
.select2-results__option{padding:9px 12px !important;margin:2px 0 !important;border-radius:10px !important;font-size:14px !important;font-weight:500}
.select2-results__option--highlighted,.select2-results__option[aria-selected=true]{background:#eaf3ff !important;color:#0f4fb3 !important}

/* ---------- buttons ---------- */
.dashboard .btn-primary{min-height:48px;border:0 !important;border-radius:12px !important;font-weight:600;letter-spacing:.2px;color:#fff !important;
  background:linear-gradient(90deg,#2f8cff,#1fb6ff) !important;box-shadow:0 6px 16px rgba(40,130,255,.28);transition:transform .12s,box-shadow .15s}
.dashboard .btn-primary:hover{box-shadow:0 8px 20px rgba(40,130,255,.36)}
.dashboard .btn-primary:active{transform:scale(.99)}
.btn-loading{position:relative;pointer-events:none;opacity:.95;cursor:progress;display:inline-flex !important;align-items:center;justify-content:center;gap:10px}
.btn-spin{width:17px;height:17px;border-radius:50%;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;display:inline-block;animation:btnspin .7s linear infinite;flex:0 0 auto}
@keyframes btnspin{to{transform:rotate(360deg)}}
.mb-3.is-loading{position:relative}
.mb-3.is-loading::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#2f8cff,transparent);background-size:50% 100%;background-repeat:no-repeat;animation:loadbar 1s linear infinite}
@keyframes loadbar{from{background-position:-60% 0}to{background-position:160% 0}}
#order-form.svc-loading #charge{opacity:.55}

/* ---------- orders filter pills ---------- */
#orders_menu{gap:6px}
#orders_menu .nav-link{border-radius:12px !important;font-weight:500;font-size:14px;padding:8px 14px;border:1px solid #e3e9f6;background:#fff}
#orders_menu .nav-link.active{background:linear-gradient(90deg,#2f8cff,#1fb6ff) !important;color:#fff !important;border-color:transparent}
@media (max-width:575px){
  #orders_menu{flex-direction:row !important;flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  #orders_menu::-webkit-scrollbar{display:none}
  #orders_menu .nav-link{flex:0 0 auto;white-space:nowrap}
}
.btn-reorder{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 22px;border-radius:999px !important;
  border:1.5px solid #c3beff !important;background:#fff !important;color:#4b34d3 !important;font-weight:600;text-decoration:none !important}
.btn-reorder:hover{background:#4b34d3 !important;color:#fff !important}

/* ---------- Orders history as cards: ONLY the orders page (tables elsewhere stay swipeable) ---------- */
@media (max-width:991px){
  .dashboard .order_page{border-collapse:separate;border-spacing:0;width:100%}
  .dashboard .order_page thead{display:none}
  .dashboard .order_page,.dashboard .order_page tbody{display:block;width:100%}
  .dashboard .order_page tbody tr{display:flex;flex-direction:column;margin:0 0 14px;padding:4px 16px 16px;border-radius:18px;background:#fff;border:1px solid #e3e9f6;box-shadow:0 2px 10px rgba(30,60,130,.06)}
  .dashboard.nightmode .order_page tbody tr{background:#16203a;border-color:#27324f;box-shadow:none}
  .dashboard .order_page tbody td{display:flex !important;align-items:flex-start;justify-content:space-between;gap:14px;width:100% !important;order:1;
    padding:12px 0 !important;border:0 !important;border-bottom:1px solid #edf1fa !important;text-align:right;background:none !important;word-break:break-word;font-weight:500}
  .dashboard.nightmode .order_page tbody td{border-bottom-color:#27324f !important}
  .dashboard .order_page tbody td::before{content:attr(data-label);flex:0 0 38%;max-width:38%;text-align:left;font-size:12px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#7a869f}
  .dashboard .order_page tbody td > *{text-align:right;max-width:100%}
  .dashboard .order_page .order_link_wrap a{display:block;color:#5a3df0;overflow-wrap:anywhere}
  .dashboard .order_page .ordStatus{display:inline-flex !important;align-items:center;border-radius:999px !important;padding:6px 16px !important;font-weight:600}
  .dashboard .order_page tbody td[data-label="Status"]{order:8;align-items:center}
  .dashboard .order_page tbody td[data-label="Remains"]{order:9}
  .dashboard .order_page tbody td.td-actions{order:10;display:flex !important;flex-direction:column;align-items:stretch;gap:10px;border-bottom:0 !important;padding:14px 0 0 !important}
  .dashboard .order_page tbody td.td-actions::before{display:none}
  .dashboard .order_page tbody td.td-actions > *{width:100%;text-align:center}
  .dashboard .order_page tbody td.td-actions br{display:none}
  .dashboard .order_page .btn-reorder{width:100%;min-height:48px;font-size:16px}
  /* only the orders table loses its scroll box, since it became cards */
  .dashboard .order_page_wrap .table-responsive,.dashboard .table-responsive:has(.order_page){overflow:visible}
}
/* every other table: horizontal swipe always works */
.dashboard .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}

/* ---------- notice popup (replaces the missing swal library) ---------- */
.pm-notice-back{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(8,16,36,.55);animation:pmfade .18s ease}
.pm-notice{width:100%;max-width:520px;max-height:86vh;overflow:auto;background:#fff;color:#1c2540;border-radius:20px;padding:26px 22px 20px;text-align:center;box-shadow:0 24px 70px rgba(0,0,0,.35);animation:pmpop .2s ease}
.pm-notice .pm-ico{width:62px;height:62px;border-radius:50%;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:700;color:#fff;background:#2f8cff}
.pm-notice .pm-ico.success{background:#1fb76a}.pm-notice .pm-ico.warning{background:#f5a524}.pm-notice .pm-ico.error{background:#e5484d}
.pm-notice h3{margin:0 0 10px;font-size:20px;font-weight:700}
.pm-notice .pm-body{font-size:15px;line-height:1.55;text-align:left;word-break:break-word}
.pm-notice .pm-ok{margin-top:18px;min-width:130px;height:46px;border:0;border-radius:12px;background:linear-gradient(90deg,#2f8cff,#1fb6ff);color:#fff;font-weight:600;font-size:15px;cursor:pointer}
body.nightmode .pm-notice{background:#16203a;color:#eaf0ff}
@keyframes pmfade{from{opacity:0}to{opacity:1}}@keyframes pmpop{from{transform:translateY(10px) scale(.97);opacity:0}to{transform:none;opacity:1}}

/* =====================================================================
   v10 - premium pass: stat cards, platform grid, sidebar, tabs, pickers,
         coupon / API pages, tables. (Self-contained: icons live in header.twig)
   ===================================================================== */
:root{--pm-blue:#2563eb;--pm-sky:#1ea7ff;--pm-ink:#0f1b33;--pm-mut:#6b7893;--pm-line:#e6ecf7;--pm-bg:#f4f7fd}
.ic{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto;display:inline-block;vertical-align:middle}

/* ---------- header: avatar smaller, never touches the screen edge ---------- */
.top_header .user_settings{display:flex;align-items:center;gap:10px;margin-right:12px !important}
.top_header .user_settings .dropdown > button,.top_header .user_settings .btn_profiles{width:38px !important;height:38px !important;min-width:38px;flex:0 0 38px;padding:2px !important}
.top_header .top_head_wrap{padding-left:6px;padding-right:2px}
.top_header .sidebar_menu_icon{margin-left:4px}

/* ---------- profile drawer: compact ---------- */
#offcanvasExample .pf-top{padding:18px 14px 4px}
#offcanvasExample .pf-avatar{width:64px;height:64px;padding:3px;margin-bottom:8px;box-shadow:0 6px 16px rgba(0,160,255,.3)}
#offcanvasExample .pf-name{font-size:17px;font-weight:600}
#offcanvasExample .pf-sub{font-size:12px}
#offcanvasExample .pf-balance{margin:8px 14px 14px;padding:8px 12px;border-radius:12px}
#offcanvasExample .pf-balance .balance{font-size:16px;font-weight:600}
#offcanvasExample .pf-badge{top:10px;right:10px;font-size:10px;padding:2px 10px}
#offcanvasExample .pf-card{border-radius:18px}
#offcanvasExample .offcanvas-header{padding:10px 14px 0}

/* ---------- stat cards (Username / Balance / Orders / Spent) ---------- */
.user_statistic_wraper{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:0 !important}
.user_statistic_wraper .statistic__item{display:flex !important;align-items:center;gap:12px;width:auto !important;min-width:0;margin:0 !important;padding:14px !important;
  border-radius:16px !important;background:#fff;border:1px solid var(--pm-line) !important;box-shadow:0 1px 2px rgba(20,40,90,.04) !important}
.statistic__item .icon{width:42px !important;height:42px !important;flex:0 0 42px;padding:0 !important;margin:0 !important;border-radius:13px !important;
  display:flex !important;align-items:center;justify-content:center;color:#fff;font-size:21px;box-shadow:0 6px 14px rgba(37,99,235,.25)}
.statistic__item .icon .ic{width:1em;height:1em}
.ic-blue{background:linear-gradient(135deg,#4f8dff,#2563eb) !important}
.ic-green{background:linear-gradient(135deg,#2dd4a3,#0e9f6e) !important;box-shadow:0 6px 14px rgba(14,159,110,.25) !important}
.ic-violet{background:linear-gradient(135deg,#a78bfa,#6d3df0) !important;box-shadow:0 6px 14px rgba(109,61,240,.25) !important}
.ic-amber{background:linear-gradient(135deg,#fcd34d,#f59e0b) !important;box-shadow:0 6px 14px rgba(245,158,11,.28) !important}
.statistic__item .user__data{min-width:0;flex:1}
.statistic__item .user__data span{display:block;font-size:12px;line-height:1.2;color:var(--pm-mut);font-weight:500 !important}
.statistic__item .user__data h4{margin:4px 0 0;font-size:16px;font-weight:600;color:var(--pm-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.statistic__item .user__data h4.has_currency{overflow:visible;flex-wrap:wrap;gap:4px !important;white-space:normal}
.statistic__item .currency_change_btn{padding:1px 8px !important;border-radius:999px;background:var(--pm-bg);color:var(--pm-blue);font-size:11px;font-weight:600 !important;line-height:1.6}
.dashboard.nightmode .user_statistic_wraper .statistic__item{background:#141c2f;border-color:#232e48 !important}
.dashboard.nightmode .statistic__item .user__data h4{color:#eaf0ff}
.dashboard.nightmode .statistic__item .user__data span{color:#8fa0c4}
@media (max-width:991px){.user_statistic_wraper{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.user_statistic_wraper .statistic__item{padding:12px !important;gap:10px}
  .statistic__item .icon{width:38px !important;height:38px !important;flex-basis:38px;font-size:19px}.statistic__item .user__data h4{font-size:15px}}

/* ---------- platform grid: every icon visible (mobile used to cut it to 150px with an inner scroll) ---------- */
#category_filter .filter_btn_wrap{height:auto !important;max-height:none !important;overflow:visible !important;display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr)) !important;gap:10px !important}
#category_filter .filter_btn_wrap .btn_filter{display:flex !important;align-items:center;justify-content:flex-start;gap:10px;min-height:48px;padding:6px 14px !important;border-radius:14px !important;
  border:1px solid var(--pm-line) !important;background:#fff !important;color:#26324d !important;font-size:14px !important;font-weight:500 !important;box-shadow:none !important}
#category_filter .btn_filter .filter_txt{display:block !important;font-size:14px;font-weight:500 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#category_filter .btn_filter:hover,#category_filter .btn_filter.activeItem{border-color:#7aa7ff !important;background:#f2f7ff !important;color:var(--pm-blue) !important}
@media (max-width:575px){
  #category_filter .filter_btn_wrap{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:8px !important}
  #category_filter .filter_btn_wrap .btn_filter{flex-direction:column;justify-content:center;gap:5px;min-height:70px;padding:9px 3px 7px !important;border-radius:14px !important}
  #category_filter .btn_filter img{width:30px !important;height:30px !important}
  #category_filter .btn_filter .filter_txt{font-size:10.5px !important;max-width:100%;text-align:center}
}
.dashboard.nightmode #category_filter .filter_btn_wrap .btn_filter{background:#141c2f !important;border-color:#27324f !important;color:#d6e0f5 !important}

/* ---------- sidebar: premium ---------- */
.dashboard #main_container .sidebar,.dashboard.nightmode #main_container .sidebar{
  background:radial-gradient(360px 220px at 0% 0%,rgba(37,99,235,.30),transparent 70%),linear-gradient(180deg,#0b1326 0%,#0e1a35 100%) !important}
.sidebar .sidebar_top{padding:max(14px,env(safe-area-inset-top,0px)) 14px 4px !important}
.sidebar .logo{margin:0 0 10px !important;padding:4px 0}
.sidebar .logo .logo_img{max-height:44px}
.sidebar-profile .sp-box{display:flex;align-items:center;justify-content:space-between;padding:8px 10px !important;margin:0 !important;border-radius:14px !important;background:rgba(255,255,255,.06) !important;border:1px solid rgba(255,255,255,.08) !important}
.sidebar-profile .sidebar-text img{width:34px !important;height:34px !important;border:2px solid rgba(255,255,255,.85) !important}
.sidebar-profile .sp-wrapper{gap:10px}
.sidebar-profile .sp-wrapper .blob{width:10px !important;height:10px !important;bottom:0 !important;left:26px !important;box-shadow:0 0 0 2px #10203f !important}
.sidebar-profile .sidebar-user{font-size:14px !important;font-weight:600 !important;max-width:130px}
.sidebar-profile .verified svg{width:16px !important;height:16px !important}
.sidebar-profile .power-off{width:30px !important;height:30px !important;border-radius:10px !important;background:rgba(255,255,255,.08) !important;border:0 !important;color:#9db8ee !important}
.sidebar-profile .power-off:hover{background:#e5484d !important;color:#fff !important}
.sidebar .sidebar_menu{padding:8px 12px 4px !important;gap:3px !important}
.sidebar .sidebar_menu .menu_item{position:relative;min-height:44px !important;padding:5px 12px 5px 8px !important;gap:12px !important;border-radius:14px !important;border:0 !important;background:transparent !important;
  color:#a9b8d8 !important;font-size:14.5px !important;font-weight:500 !important;box-shadow:none !important;transition:background .15s,color .15s !important}
.sidebar .sidebar_menu .menu_item .menu_icon{width:32px !important;min-width:32px !important;height:32px !important;border-radius:10px !important;background:rgba(120,165,255,.12) !important;color:#8db4ff !important}
.sidebar .sidebar_menu .menu_item .menu_icon i{font-size:14px !important}
.sidebar .sidebar_menu .menu_item:hover{background:rgba(255,255,255,.06) !important;color:#fff !important;transform:none !important}
.sidebar .sidebar_menu .menu_item.active{background:linear-gradient(135deg,#2f7bff 0%,#1ea7ff 100%) !important;color:#fff !important;box-shadow:0 8px 20px rgba(30,120,255,.35) !important;border:0 !important}
.sidebar .sidebar_menu .menu_item.active .menu_icon{background:rgba(255,255,255,.22) !important;color:#fff !important}
.sidebar .sidebar_menu .menu_item .menu_name{font-weight:500 !important}
.sidebar .sidebar_menu .menu_item .badge{font-size:10px !important;padding:3px 8px !important;border-radius:999px !important}
@media (hover:none){.sidebar .sidebar_menu .menu_item:hover{background:transparent !important}.sidebar .sidebar_menu .menu_item.active:hover{background:linear-gradient(135deg,#2f7bff 0%,#1ea7ff 100%) !important}}
.close_btn_phone{border-radius:12px !important}



/* ---------- native selects (other pages): clean arrow ---------- */
.dashboard select.form-control,.dashboard select.form-select{-webkit-appearance:none;appearance:none;padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7893' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px}
.dashboard select option{color:#10182b;background:#fff}

/* ---------- Category / Service picker ---------- */
.pm-select{position:relative}
.pm-sel-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:8px 12px 8px 14px;border:1px solid #dbe3f5;border-radius:14px;background:#f6f8fe;color:var(--pm-ink);
  text-align:left;font-size:14.5px;font-weight:500;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s;-webkit-tap-highlight-color:transparent}
.pm-sel-btn:hover{border-color:#b6cbf6}
.pm-sel-btn.is-open,.pm-sel-btn:focus-visible{border-color:#2f7bff;box-shadow:0 0 0 3px rgba(47,123,255,.15);background:#fff;outline:0}
.pm-sel-lead{display:flex;flex:0 0 auto}
.pm-ico-img{width:26px;height:26px;border-radius:8px;object-fit:contain;flex:0 0 auto}
.pm-sel-label{flex:1;min-width:0;display:flex;align-items:center;gap:8px}
.pm-sel-text{flex:1 1 auto;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35;word-break:break-word}
.pm-sel-ph{color:var(--pm-mut)}
.pm-sel-chev{font-size:18px;color:var(--pm-mut);transition:transform .2s}
.pm-sel-btn.is-open .pm-sel-chev{transform:rotate(180deg);color:var(--pm-blue)}
.pm-badge{flex:0 0 auto;font-size:11.5px;font-weight:600;color:var(--pm-blue);background:#e8f0ff;padding:2px 8px;border-radius:8px;line-height:1.5}
.pm-price{flex:0 0 auto;font-size:12.5px;font-weight:600;color:#0b7a4b;background:#e6f8ef;padding:3px 10px;border-radius:999px;white-space:nowrap}
.pm-sel-back{position:fixed;inset:0;z-index:2147483000;background:rgba(10,18,40,.45)}
.pm-sel-panel{position:fixed;z-index:2147483001;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--pm-line);border-radius:16px;box-shadow:0 18px 50px rgba(15,30,70,.22);color:var(--pm-ink)}
.pm-sel-head{display:none;align-items:center;justify-content:space-between;padding:14px 16px 0}
.pm-sel-title{font-size:16px;font-weight:600}
.pm-sel-x{width:34px;height:34px;border:0;border-radius:50%;background:var(--pm-bg);color:#46556f;display:flex;align-items:center;justify-content:center;font-size:18px}
.pm-sel-search{position:relative;margin:10px 12px 6px}
.pm-sel-search .ic{position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:17px;color:#7b8aa8;pointer-events:none}
.pm-sel-search input{width:100%;height:44px;padding:0 14px 0 38px;border:1px solid #dbe3f5;border-radius:12px;background:#f6f8fe;font-size:15px;color:var(--pm-ink);outline:0}
.pm-sel-search input:focus{border-color:#2f7bff;box-shadow:0 0 0 3px rgba(47,123,255,.14);background:#fff}
.pm-sel-list{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:4px 8px 10px}
.pm-opt{display:flex;align-items:center;gap:10px;width:100%;padding:11px 10px;border:0;border-radius:12px;background:transparent;text-align:left;color:var(--pm-ink);font-size:14.5px;line-height:1.35;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pm-opt:hover{background:#f1f6ff}
.pm-opt.is-on{background:#eaf2ff}
.pm-opt-body{flex:1;min-width:0;display:flex;align-items:flex-start;gap:8px}
.pm-opt-name{word-break:break-word}
.pm-tick{font-size:18px;color:var(--pm-blue)}
.pm-empty{padding:26px 12px;text-align:center;color:var(--pm-mut);font-size:14px}
@media (max-width:767px){
  .pm-sel-panel{left:0 !important;right:0 !important;top:auto !important;bottom:0 !important;width:auto !important;max-height:84vh !important;max-height:84dvh !important;border-radius:22px 22px 0 0;border-width:1px 0 0;animation:pmsheet .22s ease}
  .pm-sel-head{display:flex}
  html.pm-sel-lock,html.pm-sel-lock body{overflow:hidden !important}
  .pm-opt{padding:13px 10px}
}
@media (min-width:768px){.pm-sel-back{background:transparent}}
@keyframes pmsheet{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
.dashboard.nightmode .pm-sel-btn,body.nightmode .pm-sel-btn{background:#19233a;border-color:#2c3957;color:#eef3ff}
body.nightmode .pm-sel-panel{background:#141c2f;border-color:#27324f;color:#eef3ff}
body.nightmode .pm-sel-search input{background:#19233a;border-color:#2c3957;color:#eef3ff}
body.nightmode .pm-opt{color:#eef3ff}body.nightmode .pm-opt:hover{background:#1c2845}body.nightmode .pm-opt.is-on{background:#1f3158}
body.nightmode .pm-badge{background:#1f3158;color:#8db4ff}body.nightmode .pm-price{background:#10392b;color:#5be3a7}
body.nightmode .pm-sel-x{background:#243252;color:#cfd9f0}

/* ---------- pages: cards, headers, tables, code ---------- */
.pm-page-card{padding:22px !important}
.pm-page-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.pm-page-ico{width:48px;height:48px;border-radius:14px;flex:0 0 48px;display:flex;align-items:center;justify-content:center;font-size:24px;color:#fff;background:linear-gradient(135deg,#4f8dff,#2563eb);box-shadow:0 8px 18px rgba(37,99,235,.28)}
.pm-page-title{margin:0;font-size:19px;font-weight:600;color:var(--pm-ink)}
.pm-page-sub{margin:3px 0 0;font-size:13px;color:var(--pm-mut)}
.pm-input-ico{position:relative}
.pm-input-ico > .ic{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:18px;color:#7b8aa8;pointer-events:none;z-index:2}
.pm-input-ico .form-control{padding-left:42px}
body.nightmode .pm-page-title{color:#eef3ff}
#def_side_title{display:flex !important;align-items:center;gap:12px;padding:0 0 14px !important;margin:0 !important;background:transparent !important;border:0 !important}
#def_side_title .icon{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:16px;color:#fff;background:linear-gradient(135deg,#4f8dff,#2563eb)}
#def_side_title .icon i{color:#fff !important}
#def_side_title .name{font-size:17px;font-weight:600;color:var(--pm-ink)}
body.nightmode #def_side_title .name{color:#eef3ff}
.card_v2 .card-header.v2_header{background:transparent !important;border:0 !important;padding:18px 20px 0 !important}
.dashboard .card-body{padding:18px 20px}
.dashboard .table{width:100%;border-collapse:separate !important;border-spacing:0;border:1px solid var(--pm-line) !important;border-radius:14px;overflow:hidden;margin-bottom:0;background:#fff}
.dashboard .table th,.dashboard .table td{padding:12px 14px !important;border:0 !important;border-bottom:1px solid var(--pm-line) !important;vertical-align:middle}
.dashboard .table thead th{background:var(--pm-bg) !important;color:#56648a;font-size:12px;font-weight:600;letter-spacing:.7px;text-transform:uppercase}
.dashboard .table tbody tr:last-child td{border-bottom:0 !important}
.dashboard .table-striped > tbody > tr:nth-of-type(odd) > *{background:transparent;box-shadow:none}
.dashboard .table td:first-child.width-40,.dashboard .width-40{width:40%}
body.nightmode .dashboard .table,.dashboard.nightmode .table{background:#141c2f;border-color:#232e48 !important;color:#e3eaff}
.dashboard.nightmode .table th,.dashboard.nightmode .table td{border-bottom-color:#232e48 !important;color:#e3eaff}
.dashboard.nightmode .table thead th{background:#19233a !important;color:#9fb0d2}
.dashboard code{padding:3px 8px;border-radius:8px;background:#eef3ff;color:#1d4ed8;font-size:13px;word-break:break-all}
.dashboard pre{padding:14px 16px;border-radius:14px;background:#0f1b33;color:#d6e4ff;font-size:13px;line-height:1.6;overflow:auto;border:0}
.dashboard pre code{background:transparent;color:inherit;padding:0}
.dashboard.nightmode code{background:#1f3158;color:#9dc0ff}
.dashboard .alert{border:1px solid transparent;border-radius:14px;font-weight:500;font-size:14px}
.dashboard .alert-success{background:#e9f9f1;color:#0b7a4b;border-color:#c5eedb}
.dashboard .alert-danger{background:#fdecee;color:#b4232c;border-color:#f7c9ce}
.dashboard .alert-info{background:#e9f3ff;color:#1b5fc4;border-color:#c6dcfb}
.dashboard .alert-warning{background:#fff6e0;color:#8a5a00;border-color:#f6e1a8}
.dashboard .btn-sm.btn-primary{min-height:34px;border-radius:10px !important;box-shadow:none;font-size:13px}
.dashboard .well{background:transparent;border:0;box-shadow:none;padding:0;margin:0}
.dashboard .form-group{margin-bottom:16px}

/* =====================================================================
   v11 - page spacing under the fixed header, status filter chips
   ===================================================================== */
/* every page starts below the fixed 65px header (pages without the .content wrapper used to touch it) */
.dashboard #main_container .content_area{padding-top:76px !important;padding-bottom:28px}
.dashboard #main_container .content_area .content{padding-top:0 !important}
.dashboard #main_container .content_area .wrapper-content__header:empty{display:none}
@media (max-width:991px){.dashboard #main_container .content_area{padding-top:74px !important}}

/* ---------- status filters (All / Pending / In progress / Hold ...) as scrollable chips ---------- */
.dashboard .nav-pills:not(:has([data-bs-toggle="pill"])){display:flex !important;flex-direction:row !important;flex-wrap:wrap;gap:8px !important;padding:0 !important;background:transparent !important;border:0 !important;margin:0 0 4px}
.dashboard .nav-pills:not(:has([data-bs-toggle="pill"])) .nav-item{flex:0 0 auto}
.dashboard .nav-pills:not(:has([data-bs-toggle="pill"])) .nav-link,
.dashboard #orders_menu .nav-link{display:inline-flex !important;align-items:center;justify-content:center;gap:8px;flex:0 0 auto !important;width:auto !important;min-height:40px;padding:8px 16px !important;
  border:1px solid var(--pm-line) !important;border-radius:999px !important;background:#fff !important;color:#4a5878 !important;font-size:14px;font-weight:500 !important;white-space:nowrap;text-align:center;box-shadow:none !important;transition:background .15s,color .15s,border-color .15s}
.dashboard #orders_menu .nav-link .icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#eef3ff;color:var(--pm-blue);font-size:11px;margin:0 !important}
.dashboard .nav-pills:not(:has([data-bs-toggle="pill"])) .nav-link:hover,.dashboard #orders_menu .nav-link:hover{border-color:#8fb3f7 !important;color:var(--pm-blue) !important;background:#f5f9ff !important}
.dashboard .nav-pills:not(:has([data-bs-toggle="pill"])) .nav-link.active,.dashboard #orders_menu .nav-link.active{background:linear-gradient(135deg,#2f7bff,#1ea7ff) !important;border-color:transparent !important;color:#fff !important;box-shadow:0 6px 16px rgba(37,110,255,.30) !important}
.dashboard #orders_menu .nav-link.active .icon{background:rgba(255,255,255,.25);color:#fff}
.dashboard.nightmode .nav-pills:not(:has([data-bs-toggle="pill"])) .nav-link,.dashboard.nightmode #orders_menu .nav-link{background:#141c2f !important;border-color:#27324f !important;color:#c9d5f0 !important}
.dashboard.nightmode #orders_menu .nav-link .icon{background:#1f3158;color:#8db4ff}
@media (max-width:767px){
  .dashboard .nav-pills:not(:has([data-bs-toggle="pill"])),.dashboard #orders_menu{flex-wrap:nowrap !important;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding:2px 2px 8px !important;scrollbar-width:none;touch-action:pan-x pan-y}
  .dashboard .nav-pills:not(:has([data-bs-toggle="pill"]))::-webkit-scrollbar,.dashboard #orders_menu::-webkit-scrollbar{display:none}
}
/* the New Order / AddFunds style tabs stay a segmented control */
.dashboard .nav-pills:has([data-bs-toggle="pill"]){display:flex;flex-wrap:nowrap;gap:4px;padding:5px;border-radius:15px;background:#eef3fc;border:0}
.dashboard .nav-pills:has([data-bs-toggle="pill"]) .nav-item{flex:1 1 0;min-width:0}
.dashboard .nav-pills:has([data-bs-toggle="pill"]) .nav-link{width:100%;min-height:42px;border:0 !important;border-radius:11px !important;background:transparent !important;color:#5a6a8a !important;font-weight:600 !important;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:none !important}
.dashboard .nav-pills:has([data-bs-toggle="pill"]) .nav-link.active{background:#fff !important;color:var(--pm-blue) !important;box-shadow:0 2px 8px rgba(30,70,160,.14) !important}

/* ticket / list filter buttons */
.dashboard #ticket_filter_wrap{display:flex;flex-wrap:wrap;gap:8px !important;margin-bottom:12px}
.dashboard #ticket_filter_wrap .btn{flex:0 0 auto;min-height:38px;padding:6px 18px;border-radius:999px !important;border:1px solid var(--pm-line) !important;background:#fff !important;color:#4a5878 !important;font-weight:500;box-shadow:none}
.dashboard #ticket_filter_wrap .btn.ticket_btn_active,.dashboard #ticket_filter_wrap .btn:hover{background:linear-gradient(135deg,#2f7bff,#1ea7ff) !important;border-color:transparent !important;color:#fff !important}

/* services page: toolbar select */
.dashboard .svc-toolbar{display:flex;gap:10px;flex-wrap:wrap}
.dashboard .svc-toolbar input,.dashboard .svc-toolbar select{flex:1 1 220px;min-height:46px;padding:0 14px;border:1px solid #dbe3f5;border-radius:12px;background:#f6f8fe;font-size:14.5px;font-weight:500;color:var(--pm-ink);outline:0}
.dashboard .svc-toolbar input:focus,.dashboard .svc-toolbar select:focus{border-color:#2f7bff;box-shadow:0 0 0 3px rgba(47,123,255,.14);background:#fff}

/* fixed header: pin it explicitly (it used to rely on its static position, which moved when content got top padding) */
.dashboard #main_container .content_area .top_header{position:fixed !important;top:0 !important;left:0 !important;width:100% !important;height:65px}
@media (min-width:992px){
  .dashboard #main_container:not(.toogle_sidebar) .content_area .top_header{left:264px !important;width:calc(100% - 264px) !important}
}

/* =====================================================================
   v12 - dark mode pass + API page overflow
   ===================================================================== */
/* ----- no sideways overflow anywhere ----- */
.dashboard #main_container .content_area{overflow-x:hidden;max-width:100vw}
.dashboard .card,.dashboard .card-body{min-width:0;max-width:100%}
.dashboard .card-body{overflow-x:auto;-webkit-overflow-scrolling:touch}
.dashboard .table.table-bordered{table-layout:fixed;width:100%}
.dashboard .table.table-bordered td,.dashboard .table.table-bordered th{overflow-wrap:anywhere;word-break:break-word}
.dashboard .table.table-bordered td code{display:inline-block;max-width:100%;white-space:normal;word-break:break-all}
.dashboard .table.table-bordered .btn{margin-top:6px}
.dashboard pre{max-width:100%;white-space:pre-wrap;word-break:break-word;overflow-x:auto}
@media (max-width:575px){.dashboard .table.table-bordered td:first-child,.dashboard .table.table-bordered th:first-child{width:38%}}

/* ----- dark theme base: deep navy instead of gray ----- */
.dashboard.nightmode,body.nightmode{background:#0a1120 !important;color:#e6ecfb}
.dashboard.nightmode #main_container .content_area{background:#0a1120 !important}
.dashboard.nightmode #main_container .top_header{background:#0e1730 !important;box-shadow:0 1px 0 rgba(255,255,255,.06) !important}
.dashboard.nightmode .top_header .sidebar_menu_icon i{color:#dbe6ff !important}
.dashboard.nightmode h1,.dashboard.nightmode h2,.dashboard.nightmode h3,.dashboard.nightmode h4,.dashboard.nightmode h5,.dashboard.nightmode h6{color:#f1f5ff}
.dashboard.nightmode .control-label,.dashboard.nightmode label{color:#a9b9da !important}
.dashboard.nightmode .text-muted,.dashboard.nightmode small{color:#8ea0c6 !important}
.dashboard.nightmode a:not(.btn):not(.nav-link):not(.menu_item):not(.btn_filter){color:#7db0ff}
.dashboard.nightmode .card,.dashboard.nightmode .card.card_v2,.dashboard.nightmode .pm-page-card{background:#111a30 !important;border-color:#1f2c4a !important;box-shadow:none !important;color:#e6ecfb}
.dashboard.nightmode .card-header{background:transparent !important;border-color:#1f2c4a !important}

/* stat cards */
.dashboard.nightmode .user_statistic_wraper .statistic__item{background:#111a30 !important;border-color:#1f2c4a !important}
.dashboard.nightmode .statistic__item .currency_change_btn{background:#1d2e55 !important;color:#8db4ff !important}
.dashboard.nightmode .statistic__item .user__data h4{color:#f1f5ff !important}
.dashboard.nightmode .balance-dropdown__container{background:#111a30;border:1px solid #1f2c4a}
.dashboard.nightmode .balance-dropdown__container a,.dashboard.nightmode .balance-dropdown__container .dropdown-item{color:#dbe6ff !important}
.dashboard.nightmode .balance-dropdown__container .dropdown-item:hover{background:#1d2e55 !important}

/* platform tiles: keep every icon visible on dark */
.dashboard.nightmode #category_filter .filter_btn_wrap .btn_filter{background:#111a30 !important;border-color:#1f2c4a !important;color:#dbe6ff !important;box-shadow:none !important}
.dashboard.nightmode #category_filter .btn_filter img{filter:none !important;opacity:1 !important;background:transparent}
.dashboard.nightmode #category_filter .btn_filter:hover,.dashboard.nightmode #category_filter .btn_filter.activeItem{background:#16264a !important;border-color:#3b82f6 !important;color:#fff !important}
#category_filter .btn_filter img[src*="linkedin"]{background:#fff;border-radius:50%;padding:1px}

/* tabs (New Order / AddFunds), chips, pickers */
.dashboard.nightmode .nav-pills:has([data-bs-toggle="pill"]){background:#0b1428}
.dashboard.nightmode .nav-pills:has([data-bs-toggle="pill"]) .nav-link{color:#9fb2dc !important;background:transparent !important}
.dashboard.nightmode .nav-pills:has([data-bs-toggle="pill"]) .nav-link.active{background:#1c2f5c !important;color:#fff !important;box-shadow:0 2px 10px rgba(0,0,0,.35) !important}
.dashboard.nightmode .nav-pills:has([data-bs-toggle="pill"]) .nav-link .fas,.dashboard.nightmode .nav-pills:has([data-bs-toggle="pill"]) .nav-link .far{color:inherit !important}
.dashboard.nightmode #orders_menu .nav-link,.dashboard.nightmode .nav-pills:not(:has([data-bs-toggle="pill"])) .nav-link{background:#111a30 !important;border-color:#1f2c4a !important;color:#c9d6f3 !important}
.dashboard.nightmode #orders_menu .nav-link.active,.dashboard.nightmode .nav-pills:not(:has([data-bs-toggle="pill"])) .nav-link.active{background:linear-gradient(135deg,#2f7bff,#1ea7ff) !important;color:#fff !important;border-color:transparent !important}

/* inputs, search, selects */
.dashboard.nightmode .form-control,.dashboard.nightmode .form-select,.dashboard.nightmode input[type=text],.dashboard.nightmode input[type=number],.dashboard.nightmode input[type=password],.dashboard.nightmode input[type=email],.dashboard.nightmode textarea{background:#0b1428 !important;border:1px solid #243558 !important;color:#eef3ff !important}
.dashboard.nightmode .form-control::placeholder,.dashboard.nightmode input::placeholder,.dashboard.nightmode textarea::placeholder{color:#7f92ba !important;opacity:1}
.dashboard.nightmode .form-control:focus{border-color:#3b82f6 !important;box-shadow:0 0 0 3px rgba(59,130,246,.22) !important;background:#0d1a36 !important}
.dashboard.nightmode .input-wrapper__prepend,.dashboard.nightmode .input-wrapper__append,.dashboard.nightmode .input-wrapper .fas{color:#8fa3cf !important}
.dashboard.nightmode .pm-input-ico > .ic{color:#8fa3cf}
.dashboard.nightmode .pm-sel-btn{background:#0b1428 !important;border-color:#243558 !important;color:#eef3ff !important}
.dashboard.nightmode .pm-sel-chev{color:#8fa3cf}
.dashboard.nightmode .pm-sel-text,.dashboard.nightmode .pm-opt-name{color:#eef3ff}
.dashboard.nightmode select option{background:#0b1428;color:#eef3ff}

/* tables / code / alerts / order cards */
.dashboard.nightmode .table{background:#0e1730 !important;border-color:#1f2c4a !important}
.dashboard.nightmode .table th,.dashboard.nightmode .table td{color:#e6ecfb !important;border-bottom-color:#1c2946 !important;background:transparent !important}
.dashboard.nightmode .table thead th{background:#121e3c !important;color:#9fb2dc !important}
.dashboard.nightmode code{background:#1a2b52 !important;color:#9cc2ff !important}
.dashboard.nightmode pre{background:#070d1c !important;color:#cfe0ff !important;border:1px solid #1c2946}
.dashboard.nightmode .alert-success{background:#0e2e24;color:#5fe0a8;border-color:#14503b}
.dashboard.nightmode .alert-danger{background:#33151a;color:#ff8f98;border-color:#5a2029}
.dashboard.nightmode .alert-info{background:#10264a;color:#8fc0ff;border-color:#1c3f75}
.dashboard.nightmode .alert-warning{background:#352a0c;color:#f5c860;border-color:#5a4616}
.dashboard.nightmode .btn-reorder{background:transparent !important;color:#b9b0ff !important;border-color:#5a52b8 !important}
.dashboard.nightmode #def_side_title .name,.dashboard.nightmode .pm-page-title{color:#f1f5ff}
.dashboard.nightmode .pm-page-sub{color:#8ea0c6}
@media (max-width:991px){
  .dashboard.nightmode .order_page tbody tr{background:#111a30 !important;border-color:#1f2c4a !important}
  .dashboard.nightmode .order_page tbody td{border-bottom-color:#1c2946 !important}
  .dashboard.nightmode .order_page tbody td::before{color:#8ea0c6}
}
/* sidebar + drawers already dark: just make text crisp */
.dashboard.nightmode .offcanvas{background:#0e1730 !important;color:#e6ecfb}
.dashboard.nightmode .pf-card,.dashboard.nightmode .user_menu__item{background:#111a30 !important;color:#e6ecfb !important;border-color:#1f2c4a !important}

/* ---------- v12b: beat the old ID-based dark rule for the New Order tab (#newOrderTabsWrap) ---------- */
.dashboard.nightmode #newOrderTabsWrap #pills-tab .nav-item .nav-link{color:#9fb2dc !important;background:transparent !important}
.dashboard.nightmode #newOrderTabsWrap #pills-tab .nav-item .nav-link.active{background:#1c2f5c !important;color:#fff !important;box-shadow:0 2px 10px rgba(0,0,0,.35) !important}
.dashboard.nightmode #newOrderTabsWrap #pills-tab .nav-item .nav-link i{color:inherit !important}
.dashboard #newOrderTabsWrap #pills-tab .nav-item .nav-link.active{background:#fff !important;color:var(--pm-blue) !important}
.dashboard.nightmode #category_filter .filter_btn_wrap .btn_filter img[src*="linkedin"]{background:#fff;border-radius:50%;padding:1px}

html body.dashboard.nightmode #newOrderTabsWrap #pills-tab .nav-item .nav-link{color:#9fb2dc !important;background:transparent !important}
html body.dashboard.nightmode #newOrderTabsWrap #pills-tab .nav-item .nav-link.active{background:#1c2f5c !important;color:#fff !important;box-shadow:0 2px 10px rgba(0,0,0,.35) !important}
html body.dashboard #newOrderTabsWrap #pills-tab .nav-item .nav-link.active{background:#fff;color:var(--pm-blue)}
html body.dashboard.nightmode #newOrderTabsWrap #pills-tab .nav-item .nav-link.active{background:#1c2f5c !important;color:#fff !important}

/* =====================================================================
   v14 - signup, child panel, updates, currency dropdown, borders
   ===================================================================== */

/* ---------- section title icon (API / Service list ...): visible in light + dark ---------- */
.dashboard #def_side_title{display:flex;align-items:center;gap:12px;padding:0;margin:0 0 14px}
.dashboard #def_side_title .icon{width:42px !important;height:42px !important;line-height:42px !important;flex:0 0 42px;border-radius:13px !important;font-size:17px !important;text-align:center;
  color:#fff !important;background:linear-gradient(135deg,#4f8dff,#2563eb) !important;box-shadow:0 6px 14px rgba(37,99,235,.25)}
.dashboard #def_side_title .icon i{color:#fff !important}
.dashboard #def_side_title .name{font-size:18px !important;font-weight:600 !important;color:var(--pm-ink)}
.dashboard.nightmode #def_side_title .icon{background:linear-gradient(135deg,#4f8dff,#2563eb) !important;color:#fff !important}
.dashboard.nightmode #def_side_title .name{color:#f1f5ff !important}

/* ---------- calmer borders: no card-inside-card frames, one soft line ---------- */
.dashboard .card .card{border:0 !important;box-shadow:none !important;background:transparent !important}
.dashboard .card .card .card-body{padding:0}
.dashboard .card .table{border:0 !important;border-radius:0;background:transparent}
.dashboard .card .table thead th:first-child{border-top-left-radius:12px}.dashboard .card .table thead th:last-child{border-top-right-radius:12px}
.dashboard .table td,.dashboard .table th{font-size:14px}
.dashboard .table.table-bordered td:first-child{font-weight:600;color:#53627f}
.dashboard.nightmode .table.table-bordered td:first-child{color:#9fb2dc}
.dashboard #main_container .top_header,.dashboard.nightmode #main_container .top_header{box-shadow:none !important;border-bottom:1px solid #e6ecf7}
.dashboard.nightmode #main_container .top_header{border-bottom-color:#1c2946}
.dashboard hr{border:0;height:1px;background:#e6ecf7;opacity:1}.dashboard.nightmode hr{background:#1c2946}
.dashboard pre{border:0 !important}

/* ---------- currency dropdown (balance card) ---------- */
.statistic__item .dropdown{position:relative;display:inline-block}
.currency_change_btn{display:inline-flex !important;align-items:center;gap:6px;padding:3px 10px !important;border-radius:999px !important;border:1px solid #cfe0ff !important;background:#eef4ff !important;color:var(--pm-blue) !important;font-size:12px !important;font-weight:600 !important;line-height:1.4;text-decoration:none !important}
.currency_change_btn .fas{font-size:11px;margin-top:-3px}
.balance-dropdown__container.dropdown-menu{left:auto !important;right:0 !important;top:100% !important;transform:none !important;margin:8px 0 0 !important;min-width:170px;max-height:260px;overflow-y:auto;padding:6px !important;
  border:1px solid var(--pm-line) !important;border-radius:14px !important;background:#fff !important;box-shadow:0 14px 36px rgba(15,30,70,.18) !important;z-index:1200;list-style:none}
.balance-dropdown__item{list-style:none}
.balance-dropdown__link{display:flex !important;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px !important;border-radius:10px;color:var(--pm-ink) !important;font-size:14px;font-weight:500;text-decoration:none !important}
.balance-dropdown__link:hover{background:#eef4ff;color:var(--pm-blue) !important}
.dashboard.nightmode .currency_change_btn{background:#16264a !important;border-color:#27407a !important;color:#8db4ff !important}
.dashboard.nightmode .balance-dropdown__container.dropdown-menu{background:#111a30 !important;border-color:#1f2c4a !important;box-shadow:0 14px 36px rgba(0,0,0,.5) !important}
.dashboard.nightmode .balance-dropdown__link{color:#e6ecfb !important}
.dashboard.nightmode .balance-dropdown__link:hover{background:#1d2e55;color:#fff !important}
.user_statistic_wraper .statistic__item{overflow:visible}

/* ---------- child panel ---------- */
.cp-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.cp-step{position:relative;display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:#fff;border:1px solid var(--pm-line)}
.cp-step > i{margin-left:auto;font-size:20px;color:#8fb3f7}
.cp-step b{display:block;font-size:14.5px;font-weight:600;color:var(--pm-ink)}
.cp-step small{display:block;font-size:12px;color:var(--pm-mut);margin-top:1px}
.cp-num{width:32px;height:32px;flex:0 0 32px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#fff;background:linear-gradient(135deg,#4f8dff,#2563eb)}
.dashboard.nightmode .cp-step{background:#111a30;border-color:#1f2c4a}.dashboard.nightmode .cp-step b{color:#f1f5ff}.dashboard.nightmode .cp-step small{color:#8ea0c6}
.cp-ns{margin:2px 0 16px;padding:14px;border-radius:14px;background:#fff8e6;border:1px solid #f6e1a8}
.cp-ns-title{font-size:13px;font-weight:600;color:#8a5a00;margin-bottom:10px;display:flex;gap:8px;align-items:center}
.cp-ns-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;margin-top:6px;border-radius:10px;background:#fff;border:1px solid #f3e2b0}
.cp-ns-row code{background:transparent !important;color:var(--pm-ink) !important;padding:0;font-size:14px;font-weight:600;word-break:break-all}
.cp-copy{width:32px;height:32px;border:0;border-radius:9px;background:#eef4ff;color:var(--pm-blue);display:flex;align-items:center;justify-content:center}
.cp-copy:hover{background:var(--pm-blue);color:#fff}
.dashboard.nightmode .cp-ns{background:#2a2209;border-color:#5a4616}.dashboard.nightmode .cp-ns-title{color:#f5c860}
.dashboard.nightmode .cp-ns-row{background:#14110a;border-color:#4a3a12}.dashboard.nightmode .cp-ns-row code{color:#fff3cf !important}
.dashboard.nightmode .cp-copy{background:#1d2e55;color:#8db4ff}
.cp-table{margin-top:22px}
@media (max-width:991px){.cp-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.cp-steps{grid-template-columns:1fr}.cp-step > i{display:none}}

/* ---------- updates page ---------- */
.upd-sid{display:inline-block;padding:2px 9px;border-radius:8px;background:#e8f0ff;color:var(--pm-blue);font-weight:600;font-size:12.5px}
.upd-name{font-weight:600;color:var(--pm-ink)}
.upd-act{display:inline-block;padding:3px 12px;border-radius:999px;background:#fff1d6;color:#9a5b00;font-size:12.5px;font-weight:600}
.dashboard.nightmode .upd-sid{background:#1d2e55;color:#8db4ff}.dashboard.nightmode .upd-name{color:#f1f5ff}.dashboard.nightmode .upd-act{background:#3a2a08;color:#f5c860}
.pm-pager{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:18px 0 0;padding:0;list-style:none}
.pm-pager li a{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border-radius:11px;border:1px solid var(--pm-line);background:#fff;color:#44537a;font-size:14px;font-weight:600;text-decoration:none}
.pm-pager li.active a,.pm-pager li a:hover{background:linear-gradient(135deg,#2f7bff,#1ea7ff);border-color:transparent;color:#fff}
.dashboard.nightmode .pm-pager li a{background:#111a30;border-color:#1f2c4a;color:#c9d6f3}
@media (max-width:767px){
  .upd-table table,.upd-table tbody{display:block;width:100%}.upd-table thead{display:none}
  .upd-table tbody tr{display:block;margin-bottom:12px;padding:6px 14px;border:1px solid var(--pm-line);border-radius:16px;background:#fff}
  .upd-table tbody td{display:flex;justify-content:space-between;gap:14px;padding:9px 0 !important;border-bottom:1px solid #edf1fa !important;text-align:right;background:none !important}
  .upd-table tbody td:last-child{border-bottom:0 !important}
  .upd-table tbody td::before{content:attr(data-label);flex:0 0 36%;text-align:left;font-size:12px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:#7a869f}
  .dashboard.nightmode .upd-table tbody tr{background:#111a30;border-color:#1f2c4a}.dashboard.nightmode .upd-table tbody td{border-bottom-color:#1c2946 !important}
}

/* ---------- signup page ---------- */
.pm-auth{min-height:100vh;padding:96px 16px 40px;background:radial-gradient(900px 500px at 10% -10%,rgba(47,123,255,.18),transparent 60%),radial-gradient(700px 420px at 100% 10%,rgba(30,167,255,.14),transparent 60%),#f4f7fd}
.pm-auth-wrap{max-width:1020px;margin:0 auto;display:grid;grid-template-columns:1fr 1.05fr;gap:0;border-radius:26px;overflow:hidden;background:#fff;border:1px solid #e3eaf8;box-shadow:0 24px 60px rgba(30,60,130,.14)}
.pm-auth-side{position:relative;padding:48px 40px;color:#fff;background:linear-gradient(150deg,#1d4ed8 0%,#2563eb 45%,#0ea5e9 100%);display:flex;align-items:center}
.pm-auth-side::before{content:"";position:absolute;inset:0;background:radial-gradient(420px 260px at 90% 0%,rgba(255,255,255,.22),transparent 65%),radial-gradient(360px 260px at 0% 100%,rgba(0,0,0,.22),transparent 65%)}
.pm-auth-side-in{position:relative}
.pm-auth-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.18);font-size:13px;font-weight:600}
.pm-auth-side h1{margin:18px 0 12px;font-size:32px;line-height:1.2;font-weight:700;color:#fff}
.pm-auth-side p{margin:0 0 20px;font-size:15px;line-height:1.6;color:rgba(255,255,255,.88)}
.pm-auth-points{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.pm-auth-points li{display:flex;align-items:center;gap:10px;font-size:14.5px}
.pm-auth-points i{width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:11px}
.pm-auth-card{padding:40px 36px;background:#fff}
.pm-auth-head{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.pm-auth-ico{width:48px;height:48px;border-radius:14px;flex:0 0 48px;display:flex;align-items:center;justify-content:center;font-size:19px;color:#fff;background:linear-gradient(135deg,#4f8dff,#2563eb);box-shadow:0 8px 18px rgba(37,99,235,.28)}
.pm-auth-head h2{margin:0;font-size:22px;font-weight:700;color:var(--pm-ink)}
.pm-auth-head small{display:block;margin-top:3px;font-size:13px;color:var(--pm-mut)}
.pm-field{margin-bottom:14px}
.pm-field label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:#53627f}
.pm-input{position:relative}
.pm-input > i{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:15px;color:#7b8aa8;pointer-events:none;z-index:2}
.pm-input .form-control{height:48px;padding-left:42px !important;border:1px solid #dbe3f5 !important;border-radius:12px !important;background:#f6f8fe !important;font-size:15px;font-weight:500;color:var(--pm-ink)}
.pm-input .form-control:focus{border-color:#2f7bff !important;background:#fff !important;box-shadow:0 0 0 3px rgba(47,123,255,.15) !important}
.pm-check{display:flex;align-items:flex-start;gap:10px;margin:6px 0 18px;font-size:13.5px;color:#53627f;cursor:pointer}
.pm-check input{width:18px;height:18px;margin-top:2px;flex:0 0 18px;accent-color:#2563eb;display:inline-block !important}
.pm-auth-btn{min-height:50px;border:0 !important;border-radius:13px !important;font-size:16px;font-weight:600;color:#fff !important;background:linear-gradient(90deg,#2f7bff,#1ea7ff) !important;box-shadow:0 10px 24px rgba(40,130,255,.32)}
.pm-auth-btn.btn-loading{display:flex !important}
.pm-auth-foot{margin:16px 0 0;text-align:center;font-size:14px;color:var(--pm-mut)}
.pm-auth-foot a{color:var(--pm-blue);font-weight:600;text-decoration:none}
.pm-auth .alert{border-radius:12px;font-size:14px;margin-bottom:16px}
.pm-auth-extra{margin-top:20px;display:block;background:transparent;border:0;box-shadow:none}
@media (max-width:860px){.pm-auth{padding-top:84px}.pm-auth-wrap{grid-template-columns:1fr;border-radius:22px}.pm-auth-side{display:none}.pm-auth-card{padding:28px 20px}}

.dashboard .pagination.pm-pager li a,.dashboard .pagination.pm-pager li span{background:#fff !important;border:1px solid #e6ecf7 !important;color:#44537a !important;border-radius:11px !important;box-shadow:none !important}
.dashboard .pagination.pm-pager li.active a,.dashboard .pagination.pm-pager li a:hover{background:linear-gradient(135deg,#2f7bff,#1ea7ff) !important;border-color:transparent !important;color:#fff !important}
.dashboard.nightmode .pagination.pm-pager li a{background:#111a30 !important;border-color:#1f2c4a !important;color:#c9d6f3 !important}

/* =====================================================================
   v15 - services page buttons + details modal
   ===================================================================== */
.svc-card{border-radius:18px !important;box-shadow:0 2px 10px rgba(30,55,110,.05) !important}
.svc-item{padding:14px 16px;border-bottom:1px solid var(--pm-line)}
.svc-top{gap:12px}
.svc-id{background:#e8f0ff !important;color:var(--pm-blue) !important;font-weight:700 !important;border-radius:8px !important}
.svc-name{font-weight:600 !important;color:var(--pm-ink)}
.svc-rate{font-weight:600 !important;color:#0b7a4b !important;background:#e6f8ef;padding:3px 12px;border-radius:999px;font-size:13px}
.svc-bottom{margin-top:12px !important}
.svc-bottom .meta span{display:inline-flex;align-items:center;gap:6px;margin:0 8px 6px 0 !important;padding:3px 10px;border-radius:999px;background:#f2f6fd;color:#53627f;font-size:12.5px;opacity:1 !important}
.svc-actions{display:flex;gap:8px;flex-wrap:wrap}
.svc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 18px;border-radius:12px;border:1px solid transparent;font-size:14px;font-weight:600;line-height:1;text-decoration:none !important;cursor:pointer;transition:transform .12s,box-shadow .15s,background .15s;-webkit-tap-highlight-color:transparent}
.svc-btn:active{transform:scale(.97)}
.svc-btn-order{color:#fff !important;background:linear-gradient(90deg,#2f7bff,#1ea7ff);box-shadow:0 6px 16px rgba(40,130,255,.28)}
.svc-btn-order:hover{box-shadow:0 9px 22px rgba(40,130,255,.38);color:#fff !important}
.svc-btn-ghost{color:#44537a;background:#fff;border-color:#d7e1f5}
.svc-btn-ghost:hover{background:#eef4ff;border-color:#9dbcf5;color:var(--pm-blue)}
details.svc-cat{border:1px solid var(--pm-line) !important;border-radius:16px !important}
details.svc-cat>summary{font-weight:600 !important;background:linear-gradient(90deg,#eef4ff,#f8fbff) !important}
details.svc-cat>summary .n{background:linear-gradient(135deg,#2f7bff,#1ea7ff) !important}
@media (max-width:575px){.svc-actions{width:100%}.svc-actions .svc-btn{flex:1}.svc-top{flex-direction:column;align-items:flex-start}}
.dashboard.nightmode .svc-card{background:#111a30 !important;border-color:#1f2c4a !important}
.dashboard.nightmode .svc-name{color:#f1f5ff}.dashboard.nightmode .svc-id{background:#1d2e55 !important;color:#8db4ff !important}
.dashboard.nightmode .svc-rate{background:#0e2e24;color:#5fe0a8 !important}
.dashboard.nightmode .svc-bottom .meta span{background:#19233a;color:#a9b9da}
.dashboard.nightmode .svc-btn-ghost{background:#16264a;border-color:#27407a;color:#c9d6f3}
.dashboard.nightmode details.svc-cat{border-color:#1f2c4a !important}
.dashboard.nightmode details.svc-cat>summary{background:linear-gradient(90deg,#16264a,#111a30) !important;color:#f1f5ff}
.dashboard.nightmode .svc-item{border-bottom-color:#1c2946}

/* details modal: proper size, readable in light + dark */
#svcModal .modal-dialog{max-width:560px}
#svcModal .modal-content{border:0;border-radius:20px;background:#fff;color:var(--pm-ink);box-shadow:0 30px 80px rgba(8,16,40,.35)}
#svcModal .modal-header{padding:18px 20px 12px;border-bottom:1px solid var(--pm-line)}
#svcModal .modal-title{font-size:16px;font-weight:600;line-height:1.4;color:var(--pm-ink)}
#svcModal .modal-body{padding:18px 20px;font-size:14.5px;line-height:1.7;color:#33415f;word-break:break-word;max-height:60vh;overflow-y:auto}
#svcModal .modal-footer{border-top:1px solid var(--pm-line);padding:12px 20px}
#svcModal .svc-nodesc{margin:0;text-align:center;color:var(--pm-mut)}
body.nightmode #svcModal .modal-content,.dashboard.nightmode #svcModal .modal-content{background:#111a30;color:#e6ecfb}
.dashboard.nightmode #svcModal .modal-title{color:#f1f5ff}.dashboard.nightmode #svcModal .modal-body{color:#c9d6f3}
.dashboard.nightmode #svcModal .modal-header,.dashboard.nightmode #svcModal .modal-footer{border-color:#1f2c4a}
.dashboard.nightmode #svcModal .btn-close{filter:invert(1)}

/* =====================================================================
   v16 - sidebar scroll, light sidebar, developer credit
   ===================================================================== */

/* ---------- sidebar: one scrolling column, never taller than the screen ---------- */
.dashboard #main_container .sidebar{position:fixed !important;top:0 !important;bottom:0 !important;left:0;height:auto !important;max-height:none !important;display:flex !important;flex-direction:column;overflow:hidden !important}
.dashboard #main_container .sidebar .sidebar_top{flex:0 0 auto}
.dashboard #main_container .sidebar .sidebar_bottom{flex:1 1 auto !important;min-height:0 !important;height:auto !important;max-height:none !important;overflow-y:auto !important;overflow-x:hidden !important;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:14px;scrollbar-width:thin}
.dashboard #main_container .sidebar .sidebar_bottom::-webkit-scrollbar{width:6px}
.dashboard #main_container .sidebar .sidebar_bottom::-webkit-scrollbar-thumb{background:rgba(120,140,190,.35);border-radius:6px}
.dashboard .sidebar .sidebar_menu .menu_item{touch-action:pan-y;-webkit-user-select:none;user-select:none}

/* ---------- light mode: light sidebar (dark mode keeps the dark one) ---------- */
.dashboard:not(.nightmode) #main_container .sidebar{background:#ffffff !important;border-right:1px solid #e6ecf7 !important;box-shadow:4px 0 24px rgba(30,55,110,.06) !important}
.dashboard:not(.nightmode) .sidebar .logo .sb-brand,.dashboard:not(.nightmode) .sidebar .logo a{color:#0f1b33 !important}
.dashboard:not(.nightmode) .sidebar-profile .sp-box{background:#f4f7fd !important;border:1px solid #e6ecf7 !important}
.dashboard:not(.nightmode) .sidebar-profile .sidebar-user{color:#0f1b33 !important}
.dashboard:not(.nightmode) .sidebar-profile .sidebar-text img{border-color:#fff !important;box-shadow:0 2px 8px rgba(30,55,110,.18)}
.dashboard:not(.nightmode) .sidebar-profile .sp-wrapper .blob{box-shadow:0 0 0 2px #f4f7fd !important}
.dashboard:not(.nightmode) .sidebar-profile .power-off{background:#e8f0ff !important;color:#2563eb !important}
.dashboard:not(.nightmode) .sidebar-profile .power-off:hover{background:#e5484d !important;color:#fff !important}
.dashboard:not(.nightmode) .sidebar .sidebar_menu .menu_item{color:#44537a !important;background:transparent !important}
.dashboard:not(.nightmode) .sidebar .sidebar_menu .menu_item .menu_icon{background:#eef3ff !important;color:#2563eb !important}
.dashboard:not(.nightmode) .sidebar .sidebar_menu .menu_item:hover{background:#f1f6ff !important;color:#2563eb !important}
.dashboard:not(.nightmode) .sidebar .sidebar_menu .menu_item.active{background:linear-gradient(135deg,#2f7bff 0%,#1ea7ff 100%) !important;color:#fff !important;box-shadow:0 8px 18px rgba(30,120,255,.28) !important}
.dashboard:not(.nightmode) .sidebar .sidebar_menu .menu_item.active .menu_icon{background:rgba(255,255,255,.25) !important;color:#fff !important}
.dashboard:not(.nightmode) .sidebar .close_btn_phone,.dashboard:not(.nightmode) .sidebar .close_btn_phone i{color:#44537a !important}
.dashboard:not(.nightmode) .sidebar .close_btn_phone{background:#eef3ff !important}
@media (hover:none){.dashboard:not(.nightmode) .sidebar .sidebar_menu .menu_item:hover{background:transparent !important}.dashboard:not(.nightmode) .sidebar .sidebar_menu .menu_item.active:hover{background:linear-gradient(135deg,#2f7bff 0%,#1ea7ff 100%) !important}}

/* ---------- developer credit ---------- */
.sidebar_dev{flex:0 0 auto;display:flex;align-items:center;gap:10px;margin:6px 12px calc(12px + env(safe-area-inset-bottom,0px));padding:10px 12px;border-radius:14px;text-decoration:none !important;
  background:linear-gradient(135deg,#2f7bff,#1ea7ff);color:#fff !important;box-shadow:0 8px 20px rgba(30,120,255,.30);transition:transform .15s,box-shadow .15s}
.sidebar_dev:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(30,120,255,.40);color:#fff !important}
.sidebar_dev .sd-ico{width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:17px}
.sidebar_dev .sd-txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.sidebar_dev .sd-txt small{font-size:11px;opacity:.85;font-weight:500}
.sidebar_dev .sd-txt b{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar_dev .sd-go{font-size:12px;opacity:.8}

.dev-credit{padding:14px 12px 22px;text-align:center;background:transparent}
.dev-credit a{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;border:1px solid #cfe0ff;background:#fff;color:#44537a !important;font-size:13.5px;font-weight:500;text-decoration:none !important;box-shadow:0 2px 10px rgba(30,70,160,.08);transition:transform .15s,box-shadow .15s}
.dev-credit a:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(30,70,160,.16)}
.dev-credit a i{color:#229ed9;font-size:16px}
.dev-credit a b{font-weight:700;background:linear-gradient(90deg,#2f7bff,#1ea7ff);-webkit-background-clip:text;background-clip:text;color:transparent}
body.dashboard .dev-credit{position:relative;z-index:1}
@media (min-width:992px){body.dashboard:not(:has(.toogle_sidebar)) .dev-credit{padding-left:264px}}
body.nightmode .dev-credit a{background:#111a30;border-color:#27407a;color:#c9d6f3 !important}

.dev-pill{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:7px 16px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid #cfe0ff;color:#44537a !important;font-size:13.5px;font-weight:500;text-decoration:none !important;box-shadow:0 6px 18px rgba(30,70,160,.12);transition:transform .15s}
.dev-pill:hover{transform:translateY(-1px)}
.dev-pill i{color:#229ed9;font-size:16px}
.dev-pill b{font-weight:700;color:#2563eb}

/* =====================================================================
   v17 - dark-mode credit text, iOS-friendly sidebar scrolling, mobile guest menu
   ===================================================================== */

/* the generic dark-mode "small" and "b" colours made the credit text unreadable */
.dashboard .sidebar_dev .sd-txt small,.dashboard.nightmode .sidebar_dev .sd-txt small{color:rgba(255,255,255,.9) !important;opacity:1}
.dashboard .sidebar_dev .sd-txt b,.dashboard.nightmode .sidebar_dev .sd-txt b{color:#fff !important;-webkit-text-fill-color:#fff}
.dashboard .sidebar_dev,.dashboard.nightmode .sidebar_dev,.dashboard.nightmode a.sidebar_dev{color:#fff !important}
.dashboard .sidebar_dev .sd-ico i,.dashboard .sidebar_dev .sd-go{color:#fff !important}
.dashboard.nightmode .sidebar_dev{background:linear-gradient(135deg,#2563eb,#0ea5e9);box-shadow:0 8px 20px rgba(0,0,0,.35)}
.dashboard.nightmode .dev-credit a b{background:linear-gradient(90deg,#7db0ff,#38bdf8);-webkit-background-clip:text;background-clip:text;color:transparent}
.dashboard.nightmode .dev-credit a{color:#c9d6f3 !important}

/* ---------- phones/tablets: ONE scroller (the whole sidebar). Nested scrollers feel stiff on iPhone ---------- */
@media (max-width:991px){
  .dashboard #main_container .sidebar{display:block !important;overflow-y:auto !important;overflow-x:hidden !important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;
    padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .dashboard #main_container .sidebar .sidebar_top,
  .dashboard #main_container .sidebar .sidebar_bottom{flex:none !important;height:auto !important;max-height:none !important;overflow:visible !important;touch-action:pan-y}
  .dashboard .sidebar .sidebar_menu .menu_item,.dashboard .sidebar .sidebar_menu .menu_item:active{transform:none !important;transition:background .12s,color .12s !important}
  .dashboard .sidebar .sidebar_menu .menu_item{-webkit-tap-highlight-color:rgba(37,99,235,.12)}
  /* the credit stays visible at the bottom of the screen while the menu scrolls under it */
  .sidebar_dev{position:sticky;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:3;margin:10px 12px 0}
}

/* ---------- home page: mobile menu sheet ---------- */
@media (max-width:990px){
  #navMob{border-radius:26px 26px 0 0 !important;background:#fff !important;box-shadow:0 -12px 40px rgba(15,30,70,.22) !important;padding:20px 0 calc(22px + env(safe-area-inset-bottom,0px)) !important;border-top:1px solid #e6ecf7}
  #navMob::before{content:"";display:block;width:44px;height:5px;border-radius:5px;background:#d5def0;margin:0 auto 14px}
  #navMob .nav_content{width:calc(100% - 36px);margin:0 auto}
  #cls{top:14px !important;right:16px !important;width:36px !important;height:36px !important;border-radius:50% !important;background:#eef3ff !important;color:#44537a !important;font-size:16px !important;display:flex;align-items:center;justify-content:center}
  .menu_mobs{margin:8px 0 16px !important;display:grid;gap:6px}
  .menu_mobs li a{display:flex !important;align-items:center;gap:14px;margin:0 !important;padding:12px 14px;border-radius:14px;background:#f6f8fe;color:#1b2745 !important;font-size:15.5px !important;font-weight:600 !important;text-decoration:none}
  .menu_mobs li a .navbar-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#e8f0ff;color:#2563eb;font-size:14px}
  .menu_mobs li a.active{background:linear-gradient(135deg,#2f7bff,#1ea7ff) !important;color:#fff !important;box-shadow:0 8px 18px rgba(37,110,255,.28)}
  .menu_mobs li a.active .navbar-icon{background:rgba(255,255,255,.25);color:#fff}
  #navMob .nav_content .btn{grid-template-columns:1fr 1fr !important;gap:10px !important}
  #navMob .nav_content .btn a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 16px !important;border-radius:14px !important;font-size:15.5px;font-weight:600 !important;text-decoration:none;position:relative}
  #navMob .nav_content .btn a.mob-btn-ghost{background:#fff !important;border:1.5px solid #cfdcf5;color:#2b3a5f !important}
  #navMob .nav_content .btn a.mob-btn-main{background:linear-gradient(90deg,#2f7bff,#1ea7ff) !important;color:#fff !important;box-shadow:0 10px 22px rgba(40,130,255,.32)}
  #navMob .nav_content .btn_icon{position:static !important;width:26px !important;height:26px !important;line-height:26px !important;border-radius:50%;background:rgba(255,255,255,.25) !important;font-size:12px;text-align:center}
}

/* ---------- ROOT CAUSE of the stiff sidebar: .sidebar_menu was its own scroll box (overflow:auto + fixed height)
   inside the sidebar's scroll box, so a swipe was split between two scrollers. Only ONE scroller remains. ---------- */
.dashboard .sidebar .sidebar_menu,.dashboard.nightmode .sidebar .sidebar_menu{height:auto !important;max-height:none !important;overflow:visible !important;margin-top:8px}


/* ---- smaller logo in the top bar (visitor pages) ---- */
.noAuth a.navbar-brand img,a.navbar-brand img{max-width:150px !important;max-height:42px !important;width:auto !important;height:auto !important;object-fit:contain}
.noAuth a.navbar-brand{padding-top:6px;padding-bottom:6px;margin-right:0}
@media (max-width:767px){.noAuth a.navbar-brand img,a.navbar-brand img{max-width:118px !important;max-height:34px !important}}

/* =====================================================================
   Mobile menu sheet (visitor pages) - premium redesign
   ===================================================================== */
.gm-backdrop,.gm-sheet{display:none}
body.gm-lock{overflow:hidden}
@media (max-width:990px){
  .gm-backdrop{display:block;position:fixed;inset:0;z-index:99998;background:rgba(8,16,40,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .25s ease}
  .gm-backdrop.active{opacity:1;pointer-events:auto}
  .gm-sheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:99999;max-height:90vh;overflow-y:auto;overscroll-behavior:contain;
    background:linear-gradient(180deg,#f4f8ff 0,#fff 120px);border-radius:30px 30px 0 0;padding:10px 18px calc(22px + env(safe-area-inset-bottom,0px));
    box-shadow:0 -22px 60px rgba(10,20,55,.32);transform:translateY(106%);visibility:hidden;transition:transform .38s cubic-bezier(.22,1,.36,1),visibility 0s linear .38s;font-family:inherit}
  .gm-sheet::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;border-radius:30px 30px 0 0;background:linear-gradient(90deg,#2f7bff,#1ea7ff,#7c5cff)}
  .gm-sheet.active{transform:none;visibility:visible;transition:transform .38s cubic-bezier(.22,1,.36,1),visibility 0s}
  .gm-handle{width:46px;height:5px;margin:6px auto 10px;border-radius:5px;background:#d3ddf0}
  .gm-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 12px}
  .gm-title{font-size:13px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:#7a88a8}
  .gm-close{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:0;border-radius:50%;background:#eaf0fb;color:#1c2b4d;font-size:16px;cursor:pointer;transition:background .15s,transform .15s}
  .gm-close:active{transform:scale(.92);background:#dbe5f6}
  .gm-list{display:grid;gap:10px;margin:0 0 18px}
  .gm-item{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid #e4ebf7;border-radius:18px;background:#fff;color:#0f1b33 !important;text-decoration:none !important;
    box-shadow:0 6px 18px rgba(30,60,120,.06);transition:transform .15s,box-shadow .15s,border-color .15s;opacity:0;transform:translateY(14px)}
  .gm-sheet.active .gm-item{opacity:1;transform:none;transition:opacity .35s ease calc(.08s + var(--i,0) * .06s),transform .35s ease calc(.08s + var(--i,0) * .06s),box-shadow .15s,border-color .15s}
  .gm-item:active{transform:scale(.985) !important;border-color:#b9d0ff}
  .gm-ico{display:inline-flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;color:#fff;font-size:18px;box-shadow:0 8px 16px rgba(47,123,255,.28)}
  .gm-ico--blue{background:linear-gradient(135deg,#2f7bff,#1ea7ff)}
  .gm-ico--violet{background:linear-gradient(135deg,#7c5cff,#a78bff);box-shadow:0 8px 16px rgba(124,92,255,.28)}
  .gm-ico--teal{background:linear-gradient(135deg,#0fb5a6,#38d9c0);box-shadow:0 8px 16px rgba(15,181,166,.28)}
  .gm-label{flex:1 1 auto;min-width:0;font-size:17px;font-weight:700;line-height:1.2}
  .gm-label small{display:block;margin-top:3px;font-size:12.5px;font-weight:500;color:#7a88a8}
  .gm-arrow{flex:0 0 auto;width:9px;height:9px;margin-right:6px;border-right:2.5px solid #9fb0d0;border-top:2.5px solid #9fb0d0;transform:rotate(45deg)}
  .gm-item.is-active{border-color:transparent;background:linear-gradient(135deg,#2f7bff,#1ea7ff);color:#fff !important;box-shadow:0 14px 30px rgba(37,110,255,.38)}
  .gm-item.is-active .gm-label small{color:rgba(255,255,255,.85)}
  .gm-item.is-active .gm-ico{background:rgba(255,255,255,.22);box-shadow:none}
  .gm-item.is-active .gm-arrow{border-color:#fff}
  .gm-cta{display:grid;grid-template-columns:1fr 1.25fr;gap:12px}
  .gm-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:0 16px;border-radius:16px;font-size:16px;font-weight:700;text-decoration:none !important;transition:transform .15s,box-shadow .15s}
  .gm-btn:active{transform:scale(.97)}
  .gm-btn--ghost{background:#fff;color:#1d3b8f !important;border:1.5px solid #c9d8f5}
  .gm-btn--ghost.is-active{border-color:#2f7bff;background:#eef4ff}
  .gm-btn--main{background:linear-gradient(90deg,#2f7bff,#1ea7ff);color:#fff !important;box-shadow:0 12px 26px rgba(37,110,255,.4)}
  .gm-btn--main i{font-size:13px}
}
@media (prefers-reduced-motion:reduce){.gm-sheet,.gm-backdrop,.gm-item{transition:none !important}}

/* ---- slightly taller header (visitor pages) ---- */
.noAuth .navbar.navbar-expand-lg.navbar-light.bg-light{padding:21px 0 !important}
.noAuth a.navbar-brand img,a.navbar-brand img{max-width:165px !important;max-height:48px !important}
#navbar.shrink{top:-96px}
#notLogin{padding-top:86px}
@media (max-width:767px){
  .noAuth .navbar.navbar-expand-lg.navbar-light.bg-light{padding:16px 12px !important}
  .noAuth a.navbar-brand img,a.navbar-brand img{max-width:128px !important;max-height:38px !important}
  #notLogin{padding-top:78px}
}

/* ---- logo: fixed height so it never collapses (visitor header) ---- */
.noAuth a.navbar-brand img,a.navbar-brand img{height:44px !important;width:auto !important;max-width:none !important;max-height:none !important;object-fit:contain}
@media (max-width:767px){.noAuth a.navbar-brand img,a.navbar-brand img{height:38px !important}}

/* ---- mobile menu must be above every floating widget (WhatsApp / chat integrations) ---- */
.gm-backdrop{z-index:2147483000 !important}
.gm-sheet{z-index:2147483001 !important}
body.gm-lock .integration-fixed,body.gm-lock .sb-fab{display:none !important}

/* ---- home page hero buttons ---- */
#notLogin.hp .hp-btn{box-sizing:border-box;min-height:56px;padding:0 26px !important;font-size:16.5px !important;letter-spacing:.2px;border:1.5px solid transparent;white-space:nowrap;transition:transform .15s,box-shadow .2s,filter .2s}
#notLogin.hp .hp-btn:hover{transform:translateY(-2px)}
#notLogin.hp .hp-btn:active{transform:scale(.98)}
#notLogin.hp .hp-btn.solid,#notLogin.hp a.hp-btn.solid,#notLogin.hp button.hp-btn.solid{background:linear-gradient(135deg,#2547d0,#3b7bff) !important;color:#fff !important;box-shadow:0 14px 30px rgba(37,71,208,.38)}
#notLogin.hp .hp-btn.ghost{background:#fff !important;color:#1e3fbd !important;border-color:#c5d4fb;box-shadow:0 8px 22px rgba(30,63,189,.12)}
#notLogin.hp .hp-btn .arr{width:30px;height:30px;font-size:12px;background:rgba(255,255,255,.22);border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px}
#notLogin.hp .hp-cta{display:grid;grid-template-columns:1fr;gap:12px;max-width:420px}
#notLogin.hp .hp-cta .hp-btn.solid{order:-1}
#notLogin.hp .hp-cta .hp-btn{width:100%}
@media (min-width:768px){#notLogin.hp .hp-cta{display:flex;flex-wrap:wrap;max-width:none}#notLogin.hp .hp-cta .hp-btn{width:auto;min-width:190px}#notLogin.hp .hp-cta .hp-btn.solid{order:0}#notLogin.hp .hp-cta .hp-btn.ghost{order:-1}}
@media (max-width:370px){#notLogin.hp .hp-cta{grid-template-columns:1fr}}
