
/* SG365 Client UI v2.0 */

:root{
  --sg365-primary:#4f7cff;
  --sg365-sidebar-bg:#0b1220;
  --sg365-card-bg:#ffffff;
  --sg365-text:#0b1220;
  --sg365-page-bg:#f5f7ff;
  --sg365-content-bg:#ffffff;
  --sg365-main-text:#0b1220;
  --sg365-sidebar-text:#e8eefc;
  --sg365-radius:16px;
  --sg365-shadow:18;
  --sg365-overlay:0.18;
}

.sg365-ui-account body,
body.sg365-ui-account{
  background: var(--sg365-page-bg);
  color: var(--sg365-main-text);
}

.sg365-shell{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  display:grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  overflow:visible;
}

body.sg365-ui-sidebar-right .sg365-shell{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  grid-template-columns: 1fr 280px;
}

.sg365-sidebar{
  background: var(--sg365-sidebar-bg);
  padding: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow:auto;
  border-right: 1px solid rgba(255,255,255,0.06);
}
body.sg365-ui-sidebar-right .sg365-sidebar{
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.sg365-sidebar__brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px 10px 16px 10px;
}
.sg365-brand__logo{
  width:40px;height:40px;border-radius:14px;
  background: rgba(255,255,255,0.08);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;
}
.sg365-brand__title{font-weight:700;}
.sg365-brand__sub{opacity:.7;font-size:12px;margin-top:2px;}

.sg365-nav{list-style:none;margin:0;padding:8px 0;display:flex;flex-direction:column;gap:4px;}
.sg365-nav a{
  display:flex;align-items:center;gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--sg365-sidebar-text);
  text-decoration:none;
  transition: background .15s ease, transform .15s ease;
  position:relative;
}
.sg365-nav a:hover{ background: rgba(255,255,255,0.06); transform: translateY(-1px);}
.sg365-nav a.is-active{ background: rgba(79,124,255,0.20); color: #fff; }
.sg365-nav .sg365-badge{
  margin-left:auto;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.sg365-ico, .dashicons, .sg365-svg img, .sg365-svg-inline svg, .sg365-nav i{
  width:18px;height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.sg365-svg img{width:18px;height:18px;object-fit:contain;filter: drop-shadow(0 0 0 rgba(0,0,0,0));}
.sg365-svg-inline svg{width:18px;height:18px;display:block;}

.sg365-brand__logo-img{max-width:28px;max-height:28px;display:block;}
.sg365m-bell__badge.is-hidden{display:none !important;}

.sg365-main{
  padding: 20px 22px 28px 22px;
  max-width: 1400px;
  width: 100%;
}

.sg365-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--sg365-radius);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(17,24,39,0.08);
  box-shadow: 0 12px calc(var(--sg365-shadow) * 1px) rgba(17,24,39,0.10);
  margin-bottom: 16px;
}
body.sg365-header-sticky .sg365-topbar{
  position: sticky;
  top: 10px;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.sg365-topbar__left{display:flex;align-items:center;gap:12px;}
#sg365-hamburger{
  display:none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--sg365-main-text);
  cursor:pointer;
}
#sg365-collapse{
  display:inline-flex;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--sg365-main-text);
  cursor:pointer;
}
.sg365-titlewrap{display:flex;flex-direction:column;gap:2px;}
#sg365-page-title{font-weight:800;font-size:16px;line-height:1.2;}
.sg365-topbar__subtitle{opacity:.75;font-size:12px;}

.sg365-topbar__right{display:flex;align-items:center;gap:10px;}

/* SG365 Management (plugin) — bell + search integration */
.sg365-topbar__bell{display:flex;align-items:center;}
.sg365-topbar__bell .sg365m-bell{margin-left:2px;}
.sg365-topbar__bell .dashicons{font-size:18px;width:18px;height:18px;line-height:18px;opacity:.9;}

/* Make plugin dropdown look native in the theme topbar */
.sg365-topbar__right .sg365m-bell__panel{backdrop-filter:saturate(180%) blur(10px);}
.sg365-search{
  display:flex;align-items:center;gap:8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  min-width: 220px;
}
.sg365-search__input{
  background: transparent;
  border: none;
  outline: none;
  color: var(--sg365-main-text);
  width: 100%;
}
.sg365-userchip{
  display:flex;align-items:center;gap:8px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.sg365-userchip img{width:28px;height:28px;border-radius:999px;}

.sg365-content{
  background: var(--sg365-content-bg);
  border-radius: var(--sg365-radius);
  border: 1px solid rgba(17,24,39,0.08);
  box-shadow: 0 12px calc(var(--sg365-shadow) * 1px) rgba(17,24,39,0.08);
  padding: 18px;
  overflow: visible; /* allow chart tooltips */
}

/* ===== Page components (cards, tables, badges) ===== */
.sg365-pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 14px;}
.sg365-pagehead h2{margin:0;font-size:28px;line-height:1.15;letter-spacing:-0.02em;}
.sg365-pagehead p{margin:6px 0 0;opacity:.72;}
.sg365-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}

.sg365-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px;}
.sg365-col-3{grid-column:span 3;}
.sg365-col-4{grid-column:span 4;}
.sg365-col-6{grid-column:span 6;}
.sg365-col-12{grid-column:span 12;}

.sg365-card{background:var(--sg365-card-bg);border:1px solid rgba(17,24,39,0.08);border-radius:18px;box-shadow:0 10px 30px rgba(17,24,39,0.06);padding:14px;}
.sg365-card--soft{background:linear-gradient(180deg, rgba(79,124,255,0.08), rgba(255,255,255,0.8));}
.sg365-card__row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.sg365-card__title{font-weight:700;}
.sg365-card__value{font-size:22px;font-weight:800;letter-spacing:-0.02em;margin-top:6px;}
.sg365-card__meta{margin-top:4px;font-size:12px;opacity:.72;}

.sg365-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid rgba(17,24,39,0.10);background:rgba(17,24,39,0.04);}
.sg365-pill--ok{background:rgba(16,185,129,0.12);border-color:rgba(16,185,129,0.20);color:#0b6b46;}
.sg365-pill--warn{background:rgba(245,158,11,0.12);border-color:rgba(245,158,11,0.22);color:#7a4a00;}
.sg365-pill--info{background:rgba(79,124,255,0.12);border-color:rgba(79,124,255,0.22);color:#1e3a8a;}

.sg365-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:999px;border:1px solid rgba(17,24,39,0.12);background:#fff;color:var(--sg365-main-text);text-decoration:none;cursor:pointer;}
.sg365-btn:hover{box-shadow:0 10px 30px rgba(17,24,39,0.10);transform:translateY(-1px);}
.sg365-btn--primary{
  background: linear-gradient(90deg, rgba(79,124,255,1), rgba(0,217,130,1)) !important;
  box-shadow: 0 20px 60px rgba(0,217,130,.16) !important;
}
.sg365-btn--ghost{background:rgba(255,255,255,0.75);}

.sg365-section{margin-top:16px;}
.sg365-section__title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;}
.sg365-section__title h3{margin:0;font-size:18px;}

.sg365-table-wrap{overflow:auto;-webkit-overflow-scrolling:touch;}
.sg365-table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px;}
.sg365-table th{font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.72;text-align:left;padding:12px 12px;border-bottom:1px solid rgba(17,24,39,0.10);}
.sg365-table td{padding:12px;border-bottom:1px solid rgba(17,24,39,0.08);vertical-align:middle;}
.sg365-table tr:last-child td{border-bottom:none;}
.sg365-table .sg365-muted{opacity:.72;}

@media (max-width: 1024px){
  .sg365-col-3{grid-column:span 6;}
  .sg365-col-4{grid-column:span 12;}
  .sg365-col-6{grid-column:span 12;}
  .sg365-table{min-width: 680px;}
}

@media (max-width: 640px){
  .sg365-col-3{grid-column:span 12;}
  .sg365-table{min-width: 640px;}
}
.sg365-content.is-fading{
  opacity: .55;
  filter: blur(0.2px);
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}

/* Collapse desktop */
.sg365-shell.sg365-sidebar-collapsed{
  grid-template-columns: 86px 1fr;
}
body.sg365-ui-sidebar-right .sg365-shell.sg365-sidebar-collapsed{
  grid-template-columns: 1fr 86px;
}
.sg365-shell.sg365-sidebar-collapsed .sg365-brand__text,
.sg365-shell.sg365-sidebar-collapsed .sg365-nav span.sg365-nav__label,
.sg365-shell.sg365-sidebar-collapsed .sg365-nav .sg365-badge{
  display:none;
}
.sg365-shell.sg365-sidebar-collapsed .sg365-nav a{justify-content:center;}
.sg365-shell.sg365-sidebar-collapsed .sg365-sidebar{padding:16px 10px;}

/* Overlay for mobile */
.sg365-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
  z-index: 56;
}

/* prevent background scroll when mobile menu open */
body.sg365-ui-mobilemenu-open{overflow:hidden;}

/* Mobile / Tablet responsive */
@media (max-width: 1024px){
  .sg365-shell{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    grid-template-columns: 1fr;
  }
  .sg365-sidebar{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 290px;
    transform: translate3d(-105%,0,0);
    transition: transform .22s ease;
    will-change: transform;
    z-index: 90;
  }
  body.sg365-ui-sidebar-right .sg365-sidebar{
    left: auto; right: 0;
    transform: translate3d(105%,0,0);
  }
  #sg365-hamburger{display:inline-flex;}
  #sg365-collapse{display:none;}
  .sg365-main{padding: 14px;}
  .sg365-search{display:none;}
  .sg365-shell.sg365-sidebar-open .sg365-sidebar{
    transform: translate3d(0,0,0);
  }
  .sg365-shell.sg365-sidebar-open + .sg365-overlay,
  .sg365-shell.sg365-sidebar-open ~ .sg365-overlay{
    opacity:1; pointer-events:auto;
  }
}

/* Density */
body.sg365-density-compact .sg365-content{padding: 14px;}
body.sg365-density-compact .sg365-nav a{padding: 9px 10px; border-radius: 12px;}

/* Tables redesign */
.sg365-table-card{
  border-radius: var(--sg365-radius);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  padding: 10px;
  margin: 12px 0;
}
.sg365-table-scroll{overflow:auto;}
.sg365-table-card table{
  width: 100%;
  border-collapse: collapse;
}
.sg365-table-card th, .sg365-table-card td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align:left;
}
.sg365-table-card th{opacity:.85;font-weight:700;}
.sg365-table-card tr:nth-child(even) td{background: rgba(255,255,255,0.02);}

.sg365-badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.10);
}
.sg365-badge.is-green{background: rgba(43,199,112,0.16); border-color: rgba(43,199,112,0.35);}
.sg365-badge.is-orange{background: rgba(255,170,51,0.16); border-color: rgba(255,170,51,0.35);}
.sg365-badge.is-red{background: rgba(255,78,78,0.16); border-color: rgba(255,78,78,0.35);}
.sg365-badge.is-blue{background: rgba(79,124,255,0.16); border-color: rgba(79,124,255,0.35);}

/* Chart compatibility */
.sg365-content canvas,
.sg365-content svg,
.sg365-content img{
  max-width: 100% !important;
  height: auto;
}
.sg365-content .apexcharts-canvas{max-width:100%;}
.sg365-content .chartjs-render-monitor{max-width:100%;}

/* Loader */
#sg365-loader{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,var(--sg365-overlay));
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease;
  z-index: 120;
}
#sg365-loader.is-visible{opacity:1; pointer-events:auto;}
.sg365-loader-box{
  background: rgba(15,26,45,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 18px 18px;
  min-width: 120px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.sg365-loader{display:none !important;}
#sg365-loader[data-style="spinner"] .sg365-loader.spinner{display:block !important;}
#sg365-loader[data-style="dots"] .sg365-loader.dots{display:block !important;}
#sg365-loader[data-style="bar"] .sg365-loader.bar{display:block !important;}
#sg365-loader[data-style="run"] .sg365-loader.run{display:block !important;}
#sg365-loader[data-style="fade"] .sg365-loader.fade{display:block !important;}

.sg365-loader.spinner{
  width:28px;height:28px;
  border-radius:50%;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--sg365-primary);
  animation: sg365spin 0.85s linear infinite;
}
@keyframes sg365spin{to{transform: rotate(360deg);}}

/* Dots */
.sg365-loader.dots{
  display:flex;gap:6px;
}
.sg365-loader.dots span{
  width:7px;height:7px;border-radius:999px;
  background: rgba(255,255,255,0.35);
  animation: sg365dots 0.9s ease-in-out infinite;
}
.sg365-loader.dots span:nth-child(2){animation-delay: .12s;}
.sg365-loader.dots span:nth-child(3){animation-delay: .24s;}
@keyframes sg365dots{
  0%,100%{transform: translateY(0); opacity:.45}
  50%{transform: translateY(-6px); opacity:1}
}

/* Bar */
.sg365-loader.bar{
  width: 140px;
  height: 8px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow:hidden;
}
.sg365-loader.bar::before{
  content:"";
  display:block;
  height:100%;
  width:40%;
  background: var(--sg365-primary);
  border-radius: 999px;
  animation: sg365bar 0.9s ease-in-out infinite;
}
@keyframes sg365bar{
  0%{transform: translateX(-120%);}
  100%{transform: translateX(260%);}
}

/* Running man (simple) */
.sg365-loader.run{
  font-weight:800;
  letter-spacing: .04em;
  color: var(--sg365-sidebar-text);
}
.sg365-loader.run::before{
  content:"🏃";
  display:inline-block;
  margin-right: 8px;
  animation: sg365run 0.7s ease-in-out infinite;
}
@keyframes sg365run{
  0%,100%{transform: translateX(0);}
  50%{transform: translateX(10px);}
}

/* Fade */
.sg365-loader.fade{
  width: 110px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  animation: sg365fade 0.9s ease-in-out infinite;
}
@keyframes sg365fade{
  0%,100%{opacity:.35;}
  50%{opacity:1;}
}

/* Woo content cleanup */
.woocommerce .woocommerce-MyAccount-navigation{display:none;} /* we render our own nav */
.woocommerce .woocommerce-MyAccount-content{float:none;width:100%;}

/* Responsive safety */
.sg365-main, .sg365-content{ min-width:0; }
.sg365-content *{ box-sizing:border-box; }
.sg365-card, .woocommerce-MyAccount-content{ overflow-wrap:anywhere; }
.sg365-card table, .woocommerce-MyAccount-content table{ width:100%; }
.sg365-card table{ border-collapse:collapse; }
.sg365-card .shop_table, .woocommerce-MyAccount-content .shop_table{ display:block; overflow:auto; -webkit-overflow-scrolling:touch; }
@media (max-width: 860px){
  .sg365-shell{ flex-direction:column; }
  .sg365-sidebar{ position:relative; top:auto; height:auto; }
}


/* ===========================
   SG365 Premium Auth (Guest)
   =========================== */
.sg365-auth{
  min-height: 78vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 34px 14px;
  background:
    radial-gradient(1200px 420px at 18% 12%, rgba(79,124,255,.20), transparent 60%),
    radial-gradient(900px 380px at 80% 0%, rgba(0,217,130,.16), transparent 55%),
    radial-gradient(900px 520px at 50% 100%, rgba(0,0,0,.06), transparent 55%),
    linear-gradient(180deg, #f5f7ff, #ffffff);
}
.sg365-auth-card{
  width: min(960px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.86);
  box-shadow: 0 24px 90px rgba(16,24,40,.12);
  overflow:hidden;
  position:relative;
  padding: 0;
}
.sg365-auth-card:before{
  content:"";
  position:absolute; inset:-1px;
  background: linear-gradient(135deg, rgba(79,124,255,.65), rgba(0,217,130,.45), rgba(255,255,255,0));
  opacity:.22;
  pointer-events:none;
}
.sg365-auth-card.is-shake{ animation: sg365-shake .5s; }
@keyframes sg365-shake{
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.sg365-auth-brand{ padding: 26px 26px 12px; position:relative; z-index:1; }
.sg365-auth-small{ font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity:.7; margin-bottom: 6px; }
.sg365-auth-title__brand{
  display:inline-block;
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(90deg, #4f7cff, #00d982);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  line-height: 1.05;
}
.sg365-auth-sub{ opacity:.78; margin-top: 8px; max-width: 52ch; }

.sg365-auth-switch{
  display:flex;
  gap:10px;
  padding: 0 26px 14px;
  position:relative;
  z-index:1;
  flex-wrap:wrap;
}
.sg365-auth-pill{
  border:1px solid rgba(16,24,40,.12);
  background: rgba(255,255,255,.70);
  border-radius: 999px;
  padding: 10px 14px;
  cursor:pointer;
  font-weight:800;
  transition: transform .14s ease, box-shadow .14s ease;
}
.sg365-auth-pill:hover{ transform: translateY(-1px); }
.sg365-auth-pill.is-active{
  border-color: rgba(0,217,130,.42) !important;
  box-shadow: 0 12px 30px rgba(0,217,130,.14) !important;
}
.sg365-auth-panels{ padding: 0 26px 26px; position:relative; z-index:1; }
.sg365-auth-panel{ display:none; }
.sg365-auth-panel.is-active{ display:block; animation: sg365-fadeUp .22s ease both; }
@keyframes sg365-fadeUp{ from{ opacity:0; transform: translateY(10px);} to{opacity:1; transform: translateY(0);} }

.sg365-auth-form{ max-width: 520px; }
.sg365-fieldx{ margin: 14px 0; position:relative; }
.sg365-fieldx label{ display:block; font-weight:800; margin-bottom: 7px; }
.sg365-fieldx input{
  width:100%;
  border-radius: 18px;
  border:1px solid rgba(16,24,40,.10);
  padding: 14px 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 26px rgba(16,24,40,.06);
  outline:none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sg365-fieldx input:focus{
  border-color: rgba(79,124,255,.55);
  box-shadow: 0 16px 38px rgba(79,124,255,.16);
  transform: translateY(-1px);
}
.sg365-fieldx__fx{
  pointer-events:none;
  position:absolute;
  left: 14px; right: 14px; bottom: -7px; height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79,124,255,.75), rgba(0,217,130,.55));
  filter: blur(10px);
  opacity: 0;
  transition: opacity .22s ease;
}
.sg365-fieldx.is-active .sg365-fieldx__fx{ opacity: .75; }

.sg365-check{ display:flex; gap:10px; align-items:center; opacity:.85; margin: 8px 0 2px; }
.sg365-check input{ width: 18px; height: 18px; }

.sg365-auth-actions{ margin-top: 16px; }
.sg365-btn{
  width:100%;
  border:none;
  border-radius: 18px;
  padding: 14px 16px;
  cursor:pointer;
  font-weight:900;
  position:relative;
  overflow:hidden;
}
.sg365-btn--primary{
  background: linear-gradient(90deg, rgba(79,124,255,1), rgba(0,217,130,1)) !important;
  box-shadow: 0 20px 60px rgba(0,217,130,.16) !important;
}
.sg365-btn__spark{
  position:absolute; inset:-2px;
  background: radial-gradient(600px 120px at 10% 50%, rgba(255,255,255,.45), transparent 55%),
              radial-gradient(420px 100px at 90% 50%, rgba(255,255,255,.28), transparent 60%);
  opacity: .65;
  transform: translateX(-14%);
  transition: transform .50s ease;
}
.sg365-btn:hover .sg365-btn__spark{ transform: translateX(12%); }
.sg365-btn.is-loading{ opacity:.9; pointer-events:none; }

.sg365-auth-links{ margin-top: 12px; }
.sg365-link{
  background:none; border:none; padding:0; cursor:pointer;
  color: inherit; text-decoration: underline; opacity: .85;
  font-weight: 700;
}
.sg365-auth-msg{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border:1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.92);
  display:none;
  font-weight: 700;
}
.sg365-auth-msg.is-error{ display:block; border-color: rgba(255,0,0,.18); }
.sg365-auth-msg.is-success{ display:block; border-color: rgba(0,217,130,.25); }

@media(max-width: 640px){
  .sg365-auth-brand, .sg365-auth-switch, .sg365-auth-panels{ padding-left: 16px; padding-right: 16px; }
  .sg365-auth-title__brand{ font-size: 28px; }
  .sg365-auth-form{ max-width: 100%; }
}

/* ===========================
   Premium Woo My Account Content
   =========================== */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.woocommerce-MyAccount-content p{ opacity:.88; }
.woocommerce-MyAccount-content .woocommerce-Message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-error{
  border-radius: 18px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(16,24,40,.06);
  padding: 14px 14px 14px 44px;
  margin: 0 0 16px;
}
.woocommerce-MyAccount-content .woocommerce-error{ border-color: rgba(255,0,0,.18); }
.woocommerce-MyAccount-content .woocommerce-message{ border-color: rgba(0,217,130,.24); }

.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button,
.woocommerce-MyAccount-content input[type="submit"]{
  border:none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  cursor:pointer;
  background: linear-gradient(90deg, #4f7cff, #00d982);
  color:#fff;
  box-shadow: 0 14px 40px rgba(79,124,255,.18);
}
.woocommerce-MyAccount-content .button:hover{ transform: translateY(-1px); }

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="url"],
.woocommerce-MyAccount-content textarea,
.woocommerce-MyAccount-content select{
  width:100%;
  border-radius: 16px;
  border:1px solid rgba(16,24,40,.10);
  padding: 12px 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 22px rgba(16,24,40,.05);
  outline:none;
}
.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content textarea:focus,
.woocommerce-MyAccount-content select:focus{
  border-color: rgba(79,124,255,.55);
  box-shadow: 0 14px 34px rgba(79,124,255,.14);
}

.woocommerce-MyAccount-content table{
  border-collapse: separate;
  border-spacing: 0;
  overflow:hidden;
  border-radius: 18px;
  border:1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 40px rgba(16,24,40,.06);
}
.woocommerce-MyAccount-content table th{
  text-align:left;
  font-weight: 900;
  background: rgba(245,247,255,.8);
  border-bottom: 1px solid rgba(16,24,40,.08);
  padding: 12px;
}
.woocommerce-MyAccount-content table td{
  padding: 12px;
  border-bottom: 1px solid rgba(16,24,40,.06);
  vertical-align: middle;
}
.woocommerce-MyAccount-content table tr:last-child td{ border-bottom: none; }

/* ===========================
   Report Issue / Modal Premium Skin (generic selectors)
   =========================== */
.sg365-modal, .sg365-popup, .sg365-dialog,
.sg365m-modal, .sg365m-popup, .sg365m-dialog,
.sg365-report-modal, .sg365-report-popup{
  border-radius: 22px !important;
  border: 1px solid rgba(16,24,40,.12) !important;
  background: rgba(255,255,255,.95) !important;
  box-shadow: 0 26px 90px rgba(16,24,40,.18) !important;
  overflow:hidden;
}
.sg365-modal__header, .sg365-popup__header,
.sg365m-modal__header, .sg365m-popup__header{
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(79,124,255,.10), rgba(0,217,130,.08));
  border-bottom: 1px solid rgba(16,24,40,.08);
  font-weight: 900;
}
.sg365-modal__body, .sg365-popup__body,
.sg365m-modal__body, .sg365m-popup__body{
  padding: 18px;
}
.sg365-modal__footer, .sg365-popup__footer,
.sg365m-modal__footer, .sg365m-popup__footer{
  padding: 16px 18px;
  border-top: 1px solid rgba(16,24,40,.08);
  background: rgba(245,247,255,.6);
}

/* ===== SG365 Brand ===== */
.sg365-auth-title__brand{
  font-weight: 1000;
  background: none !important;
  color: #0b1220 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.sg365-auth-title__brand:after{
  content:"";
  display:block;
  height: 6px;
  width: 110px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79,124,255,1), rgba(0,217,130,1));
  box-shadow: 0 14px 44px rgba(0,217,130,.18);
}
.sg365-auth-small{ color:#0b1220; opacity:.8; }
.sg365-btn--primary{
  background: linear-gradient(90deg, rgba(79,124,255,1), rgba(0,217,130,1)) !important;
  box-shadow: 0 20px 60px rgba(0,217,130,.16) !important;
}
.sg365-auth-pill.is-active{
  border-color: rgba(0,217,130,.42) !important;
  box-shadow: 0 12px 30px rgba(0,217,130,.14) !important;
}

/* ===== SG365 Mobile Sidebar Fix ===== */
@media (max-width: 1024px){
  .sg365-sidebar{
    transform: translate3d(-105%,0,0) !important;
  }
  body.sg365-ui-sidebar-right .sg365-sidebar{
    transform: translate3d(105%,0,0) !important;
  }
  .sg365-shell.sg365-sidebar-open .sg365-sidebar{
    transform: translate3d(0,0,0) !important;
  }
}

/* ===== SG365 Account Tabs Premium ===== */
.woocommerce-MyAccount-navigation ul{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.woocommerce-MyAccount-navigation li{
  margin: 0 !important;
}
.woocommerce-MyAccount-navigation a{
  padding: 10px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(16,24,40,.10) !important;
  background: rgba(255,255,255,.72) !important;
  font-weight: 900 !important;
  text-decoration:none !important;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.woocommerce-MyAccount-navigation a:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(16,24,40,.10);
}
.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation li.is-active a{
  border-color: rgba(79,124,255,.45) !important;
  box-shadow: 0 14px 40px rgba(79,124,255,.16) !important;
}

/* ===== SG365 Home Dashboard (Stripe-ish) ===== */
.sg365-home__kicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: 6px;
  font-weight: 900;
}
.sg365-home__title{
  margin: 0;
  font-weight: 1000;
  letter-spacing: -0.03em;
  font-size: 28px;
}
.sg365-home__sub{ margin: 8px 0 0; opacity:.82; max-width: 62ch; }
.sg365-home__head{
  display:flex;
  gap: 16px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom: 16px;
}
.sg365-home__quick{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.sg365-quick{
  display:block;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.80);
  text-decoration:none;
  box-shadow: 0 14px 40px rgba(16,24,40,.06);
  min-width: 170px;
}
.sg365-quick__label{ display:block; font-weight: 1000; }
.sg365-quick__meta{ display:block; opacity:.72; font-weight: 700; margin-top: 2px; }
.sg365-quick:hover{ transform: translateY(-1px); }

.sg365-home__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}
@media(max-width: 900px){ .sg365-home__grid{ grid-template-columns: 1fr; } }

.sg365-kpi{
  border-radius: 22px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 60px rgba(16,24,40,.08);
  padding: 16px;
  overflow:hidden;
  position:relative;
}
.sg365-kpi__label{ opacity:.7; font-weight: 900; }
.sg365-kpi__value{ font-size: 32px; font-weight: 1000; letter-spacing:-0.03em; margin-top: 8px; }
.sg365-kpi__bar{
  position:absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: linear-gradient(90deg, rgba(79,124,255,.75), rgba(0,217,130,.55));
  opacity: .85;
}

.sg365-home__stripe{ margin-top: 14px; }
.sg365-stripe{
  border-radius: 22px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 60px rgba(16,24,40,.08);
  padding: 16px;
}
.sg365-stripe__title{ font-weight: 1000; }
.sg365-stripe__sub{ opacity:.75; margin-top: 4px; }
.sg365-stripe__chart{
  margin-top: 12px;
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(79,124,255,.08), rgba(0,217,130,.06));
  position:relative;
  overflow:hidden;
}
.sg365-stripe__line{
  position:absolute; left: 12px; right: 12px; top: 18px; bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(11,18,32,.18), rgba(209,169,84,.22));
  opacity: .55;
  filter: blur(0.2px);
}
.sg365-stripe__dots{
  position:absolute; left: 14px; right: 14px; top: 50%;
  display:flex; justify-content:space-between; transform: translateY(-50%);
}
.sg365-stripe__dots span{
  width: 10px; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #0b1220, #d1a954);
  opacity: .85;
  box-shadow: 0 10px 28px rgba(11,18,32,.12);
}

/* ===== SG365 Woo Forms Cards ===== */
.woocommerce-MyAccount-content form{
  border-radius: 22px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 60px rgba(16,24,40,.07);
  padding: 16px;
}
.woocommerce-MyAccount-content .form-row{
  margin: 0 0 14px !important;
}
.woocommerce-MyAccount-content .form-row label{
  font-weight: 900;
  opacity: .85;
  margin-bottom: 6px;
  display:block;
}
.woocommerce-MyAccount-content fieldset{
  border-radius: 18px;
  border: 1px solid rgba(16,24,40,.10);
  padding: 14px;
}
.woocommerce-MyAccount-content legend{
  font-weight: 1000;
  padding: 0 8px;
}

/* ===== SG365 Mobile Drawer Below Header ===== */
@media (max-width: 1024px){
  :root{ --sg365-mobile-header-h: 74px; }
  .sg365-sidebar{
    top: var(--sg365-mobile-header-h) !important;
    height: calc(100vh - var(--sg365-mobile-header-h)) !important;
  }
  .sg365-backdrop{
    top: var(--sg365-mobile-header-h) !important;
    height: calc(100vh - var(--sg365-mobile-header-h)) !important;
  }
}

/* ===== SG365 Activity 30 days line ===== */
.sg365-activity-30{
  margin-top: 12px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(79,124,255,.08), rgba(0,217,130,.06));
  padding: 14px 14px 12px;
  position:relative;
  overflow:hidden;
}
.sg365-activity-30__line{
  position:absolute;
  left: 14px; right: 14px;
  top: 30px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(11,18,32,.18), rgba(209,169,84,.22));
  opacity: .55;
}
.sg365-activity-30__dots{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 6px;
  padding: 10px 0 8px;
}
.sg365-activity-30__dots span{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(11,18,32,.18);
  box-shadow: 0 10px 28px rgba(11,18,32,.10);
  opacity: .35;
}
.sg365-activity-30__dots span.is-on{
  background: linear-gradient(90deg, #0b1220, #d1a954);
  opacity: .95;
  transform: translateY(-1px);
}
.sg365-activity-30__meta{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  font-weight: 900;
  opacity: .78;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ===== SG365 Orders / Downloads / Addresses Templates ===== */
.sg365-pagehead{ margin: 0 0 14px; }
.sg365-cards{ display:flex; flex-direction:column; gap: 12px; }
.sg365-card{
  border-radius: 22px;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 60px rgba(16,24,40,.07);
  padding: 16px;
}
.sg365-btn-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, #0b1220, #d1a954);
  color:#fff;
  text-decoration:none;
  font-weight: 1000;
  border:none;
  cursor:pointer;
  box-shadow: 0 14px 40px rgba(11,18,32,.14);
}
.sg365-btn-mini--ghost{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,24,40,.10);
  color: #0b1220;
  box-shadow:none;
}

.sg365-ordercard__top{ display:flex; justify-content:space-between; gap: 12px; flex-wrap:wrap; }
.sg365-ordercard__kicker{ opacity:.65; font-weight: 900; letter-spacing:.08em; text-transform: uppercase; font-size: 12px; }
.sg365-ordercard__title{ font-weight: 1000; font-size: 18px; margin-top: 6px; }
.sg365-ordercard__meta{ opacity:.85; display:flex; flex-direction:column; gap: 4px; font-weight: 700; }
.sg365-ordercard__actions{ margin-top: 12px; display:flex; gap: 10px; flex-wrap:wrap; }

.sg365-downloadcard{ display:flex; justify-content:space-between; gap: 12px; align-items:center; flex-wrap:wrap; }
.sg365-downloadcard__title{ font-weight: 1000; font-size: 16px; }
.sg365-downloadcard__meta{ opacity:.8; margin-top: 6px; display:flex; gap: 10px; flex-wrap:wrap; font-weight: 700; }

.sg365-addrcard__top{ display:flex; justify-content:space-between; gap: 12px; align-items:flex-start; flex-wrap:wrap; }
.sg365-addrcard__title{ font-weight: 1000; font-size: 16px; }
.sg365-addrcard__desc{ opacity:.75; margin-top: 4px; }
.sg365-addrcard__body{ margin-top: 12px; }
.sg365-addrcard__addr{ font-weight: 800; opacity:.9; line-height:1.6; }

/* ===== SG365 Logs Table ===== */
.sg365-logs-table{ display:flex; flex-direction:column; gap: 8px; }
.sg365-logs-row{
  display:grid;
  grid-template-columns: 1.2fr 1.2fr 1.2fr .6fr;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(16,24,40,.08);
  background: rgba(255,255,255,.75);
  font-weight: 800;
  opacity: .92;
}
.sg365-logs-row--head{
  background: rgba(245,247,255,.85);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  opacity: .8;
}
@media(max-width: 700px){
  .sg365-logs-row{ grid-template-columns: 1fr; }
}

/* ===== SG365 Mobile Drawer FINAL ===== */
@media (max-width: 1024px){
  .sg365-shell{ position: relative; }
  .sg365-topbar{ position: sticky; top: 0; z-index: 950; }
  .sg365-sidebar{
    position: fixed !important;
    left: 0 !important;
    top: var(--sg365-mobile-header-h, 74px) !important;
    height: calc(100vh - var(--sg365-mobile-header-h, 74px)) !important;
    width: min(88vw, 340px) !important;
    padding-top: 0 !important;
    z-index: 1000 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.sg365-ui-sidebar-right .sg365-sidebar{
    left: auto !important;
    right: 0 !important;
  }
  .sg365-backdrop{
    position: fixed !important;
    left: 0; right:0;
    top: var(--sg365-mobile-header-h, 74px) !important;
    height: calc(100vh - var(--sg365-mobile-header-h, 74px)) !important;
    z-index: 900 !important;
  }
  body.sg365-ui-mobilemenu-open{
    overflow: hidden !important;
    touch-action: manipulation;
  }
}

/* ===== SG365 Custom Scrollbar ===== */
.sg365-sidebar, .sg365-main, .sg365-content{
  scrollbar-width: thin;
  scrollbar-color: rgba(209,169,84,.75) transparent;
}
.sg365-sidebar::-webkit-scrollbar,
.sg365-main::-webkit-scrollbar,
.sg365-content::-webkit-scrollbar{
  width: 6px;
  height: 6px;
}
.sg365-sidebar::-webkit-scrollbar-track,
.sg365-main::-webkit-scrollbar-track,
.sg365-content::-webkit-scrollbar-track{
  background: transparent;
}
.sg365-sidebar::-webkit-scrollbar-thumb,
.sg365-main::-webkit-scrollbar-thumb,
.sg365-content::-webkit-scrollbar-thumb{
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(11,18,32,.65), rgba(209,169,84,.85));
  box-shadow: 0 10px 24px rgba(11,18,32,.18);
}
.sg365-sidebar::-webkit-scrollbar-thumb:hover,
.sg365-main::-webkit-scrollbar-thumb:hover,
.sg365-content::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, rgba(11,18,32,.78), rgba(255,216,138,.92));
}

/* Slim indicator line on the extreme right (animated) */
.sg365-scroll-indicator{
  position: fixed;
  right: 6px;
  top: calc(var(--sg365-mobile-header-h, 0px) + 10px);
  width: 4px;
  height: calc(100vh - var(--sg365-mobile-header-h, 0px) - 20px);
  border-radius: 999px;
  background: rgba(11,18,32,.08);
  z-index: 120;
  pointer-events: none;
}
.sg365-scroll-indicator__thumb{
  position:absolute;
  left:0; right:0;
  top:0;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(11,18,32,.75), rgba(209,169,84,.95));
  box-shadow: 0 14px 36px rgba(11,18,32,.16);
  transition: transform .08s linear, height .08s linear;
}

/* SG365M Compatibility: unify Woo buttons inside account shell */
.sg365-shell .woocommerce a.button,
.sg365-shell .woocommerce button.button,
.sg365-shell .woocommerce input.button,
.sg365-shell .woocommerce #respond input#submit,
.sg365-shell .woocommerce a.button.alt,
.sg365-shell .woocommerce button.button.alt,
.sg365-shell .woocommerce input.button.alt,
.sg365-shell .woocommerce a.button-primary,
.sg365-shell .woocommerce button.button-primary,
.sg365-shell .woocommerce input.button-primary{
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(79,124,255,0.30);
  background: linear-gradient(135deg, var(--sg365-primary), #6b8bff);
  color: #fff;
  box-shadow: 0 12px 30px rgba(17,24,39,0.12);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-decoration: none;
}
.sg365-shell .woocommerce a.button:hover,
.sg365-shell .woocommerce button.button:hover,
.sg365-shell .woocommerce input.button:hover,
.sg365-shell .woocommerce #respond input#submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(17,24,39,0.16);
  filter: brightness(1.02);
}
.sg365-shell .woocommerce a.button:disabled,
.sg365-shell .woocommerce button.button:disabled,
.sg365-shell .woocommerce input.button:disabled{
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Secondary buttons */
.sg365-shell .woocommerce a.button:not(.alt):not(.button-primary):not(.checkout),
.sg365-shell .woocommerce button.button:not(.alt):not(.button-primary):not(.checkout){
  background: rgba(255,255,255,0.85);
  color: var(--sg365-main-text);
  border: 1px solid rgba(17,24,39,0.12);
  box-shadow: 0 8px 22px rgba(17,24,39,0.08);
}


@media (max-width:1024px){
  .sg365-shell.sg365-sidebar-open .sg365-sidebar{display:block !important;visibility:visible !important;opacity:1 !important;}
  .sg365-sidebar .sg365-nav, .sg365-sidebar .sg365-nav li, .sg365-sidebar .sg365-nav a{display:block !important;visibility:visible !important;}
  .sg365-sidebar .sg365-nav a{color:#fff !important; font-size:15px; line-height:1.4;}
  .sg365-sidebar .sg365-nav__label{display:inline !important;}
}

/* v1.5.0.codex: support-ticket popup readability + premium finish */
.sg365m-front-modal-inner,
.sg365m-front-modal__card{
  border-radius: 24px !important;
  border: 1px solid rgba(16,24,40,.12) !important;
  box-shadow: 0 28px 90px rgba(16,24,40,.22) !important;
}
.sg365m-front-modal-inner .sg365m-issue-form label,
.sg365m-front-modal-inner .sg365m-ticket-thread,
.sg365m-front-modal-inner .sg365m-ticket-thread *{
  color:#0f172a;
}
.sg365m-front-modal-inner .sg365m-seg-btn{
  transition: background .16s ease, color .16s ease;
}
.sg365m-front-modal-inner .sg365m-chat{ margin-top:14px; }
.sg365m-front-modal-inner .sg365m-msg--admin{ background:linear-gradient(180deg, rgba(16,185,129,.14), rgba(16,185,129,.08)); }
.sg365m-front-modal-inner .sg365m-msg--customer{ background:linear-gradient(180deg, rgba(79,124,255,.16), rgba(79,124,255,.08)); }

/* v1.5.0.codex.2 ensure popup form field readability in account shortcodes */
.sg365m-front-modal .sg365m-apply-form input,
.sg365m-front-modal .sg365m-apply-form select,
.sg365m-front-modal .sg365m-apply-form textarea,
.sg365m-front-modal .sg365m-issue-form input,
.sg365m-front-modal .sg365m-issue-form select,
.sg365m-front-modal .sg365m-issue-form textarea{
  color:#0f172a !important;
  background:#fff !important;
  border:1px solid rgba(15,23,42,.16) !important;
}
.sg365m-front-modal .sg365m-apply-form ::placeholder,
.sg365m-front-modal .sg365m-issue-form ::placeholder{color:#64748b !important;opacity:.95 !important;}
.sg365m-front-modal .sg365m-apply-actions .button{
  border-radius:12px !important;
  font-weight:800 !important;
}


/* v1.5.7.codex mobile menu + scrollbar fixes */
@media (max-width: 1024px){
  .sg365-sidebar,
  .sg365-sidebar .sg365-nav,
  .sg365-sidebar .sg365-nav a{ pointer-events:auto !important; }
  .sg365-sidebar .sg365-nav a{ position:relative; z-index:2; }
  .sg365-overlay{ pointer-events:none !important; z-index: 920 !important; }
  .sg365-shell.sg365-sidebar-open + .sg365-overlay,
  .sg365-shell.sg365-sidebar-open ~ .sg365-overlay{ pointer-events:auto !important; }
  .sg365-topbar,
  .sg365-topbar__left,
  .sg365-topbar__right,
  .sg365-topbar__bell,
  #sg365-hamburger,
  .sg365-userchip{ position:relative; z-index:960; pointer-events:auto !important; }
}
.sg365-main, .sg365-content{
  scrollbar-width: none;
}
.sg365-main::-webkit-scrollbar,
.sg365-content::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
}


/* Ensure desktop brand title/subtitle remains clearly visible */
.sg365-brand__title{color:#ffffff !important}
.sg365-brand__sub{color:rgba(255,255,255,.82) !important;opacity:1}


/* v1.5.23.codex: Woo My Account full responsive hardening (scoped) */
body.woocommerce-account,
body.woocommerce-account #page,
body.woocommerce-account #content,
body.woocommerce-account .site,
body.woocommerce-account .site-main,
body.woocommerce-account .entry-content{
  max-width: 100%;
  overflow-x: clip;
}

body.woocommerce-account .sg365-shell,
body.woocommerce-account .sg365-shell *{
  box-sizing: border-box;
}

body.woocommerce-account .sg365-shell{
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.woocommerce-account .sg365-main,
body.woocommerce-account .sg365-content,
body.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce-MyAccount-content{
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.woocommerce-account .sg365-main{
  padding-inline: clamp(10px, 2vw, 22px);
}

body.woocommerce-account .sg365-topbar,
body.woocommerce-account .sg365-content,
body.woocommerce-account .sg365-card,
body.woocommerce-account .sg365-pagehead,
body.woocommerce-account .sg365-home,
body.woocommerce-account .sg365-home *{
  max-width: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-content .shop_table,
body.woocommerce-account .woocommerce-MyAccount-content table,
body.woocommerce-account .sg365-table,
body.woocommerce-account .sg365-table-card table{
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.woocommerce-account .woocommerce-MyAccount-content table thead,
body.woocommerce-account .woocommerce-MyAccount-content table tbody,
body.woocommerce-account .woocommerce-MyAccount-content table tr,
body.woocommerce-account .woocommerce-MyAccount-content table th,
body.woocommerce-account .woocommerce-MyAccount-content table td{
  white-space: nowrap;
}

body.woocommerce-account .woocommerce-MyAccount-content .shop_table td,
body.woocommerce-account .woocommerce-MyAccount-content .shop_table th{
  min-width: 120px;
}

@media (max-width: 1024px){
  body.woocommerce-account .sg365-shell{
    grid-template-columns: 1fr;
  }
  body.woocommerce-account .sg365-main{
    padding: 12px;
  }
  body.woocommerce-account .sg365-topbar{
    flex-wrap: wrap;
  }
}

@media (max-width: 640px){
  body.woocommerce-account .sg365-topbar__right{
    width: 100%;
    justify-content: flex-end;
  }
  body.woocommerce-account .sg365-content{
    padding: 12px;
  }
}

/* v1.5.24.codex: dashboard tab redesign (reference layout, scoped) */
body.woocommerce-account .sg365-dashref{display:flex;flex-direction:column;gap:18px;max-width:100%;}
body.woocommerce-account .sg365-dashref__head h2{margin:0;font-size:56px;line-height:1.05;letter-spacing:-.03em;font-weight:1000;color:#0f172a;}
body.woocommerce-account .sg365-dashref__head p{margin:8px 0 0;font-size:19px;color:#475569;max-width:72ch;}

body.woocommerce-account .sg365-dashref__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:100%;}

body.woocommerce-account .sg365-dashref-card,
body.woocommerce-account .sg365-dashref-mini{
  border-radius:20px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
  padding:14px;
  min-width:0;
}

body.woocommerce-account .sg365-dashref-card{position:relative;overflow:hidden;}
body.woocommerce-account .sg365-dashref-card::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:72px;
  background:linear-gradient(90deg,#2563eb,#1d4ed8);
}
body.woocommerce-account .sg365-dashref-card--received::before{background:linear-gradient(90deg,#10b981,#059669);}
body.woocommerce-account .sg365-dashref-card--pending::before{background:linear-gradient(90deg,#f59e0b,#eab308);}
body.woocommerce-account .sg365-dashref-card--services::before{background:linear-gradient(90deg,#06b6d4,#0891b2);}

body.woocommerce-account .sg365-dashref-card__top,
body.woocommerce-account .sg365-dashref-card__value,
body.woocommerce-account .sg365-dashref-card p{position:relative;z-index:1;}

body.woocommerce-account .sg365-dashref-card__top{display:flex;align-items:center;gap:10px;color:#fff;min-height:54px;}
body.woocommerce-account .sg365-dashref-card__top h3{margin:0;font-size:20px;line-height:1.2;font-weight:900;color:#fff;}
body.woocommerce-account .sg365-dashref-card__top i{font-size:22px;}
body.woocommerce-account .sg365-dashref-card__value{margin-top:18px;font-size:58px;line-height:1;font-weight:1000;color:#0f172a;white-space:normal;word-break:break-word;}
body.woocommerce-account .sg365-dashref-card p{margin:10px 0 0;font-size:15px;color:#475569;display:flex;gap:6px;align-items:center;flex-wrap:wrap;}

body.woocommerce-account .sg365-dashref-mini h3{margin:0;font-size:44px;line-height:1.05;font-weight:1000;color:#0f172a;display:flex;gap:8px;align-items:center;}
body.woocommerce-account .sg365-dashref-mini__value{font-size:56px;line-height:1;margin-top:10px;font-weight:1000;color:#0f172a;}
body.woocommerce-account .sg365-dashref-mini p{margin:10px 0 0;font-size:15px;color:#475569;display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
body.woocommerce-account .sg365-dashref-mini h3 i{font-size:24px;}

body.woocommerce-account .sg365-dashref-mini--status{display:flex;flex-direction:column;justify-content:space-between;}
body.woocommerce-account .sg365-dashref-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 20px;border-radius:999px;font-size:30px;font-weight:900;width:max-content;max-width:100%;}
body.woocommerce-account .sg365-dashref-badge.is-active{background:#10b981;color:#fff;}
body.woocommerce-account .sg365-dashref-badge.is-inactive{background:#e2e8f0;color:#334155;}

body.woocommerce-account .sg365-dashref__quicklinks h3{margin:0 0 10px;font-size:52px;line-height:1.05;font-weight:1000;color:#0f172a;}
body.woocommerce-account .sg365-dashref__quickgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:100%;}
body.woocommerce-account .sg365-dashref-link{
  border-radius:16px;padding:14px 16px;
  display:flex;align-items:center;justify-content:center;gap:10px;
  color:#fff;text-decoration:none;font-size:34px;font-weight:900;
  box-shadow:0 10px 24px rgba(15,23,42,.14);min-width:0;
}
body.woocommerce-account .sg365-dashref-link i{font-size:24px;}
body.woocommerce-account .sg365-dashref-link.is-danger{background:linear-gradient(90deg,#ef4444,#fb7185);}
body.woocommerce-account .sg365-dashref-link.is-primary{background:linear-gradient(90deg,#2563eb,#3b82f6);}
body.woocommerce-account .sg365-dashref-link.is-teal{background:linear-gradient(90deg,#0891b2,#14b8a6);}

@media (max-width: 1440px){
  body.woocommerce-account .sg365-dashref__head h2{font-size:46px;}
  body.woocommerce-account .sg365-dashref-mini h3{font-size:36px;}
  body.woocommerce-account .sg365-dashref-card__value,
  body.woocommerce-account .sg365-dashref-mini__value{font-size:48px;}
  body.woocommerce-account .sg365-dashref__quicklinks h3{font-size:44px;}
  body.woocommerce-account .sg365-dashref-link{font-size:28px;}
}

@media (max-width: 1024px){
  body.woocommerce-account .sg365-dashref__grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.woocommerce-account .sg365-dashref__quickgrid{grid-template-columns:1fr;}
  body.woocommerce-account .sg365-dashref__head h2{font-size:40px;}
  body.woocommerce-account .sg365-dashref-mini h3{font-size:30px;}
  body.woocommerce-account .sg365-dashref-card__value,
  body.woocommerce-account .sg365-dashref-mini__value{font-size:40px;}
  body.woocommerce-account .sg365-dashref__quicklinks h3{font-size:36px;}
  body.woocommerce-account .sg365-dashref-link{font-size:24px;}
}

@media (max-width: 640px){
  body.woocommerce-account .sg365-dashref__grid{grid-template-columns:1fr;}
  body.woocommerce-account .sg365-dashref__head h2{font-size:34px;}
  body.woocommerce-account .sg365-dashref__head p{font-size:17px;}
  body.woocommerce-account .sg365-dashref-card__top h3{font-size:18px;}
  body.woocommerce-account .sg365-dashref-card__value,
  body.woocommerce-account .sg365-dashref-mini__value{font-size:34px;}
  body.woocommerce-account .sg365-dashref-mini h3{font-size:27px;}
  body.woocommerce-account .sg365-dashref-badge{font-size:24px;}
  body.woocommerce-account .sg365-dashref__quicklinks h3{font-size:30px;}
  body.woocommerce-account .sg365-dashref-link{font-size:22px;padding:13px 14px;}
}

/* Home tab refresh (screenshot-style, scoped to WooCommerce account only) */
body.woocommerce-account .sg365-homev3{display:flex;flex-direction:column;gap:16px;max-width:100%;min-width:0;color:#0f172a;}
body.woocommerce-account .sg365-homev3__eyebrow{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b;}
body.woocommerce-account .sg365-homev3__welcome{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:16px 18px;box-shadow:0 10px 24px rgba(15,23,42,.04);font-size:20px;font-weight:700;line-height:1.4;display:flex;flex-direction:column;gap:4px;}
body.woocommerce-account .sg365-homev3__welcome span{font-size:14px;font-weight:500;color:#64748b;}
body.woocommerce-account .sg365-homev3__layout{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(260px,.9fr);gap:16px;max-width:100%;min-width:0;}
body.woocommerce-account .sg365-homev3__main,
body.woocommerce-account .sg365-homev3__side{display:flex;flex-direction:column;gap:16px;min-width:0;}
body.woocommerce-account .sg365-homev3-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
body.woocommerce-account .sg365-homev3-kpis article,
body.woocommerce-account .sg365-homev3-activity,
body.woocommerce-account .sg365-homev3-projects,
body.woocommerce-account .sg365-homev3-links,
body.woocommerce-account .sg365-homev3-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px;box-shadow:0 10px 24px rgba(15,23,42,.04);min-width:0;}
body.woocommerce-account .sg365-homev3-kpis h4{margin:0;font-size:13px;color:#64748b;}
body.woocommerce-account .sg365-homev3-kpis strong{display:block;margin-top:8px;font-size:30px;line-height:1.1;word-break:break-word;}
body.woocommerce-account .sg365-homev3-kpis small{display:block;margin-top:4px;color:#64748b;font-size:12px;}
body.woocommerce-account .sg365-homev3-activity h3,
body.woocommerce-account .sg365-homev3-projects h3,
body.woocommerce-account .sg365-homev3-links h3{margin:0 0 10px;font-size:18px;line-height:1.3;}
body.woocommerce-account .sg365-homev3-activity__stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
body.woocommerce-account .sg365-homev3-activity__stats div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px;}
body.woocommerce-account .sg365-homev3-activity__stats label{display:block;font-size:12px;color:#64748b;}
body.woocommerce-account .sg365-homev3-activity__stats b{font-size:18px;line-height:1.2;word-break:break-word;}
body.woocommerce-account .sg365-homev3-dots{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:6px;margin-top:12px;}
body.woocommerce-account .sg365-homev3-dots span{height:10px;border-radius:999px;background:#e2e8f0;}
body.woocommerce-account .sg365-homev3-dots span.is-low{background:#bae6fd;}
body.woocommerce-account .sg365-homev3-dots span.is-med{background:#38bdf8;}
body.woocommerce-account .sg365-homev3-dots span.is-high{background:#0284c7;}
body.woocommerce-account .sg365-homev3-projects{overflow-x:auto;}
body.woocommerce-account .sg365-homev3-projects table{width:100%;min-width:520px;border-collapse:collapse;}
body.woocommerce-account .sg365-homev3-projects th,
body.woocommerce-account .sg365-homev3-projects td{padding:10px;border-bottom:1px solid #e2e8f0;font-size:13px;text-align:left;}
body.woocommerce-account .sg365-homev3-links > div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body.woocommerce-account .sg365-homev3-links a{display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:12px;background:#0f172a;color:#fff;text-decoration:none;font-weight:700;font-size:14px;padding:10px;text-align:center;}
body.woocommerce-account .sg365-homev3-card h4{margin:0 0 8px;font-size:16px;}
body.woocommerce-account .sg365-homev3-card ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;}
body.woocommerce-account .sg365-homev3-card li{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:9px 10px;display:flex;justify-content:space-between;gap:8px;}
body.woocommerce-account .sg365-homev3-card li strong{font-size:13px;line-height:1.3;}
body.woocommerce-account .sg365-homev3-card li span{font-size:12px;color:#64748b;text-align:right;}

@media (max-width: 1140px){
  body.woocommerce-account .sg365-homev3__layout{grid-template-columns:1fr;}
  body.woocommerce-account .sg365-homev3-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 768px){
  body.woocommerce-account .sg365-homev3__welcome{font-size:18px;}
  body.woocommerce-account .sg365-homev3-activity__stats{grid-template-columns:1fr;}
  body.woocommerce-account .sg365-homev3-dots{grid-template-columns:repeat(10,minmax(0,1fr));}
  body.woocommerce-account .sg365-homev3-links > div{grid-template-columns:1fr;}
}
@media (max-width: 640px){
  body.woocommerce-account .sg365-homev3-kpis{grid-template-columns:1fr;}
}
