/* Desktop layout — option 6 "split screen": a fixed account panel on the right, content on the left.
   Phones/tablets (< 1100px) keep the mobile layout from theme-pro.css. */

/* ---------- phones / tablets: these desktop-only parts stay hidden ---------- */
@media (max-width: 1099px) {
  .pro-acct, .pro-acct-links, .pro-topbar-icons { display: none !important; }
  .pro-topbar { display: contents; }
}

/* ---------- desktop ---------- */
@media (min-width: 1100px) {
  html body { background: var(--pb-bg); }
  html body .app-container { padding: 0 !important; background: var(--pb-bg); height: 100vh; max-height: 100vh; overflow: hidden; }
  .app-container:not(.auth-page-active) > .top-bar { display: none !important; }

  html body .main-dashboard { flex-direction: row; align-items: stretch; gap: 0 !important; padding: 0 !important; height: 100vh; overflow: hidden; }

  /* account panel (first column = right side in Arabic) */
  html body .dashboard-sidebar-col {
    width: 360px; flex-shrink: 0; height: 100vh; position: relative; top: 0; overflow-y: auto; scrollbar-width: none;
    background: var(--pb-bg2) !important; border: 0 !important; border-inline-end: 1px solid var(--pb-line) !important; border-radius: 0 !important;
    box-shadow: none !important; padding: 22px 22px 18px !important; min-height: 0 !important; display: flex; flex-direction: column; gap: 16px !important;
  }
  .dashboard-sidebar-col::-webkit-scrollbar { width: 0; }
  html body .sidebar-brand-block { border-bottom: 0 !important; padding: 0 !important; margin: 0 !important; }
  html body .sidebar-logo-img { width: 40px !important; height: 40px !important; border-radius: 11px !important; }
  .sidebar-brand-text .logo-text { font-size: 1.1rem !important; }

  .pro-acct { display: flex; flex-direction: column; gap: 14px; }
  .pro-acct-user { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px; margin: -6px; border-radius: 14px; }
  .pro-acct-user:hover { background: rgba(255,255,255,.03); }
  .pro-acct-av { width: 50px; height: 50px; border-radius: 50%; background: var(--pb-card2); border: 1px solid var(--pb-line2); display: grid; place-items: center; color: var(--pb-t2); overflow: hidden; flex-shrink: 0; }
  .pro-acct-av img { width: 100%; height: 100%; object-fit: cover; }
  .pro-acct-who { min-width: 0; }
  .pro-acct-who b { display: block; color: var(--pb-t1); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pro-acct-who > span { color: var(--pb-t2); font-size: .76rem; }
  .pro-acct-who em { font-style: normal; color: var(--pb-acc); }
  .pro-acct-who em.pending, .pro-acct-who em.rejected { color: var(--pb-warn); }
  .pro-acct-lbl { color: var(--pb-t2); font-size: .8rem; margin-top: 4px; }
  .pro-acct-total { color: var(--pb-t1); font-size: 2.3rem; font-weight: 700; margin-top: -10px; direction: ltr; text-align: start; }
  .pro-acct-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pro-acct-acts button { height: 46px; border-radius: 12px; border: 1px solid var(--pb-line2); background: var(--pb-card); color: var(--pb-t1); font-weight: 700; font-size: .86rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .pro-acct-acts button.main { background: var(--pb-acc); color: var(--pb-on-acc); border-color: transparent; }
  .pro-acct-acts button:hover { filter: brightness(1.1); }
  .pro-acct-list { background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: 16px; padding: 4px 16px; }
  .pro-acct-list > div { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--pb-line); }
  .pro-acct-list > div:last-child { border-bottom: 0; }
  .pro-acct-list i { color: var(--pb-acc); width: 18px; text-align: center; }
  .pro-acct-list span { flex: 1; color: var(--pb-t1); font-size: .88rem; font-weight: 600; }
  .pro-acct-list b { color: var(--pb-t1); font-size: .9rem; direction: ltr; }

  .pro-acct-links { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
  .pro-acct-links button { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--pb-t2); font-size: .86rem; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: start; }
  .pro-acct-links button i { width: 18px; text-align: center; }
  .pro-acct-links button:hover { background: rgba(255,255,255,.04); color: var(--pb-t1); }
  html body .sidebar-logout-btn { display: flex !important; margin-top: 0 !important; width: 100%; justify-content: flex-start; gap: 12px; height: auto !important; padding: 10px 12px !important; background: none !important; border: 0 !important; color: var(--pb-dn) !important; font-size: .86rem; border-radius: 10px !important; }
  html body .sidebar-logout-btn:hover { background: rgba(246,70,93,.08) !important; box-shadow: none !important; }

  /* content column */
  html body .dashboard-content-col { flex: 1; min-width: 0; height: 100vh; overflow-y: auto; padding: 22px 32px 40px !important; gap: 18px !important; scrollbar-width: thin; scrollbar-color: #2b3139 transparent; }
  .pro-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: -22px; z-index: 20; background: var(--pb-bg); padding: 4px 0 10px; margin-top: -4px; }
  html body .pro-topbar .nav-tabs {
    position: static !important; flex-direction: row !important; display: inline-flex !important; width: auto !important; height: auto !important; transform: none !important;
    background: var(--pb-card) !important; border: 1px solid var(--pb-line) !important; border-radius: 14px !important; padding: 5px !important; gap: 4px !important; box-shadow: none !important; backdrop-filter: none !important;
  }
  html body .pro-topbar .nav-tab {
    flex: 0 0 auto !important; flex-direction: row !important; padding: 9px 18px !important; font-size: .86rem !important; gap: 8px !important;
    color: var(--pb-t2) !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; white-space: nowrap;
  }
  html body .pro-topbar .nav-tab i { font-size: .9rem !important; width: auto !important; height: auto !important; margin: 0 !important; background: none !important; box-shadow: none !important; color: inherit !important; display: inline !important; }
  html body .pro-topbar .nav-tab:hover { color: var(--pb-t1) !important; }
  html body .pro-topbar .nav-tab.active { background: var(--pb-acc) !important; color: var(--pb-on-acc) !important; font-weight: 700; }
  html body .pro-topbar .nav-tab.active::before { display: none !important; }
  .pro-topbar-icons { display: flex; gap: 8px; }
  .pro-tb-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--pb-line); background: var(--pb-card); color: var(--pb-t2); cursor: pointer; font-size: .95rem; }
  .pro-tb-btn:hover { color: var(--pb-t1); }
  .pro-tb-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; border-radius: 10px; background: var(--pb-dn); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

  /* the account panel already shows the user and balances */
  html body .dashboard-header { display: none !important; }

  /* ---------- home ---------- */
  html body #pageDashboard.active { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  #pageDashboard .pro-hero, #pageDashboard .pro-actions, #pageDashboard .pro-wallet-msg { display: none !important; }
  #pageDashboard .blk-recent, #pageDashboard .pro-promo { grid-column: 1 / -1; }
  #pageDashboard .pro-sec { margin-top: 0; }
  #pageDashboard .pro-mine { min-height: 196px; padding: 22px; gap: 20px; }
  #pageDashboard .pro-ring { width: 110px; height: 110px; }
  #pageDashboard .pro-ring div { width: 90px; height: 90px; font-size: 1.15rem; }
  #pageDashboard .pro-mine-txt b { font-size: 1.05rem; }
  #pageDashboard .pro-mine-txt span { font-size: .84rem; }
  #pageDashboard .pro-mine-val b { font-size: 1.5rem; }
  #pageDashboard .pro-promo { margin-top: 0; }

  /* ---------- assets ---------- */
  html body #pageAsset.active { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  #pageAsset .pro-hero { margin-bottom: 0; }
  #pageAsset .blk-flow .pro-sec { margin-top: 0; }
  #pageAsset .blk-perf .pro-sec, #pageAsset .blk-plan .pro-sec { margin-top: 0; }
  #pageAsset .as-chart { height: 160px; }

  /* ---------- mining: main card + info side by side ---------- */
  html body #pageMining.active { display: grid !important; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
  #pageMining > .section-card { margin-bottom: 0 !important; }

  /* ---------- general ---------- */
  html body .section-card { border-radius: 18px !important; padding: 22px !important; }
  html body .section-card:hover { border-color: var(--pb-line2) !important; }
  .verification-banner, .announcement-banner, .spot-hero { margin: 0 !important; }
}

@media (min-width: 1500px) {
  html body .dashboard-sidebar-col { width: 400px; }
  html body .dashboard-content-col { padding: 26px 48px 48px !important; }
}
