/* Premium dashboard layer rendered directly by glh_sc_dashboard() */

.glh-wrap.glh-premium-on.glh-home-active .glh-tabs,
.glh-wrap.glh-premium-on.glh-home-active .glh-ctx-panel,
.glh-wrap.glh-premium-on.glh-home-active .glh-txn-section,
.glh-wrap.glh-premium-on.glh-home-active .glh-banners{display:none!important}
.glh-wrap.glh-premium-on #glhHero .glh-hero-btns{display:none!important}
.glh-wrap.glh-premium-on:not(.glh-home-active) #glhPremiumHome{display:none!important}

.glh-wrap.glh-premium-on #glhHero{
  border-radius:24px;
  min-height:260px;
  border-color:rgba(255,255,255,.10);
  box-shadow:0 18px 60px rgba(0,0,0,.42);
  overflow:hidden;
}
.glh-wrap.glh-premium-on #glhHero .glh-hero-r{width:100%;align-items:stretch;position:relative}
.glh-wrap.glh-premium-on #glhHero .glh-hero-chart{
  width:100%;
  height:132px;
  margin-top:8px;
}
.glh-wrap.glh-premium-on #glhHero .glh-chart-red-rise{
  left:0;right:0;bottom:-10px;height:78px;
  background:radial-gradient(ellipse at center,rgba(34,197,94,.20) 0%,rgba(34,197,94,.09) 36%,rgba(34,197,94,0) 72%);
  filter:blur(12px);
}
.glh-wrap.glh-premium-on #glhHero .glh-chart-red-glow{
  right:18px;bottom:18px;width:44px;height:44px;
  background:radial-gradient(circle,rgba(34,197,94,.34) 0%,rgba(34,197,94,.12) 38%,rgba(34,197,94,0) 74%);
}

.glh-premium-home{padding-bottom:24px}
.glh-prem-card{
  background:rgba(17,28,53,.76);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  box-shadow:0 18px 60px rgba(0,0,0,.36);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  padding:16px;
  margin:14px 0;
  overflow:hidden;
}
.glh-prem-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.glh-prem-head h2{font-size:18px!important;font-weight:800!important;color:#fff!important;margin:0!important}
.glh-prem-head p,.glh-prem-head .subtle{font-size:12px;color:#8892aa}
.glh-prem-link{border:none;background:none;color:#8db8ff;font-size:12px;font-weight:800;padding:0;cursor:pointer}
.glh-prem-link:hover{text-decoration:underline}

.glh-prem-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.glh-prem-action{background:none;border:none;color:#e8eaf0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0;cursor:pointer}
.glh-prem-action .ico{width:48px;height:48px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);display:flex;align-items:center;justify-content:center}
.glh-prem-action .ico i{font-size:22px}
.glh-prem-action .ico.green{color:#22c55e}.glh-prem-action .ico.red{color:#e05050}.glh-prem-action .ico.blue{color:#60a5fa}.glh-prem-action .ico.purple{color:#a88ef0}.glh-prem-action .ico.gold,.glh-prem-action .ico.amber{color:#f0a500}
.glh-prem-action span:last-child{font-size:12px;font-weight:600}

.glh-prem-tabs{display:inline-flex;gap:8px;padding:4px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09)}
.glh-prem-tabs button{border:none;background:none;color:#8892aa;font-size:12px;font-weight:800;padding:8px 14px;border-radius:999px;cursor:pointer}
.glh-prem-tabs button.is-active{background:rgba(255,255,255,.08);color:#fff}

.glh-prem-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.glh-prem-metric{background:rgba(13,24,40,.55);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:12px}
.glh-prem-metric label{display:block;font-size:12px;color:#8892aa;font-weight:700}
.glh-prem-metric strong{display:block;margin-top:6px;font-size:18px;font-weight:900;color:#fff}
.glh-prem-metric .dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px}
.glh-prem-metric .dot.red{background:#e05050}.glh-prem-metric .dot.green{background:#22c55e}.glh-prem-metric .dot.blue{background:#60a5fa}

.glh-prem-chart-wrap{position:relative;height:270px;min-width:0}
.glh-prem-chart-wrap canvas,.glh-prem-ref-chart canvas,.glh-prem-donut canvas{width:100%!important;height:100%!important;display:block}
.glh-prem-tooltip{position:absolute;min-width:210px;background:rgba(17,28,53,.95);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:10px 12px;box-shadow:0 16px 50px rgba(0,0,0,.45);pointer-events:none;opacity:0;transform:translate(-50%,-105%);transition:opacity .14s ease;z-index:3}
.glh-prem-tooltip.on{opacity:1}
.glh-prem-tooltip h4{margin:0 0 8px;font-size:12px;color:#fff}
.glh-prem-tooltip div{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#e8eaf0;padding:2px 0}

.glh-prem-grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.glh-prem-stat{background:rgba(17,28,53,.76);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px;min-height:90px;display:flex;flex-direction:column;justify-content:space-between}
.glh-prem-stat small{font-size:12px;color:#8892aa;font-weight:700}
.glh-prem-stat strong{font-size:20px;color:#fff;font-weight:900}

.glh-prem-split{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);gap:12px;align-items:start}
.glh-prem-txn-list{display:flex;flex-direction:column;gap:10px}
.glh-prem-txn-row{width:100%;background:rgba(13,24,40,.55);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:12px;display:flex;align-items:center;gap:12px;text-align:left;color:inherit}
.glh-prem-txn-row .tx-ico{width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.glh-prem-txn-row .tx-ico.green{color:#22c55e}.glh-prem-txn-row .tx-ico.red{color:#e05050}.glh-prem-txn-row .tx-ico.blue{color:#60a5fa}.glh-prem-txn-row .tx-ico.gold{color:#f0a500}.glh-prem-txn-row .tx-ico.purple{color:#a88ef0}
.glh-prem-txn-row .tx-mid{flex:1;min-width:0;display:flex;flex-direction:column}
.glh-prem-txn-row .tx-title{font-size:13px;font-weight:800;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.glh-prem-txn-row .tx-sub{font-size:11.5px;color:#8892aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.glh-prem-txn-row .tx-right{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}
.glh-prem-txn-row .tx-right strong{font-size:13px;font-weight:900}.glh-prem-txn-row .tx-right strong.green{color:#22c55e}.glh-prem-txn-row .tx-right strong.red{color:#e05050}
.glh-prem-txn-row .tx-right span{font-size:11px;color:#8892aa}
.glh-prem-txn-more{display:none;margin-top:10px;background:rgba(10,14,26,.55);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:10px 12px}
.glh-prem-txn.open .glh-prem-txn-more{display:block}
.glh-prem-txn-more div{display:flex;justify-content:space-between;gap:12px;padding:3px 0}
.glh-prem-txn-more span{font-size:12px;color:#8892aa}.glh-prem-txn-more strong{font-size:12px;color:#e8eaf0}

.glh-prem-ref-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.glh-prem-ref-grid div{background:rgba(13,24,40,.55);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:12px}
.glh-prem-ref-grid small{display:block;font-size:12px;color:#8892aa}.glh-prem-ref-grid strong{display:block;margin-top:6px;color:#fff;font-size:16px}
.glh-prem-ref-btn{width:100%;margin-top:12px;border:none;border-radius:14px;padding:12px;background:linear-gradient(90deg,#f0a500,#d98d00);color:#131b30;font-weight:900}
.glh-prem-ref-chart,.glh-prem-donut{height:200px;margin-top:12px;min-width:0}

.glh-prem-ai-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.glh-prem-ai-grid div{background:rgba(13,24,40,.55);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:12px}
.glh-prem-ai-grid small{display:block;font-size:12px;color:#8892aa}.glh-prem-ai-grid strong{display:block;margin-top:6px;color:#fff;font-size:15px}

.glh-prem-txn-modal{display:grid;gap:8px}
.glh-prem-txn-modal .row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.glh-prem-txn-modal .row:last-child{border-bottom:none}
.glh-prem-txn-modal span{font-size:12px;color:#8892aa}
.glh-prem-txn-modal strong{font-size:13px;color:#fff;text-align:right;max-width:58%;word-break:break-word;overflow-wrap:anywhere}

@media(max-width:860px){
  .glh-prem-split{grid-template-columns:1fr}
}
@media(max-width:640px){
  .glh-prem-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .glh-prem-metrics,.glh-prem-grid4,.glh-prem-ref-grid,.glh-prem-ai-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .glh-prem-head{align-items:flex-start}
  .glh-prem-tabs{width:100%;justify-content:space-between}
  .glh-prem-tabs button{flex:1;min-width:0;padding:8px 10px}
  .glh-prem-tooltip{min-width:190px;max-width:calc(100% - 20px)}
}
@media(max-width:480px){
  .glh-prem-metrics,.glh-prem-grid4,.glh-prem-ref-grid,.glh-prem-ai-grid{grid-template-columns:1fr}
  .glh-prem-txn-row{padding:10px;gap:10px}
  .glh-prem-txn-row .tx-title,.glh-prem-txn-row .tx-sub{white-space:normal}
  .glh-prem-txn-row .tx-right{min-width:84px}
  #glhTxnDetailModal .glh-modal{max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow-y:auto}
  .glh-prem-txn-modal .row{flex-direction:column;align-items:flex-start;gap:4px}
  .glh-prem-txn-modal strong{max-width:100%;text-align:left}
  #glhTxnDetailModal .glh-flow-actions{flex-direction:column;align-items:stretch}
  #glhTxnDetailModal .glh-flow-actions button{width:100%}
}

/* ============================================================
   LIGHT MODE — premium dashboard layer
   ============================================================ */
body.glh-light .glh-wrap.glh-premium-on #glhHero{border-color:#e2e8f0!important;box-shadow:0 18px 60px rgba(30,41,59,.08)!important}
body.glh-light .glh-prem-card{background:#ffffff!important;border-color:#e2e8f0!important;box-shadow:0 8px 30px rgba(30,41,59,.06)!important}
body.glh-light .glh-prem-head h2{color:#1a2233!important}
body.glh-light .glh-prem-head p,body.glh-light .glh-prem-head .subtle{color:#64748b!important}
body.glh-light .glh-prem-link{color:#3a7bd5!important}
body.glh-light .glh-prem-action{color:#334155!important}
body.glh-light .glh-prem-action .ico{background:#eef3fc!important;border-color:#dce6f7!important}
body.glh-light .glh-prem-tabs{background:#eef3fc!important;border-color:#dce6f7!important}
body.glh-light .glh-prem-tabs button{color:#64748b!important}
body.glh-light .glh-prem-tabs button.is-active{background:#ffffff!important;color:#3a7bd5!important;box-shadow:0 1px 4px rgba(30,41,59,.1)!important}
body.glh-light .glh-prem-metric{background:#f8fafc!important;border-color:#e2e8f0!important}
body.glh-light .glh-prem-metric label{color:#64748b!important}
body.glh-light .glh-prem-metric strong{color:#1a2233!important}
body.glh-light .glh-prem-tooltip{background:#ffffff!important;border-color:#e2e8f0!important;box-shadow:0 16px 50px rgba(30,41,59,.15)!important}
body.glh-light .glh-prem-tooltip h4{color:#1a2233!important}
body.glh-light .glh-prem-tooltip div{color:#334155!important}
body.glh-light .glh-prem-stat{background:#ffffff!important;border-color:#e2e8f0!important}
body.glh-light .glh-prem-stat small{color:#64748b!important}
body.glh-light .glh-prem-stat strong{color:#1a2233!important}
body.glh-light .glh-prem-txn-row{background:#f8fafc!important;border-color:#e2e8f0!important}
body.glh-light .glh-prem-txn-row .tx-ico{background:#eef3fc!important}
body.glh-light .glh-prem-txn-row .tx-title{color:#1a2233!important}
body.glh-light .glh-prem-txn-row .tx-sub{color:#64748b!important}
body.glh-light .glh-prem-txn-row .tx-right span{color:#64748b!important}
body.glh-light .glh-prem-txn-more{background:#f1f5fb!important;border-color:#e2e8f0!important}
body.glh-light .glh-prem-txn-more span{color:#64748b!important}
body.glh-light .glh-prem-txn-more strong{color:#1a2233!important}
body.glh-light .glh-prem-ref-grid div{background:#f8fafc!important;border-color:#e2e8f0!important}
body.glh-light .glh-prem-ref-grid small{color:#64748b!important}
body.glh-light .glh-prem-ref-grid strong{color:#1a2233!important}
body.glh-light .glh-prem-ai-grid div{background:#f8fafc!important;border-color:#e2e8f0!important}
body.glh-light .glh-prem-ai-grid small{color:#64748b!important}
body.glh-light .glh-prem-ai-grid strong{color:#1a2233!important}
body.glh-light .glh-prem-txn-modal .row{border-bottom-color:#e2e8f0!important}
body.glh-light .glh-prem-txn-modal span{color:#64748b!important}
body.glh-light .glh-prem-txn-modal strong{color:#1a2233!important}
