/* =============================================================
   B01 LIVEJOIN DESIGN BASE FIX — 2026-10-01
   Presentation only. No order/payment/wallet/worker business logic.
   Loaded after app.css so the old release remains recoverable.
   ============================================================= */

:root{
  --b01-purple:#6d32ee;
  --b01-purple-dark:#4f18ce;
  --b01-purple-soft:#f3efff;
  --b01-navy:#19162f;
  --b01-ink:#1f2134;
  --b01-muted:#777b8e;
  --b01-page:#f5f6fa;
  --b01-line:#e4e6ef;
  --b01-card:#ffffff;
  --b01-ok:#0f9f70;
  --b01-shadow:0 16px 46px rgba(31,25,73,.10);
}

/* ---------- shared reset / reliable sizing ---------- */
.smmvai-ui *, .smmvai-ui *::before, .smmvai-ui *::after{box-sizing:border-box}
.smmvai-ui img{max-width:100%}
.smmvai-ui button,.smmvai-ui input,.smmvai-ui select,.smmvai-ui textarea{font:inherit}
.smmvai-ui .btn{min-height:42px;border-radius:11px!important;padding:10px 16px!important;line-height:1.1!important;font-size:.82rem!important;font-weight:750!important;box-shadow:0 7px 18px rgba(88,47,205,.16)!important;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important}
.smmvai-ui .btn:hover:not(:disabled){transform:translateY(-1px)!important;box-shadow:0 10px 22px rgba(88,47,205,.21)!important}
.smmvai-ui .btn.secondary{background:#fff!important;color:#35374b!important;border:1px solid #dfe2eb!important;box-shadow:0 4px 12px rgba(27,29,50,.04)!important}
.smmvai-ui .btn.small{min-height:38px!important;padding:9px 14px!important;font-size:.76rem!important}
.smmvai-ui .field{margin:13px 0!important;gap:7px!important}
.smmvai-ui .field label{font-size:.75rem!important;font-weight:750!important;color:#383b50!important;margin:0!important}
.smmvai-ui .field input,.smmvai-ui .field select,.smmvai-ui .field textarea,.smmvai-ui .soft-input{width:100%!important;min-height:45px!important;background:#fff!important;border:1px solid #dfe2ea!important;border-radius:10px!important;padding:11px 13px!important;color:#202338!important;font-size:.82rem!important;box-shadow:0 1px 2px rgba(16,18,35,.02)!important}
.smmvai-ui .field input:focus,.smmvai-ui .field select:focus,.smmvai-ui .field textarea:focus,.smmvai-ui .soft-input:focus{border-color:#8f72f5!important;background:#fff!important;box-shadow:0 0 0 4px rgba(109,50,238,.08)!important}
.smmvai-ui .card{background:#fff!important;border:1px solid var(--b01-line)!important;border-radius:14px!important;box-shadow:0 7px 22px rgba(33,35,63,.055)!important}
.smmvai-ui .alert{border-radius:10px!important;padding:11px 13px!important;font-size:.76rem!important}

/* =============================================================
   SIGNED-OUT / AUTH PAGES
   Only logo + auth actions remain outside. Account details stay inside.
   ============================================================= */
.auth-public-body{
  min-height:100vh!important;
  background:
    radial-gradient(circle at 8% 12%,rgba(109,50,238,.10),transparent 24%),
    radial-gradient(circle at 91% 78%,rgba(54,119,255,.08),transparent 25%),
    #f7f7fb!important;
  color:var(--b01-ink)!important;
}
.auth-public-body .topbar{
  position:relative!important;
  top:auto!important;
  background:rgba(255,255,255,.94)!important;
  border-bottom:1px solid rgba(224,225,234,.92)!important;
  box-shadow:0 4px 20px rgba(28,28,52,.045)!important;
  backdrop-filter:blur(14px)!important;
}
.auth-public-body .shell.nav{width:min(1080px,calc(100% - 34px))!important;height:70px!important}
.auth-public-body .brand{height:48px!important;min-width:0!important;overflow:hidden!important}
.auth-public-body .brand-logo-wide{
  display:block!important;
  width:146px!important;
  height:44px!important;
  max-height:44px!important;
  object-fit:contain!important;
  object-position:left center!important;
}
.auth-public-body .public-auth-nav{display:flex!important;align-items:center!important;gap:7px!important}
.auth-public-body .public-login-link{min-height:38px!important;padding:9px 13px!important;border-radius:9px!important;color:#4d4f61!important;font-size:.76rem!important;font-weight:750!important}
.auth-public-body .public-login-link:hover{background:#f1eff8!important;color:var(--b01-purple)!important}
.auth-public-body .public-auth-nav .btn{min-width:78px!important}
.auth-public-body>main{display:block!important;min-height:calc(100vh - 70px)!important}

.auth-modern{
  width:100%!important;
  min-height:calc(100vh - 70px)!important;
  display:grid!important;
  place-items:center!important;
  padding:38px 18px 46px!important;
}
.auth-modern-card{
  width:min(940px,100%)!important;
  min-height:520px!important;
  display:grid!important;
  grid-template-columns:minmax(300px,.88fr) minmax(360px,1.12fr)!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid rgba(218,219,230,.9)!important;
  border-radius:22px!important;
  box-shadow:0 24px 70px rgba(31,24,70,.13)!important;
}
.auth-modern-brand{
  position:relative!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  align-items:flex-start!important;
  padding:42px 38px!important;
  background:
    radial-gradient(circle at 15% 12%,rgba(255,255,255,.13),transparent 26%),
    linear-gradient(155deg,#241c52 0%,#4d1bc5 50%,#6e31ee 100%)!important;
  color:#fff!important;
}
.auth-modern-brand::before{
  content:"";
  position:absolute;
  width:270px;height:270px;
  right:-120px;top:-105px;
  border-radius:50%;
  border:44px solid rgba(255,255,255,.065);
}
.auth-modern-brand::after{
  content:"";
  position:absolute;
  width:160px;height:160px;
  left:-72px;bottom:-68px;
  border-radius:50%;
  border:30px solid rgba(255,255,255,.05);
}
.auth-modern-brand>*{position:relative;z-index:1}
.auth-modern-brand img{
  width:188px!important;
  height:62px!important;
  max-width:188px!important;
  object-fit:contain!important;
  object-position:left center!important;
  background:#fff!important;
  border:1px solid rgba(255,255,255,.38)!important;
  border-radius:12px!important;
  padding:7px 11px!important;
  box-shadow:0 10px 25px rgba(12,8,36,.18)!important;
  margin:0 0 auto!important;
}
.auth-modern-brand>span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  padding:6px 9px!important;
  margin-bottom:12px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.08)!important;
  color:#e9e4ff!important;
  font-size:.61rem!important;
  font-weight:800!important;
  letter-spacing:.13em!important;
}
.auth-modern-brand h1{
  margin:0 0 10px!important;
  color:#fff!important;
  font-size:clamp(1.8rem,3vw,2.5rem)!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
}
.auth-modern-brand p{
  max-width:360px!important;
  margin:0!important;
  color:#d9d4ed!important;
  font-size:.84rem!important;
  line-height:1.65!important;
}
.auth-modern-form{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-width:0!important;
  padding:46px 54px!important;
  background:#fff!important;
}
.auth-modern-form>.eyebrow{margin-bottom:8px!important;font-size:.61rem!important;color:var(--b01-purple)!important;letter-spacing:.14em!important}
.auth-modern-form h2{margin:0 0 8px!important;font-size:1.55rem!important;color:#202236!important}
.auth-modern-form>p.muted{margin:0 0 16px!important;font-size:.76rem!important;line-height:1.55!important;color:#7b7e91!important}
.auth-modern-form form{width:100%!important}
.auth-modern-form .auth-submit{margin-top:8px!important;min-height:47px!important;border-radius:10px!important;background:linear-gradient(135deg,#7035ef,#541cd2)!important;color:#fff!important;font-size:.82rem!important}
.auth-switch{margin:17px 0 0!important;text-align:center!important;color:#777a8b!important;font-size:.75rem!important}
.auth-switch a{color:#5e2add!important;font-weight:800!important}
.auth-switch a:hover{text-decoration:underline!important}
.referral-applied{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:12px 0 4px!important;padding:10px 12px!important;border:1px solid #dcd4f6!important;border-radius:10px!important;background:#f7f4ff!important;font-size:.72rem!important;color:#6e6880!important}
.referral-applied strong{color:#5520cc!important;letter-spacing:.05em!important}

/* =============================================================
   LOGGED-IN CUSTOMER UI — keep all customer tools inside the app shell.
   ============================================================= */
.user-app{background:var(--b01-page)!important}
.user-side{
  width:278px!important;
  padding:16px 13px!important;
  background:linear-gradient(165deg,#19162f 0%,#211943 50%,#2b175f 100%)!important;
  border-right:1px solid rgba(255,255,255,.035)!important;
  box-shadow:12px 0 36px rgba(24,19,55,.09)!important;
}
.user-main{margin-left:278px!important;background:var(--b01-page)!important}
.side-brand{padding:2px 5px 13px!important}
.side-brand .brand-plate{height:58px!important;padding:7px 12px!important;border-radius:11px!important;box-shadow:none!important}
.side-brand img{width:185px!important;height:42px!important;object-fit:contain!important}
.side-profile{margin:0 3px 13px!important;padding:12px!important;border-radius:12px!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.075)!important}
.side-nav{gap:4px!important;padding:0 2px!important}
.side-nav a{min-height:41px!important;padding:8px 10px!important;border-radius:9px!important;font-size:.76rem!important;color:#c5c3d4!important}
.side-nav a:hover{background:rgba(255,255,255,.065)!important;color:#fff!important;transform:none!important}
.side-nav a.active{background:linear-gradient(135deg,#7041ed,#5b2bd5)!important;color:#fff!important;box-shadow:0 7px 18px rgba(71,32,167,.28)!important}
.side-nav .nav-icon{width:27px!important;height:27px!important;border-radius:8px!important;background:rgba(255,255,255,.075)!important}
.side-bottom{padding:12px 5px 0!important}
.user-top{
  top:10px!important;
  height:58px!important;
  margin:10px 13px 0!important;
  padding:0 13px!important;
  background:#fff!important;
  color:#232538!important;
  border:1px solid #e4e5ec!important;
  border-radius:13px!important;
  box-shadow:0 7px 22px rgba(31,33,57,.06)!important;
}
.user-top .top-title span,.user-top .top-user span{color:#27293b!important}
.user-top .top-user small{color:#818496!important}
.top-brand-chip{height:35px!important;min-width:110px!important;max-width:138px!important;padding:4px 8px!important;border:1px solid #ececf2!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}
.top-brand-chip img{width:100%!important;height:100%!important;object-fit:contain!important}
.top-user-avatar{width:34px!important;height:34px!important;min-width:34px!important;background:linear-gradient(135deg,#7351ea,#5732c9)!important;border:0!important}
.user-content{background:transparent!important;padding:0!important}
.app-page,.dashboard{padding:24px 20px 42px!important}
.app-container{width:100%!important;max-width:1220px!important;margin:0 auto!important}
.page-title-row,.dash-head{margin-bottom:18px!important;gap:14px!important}
.page-title-row h1,.dash-head h1{font-size:1.5rem!important;margin:3px 0 4px!important}
.page-title-row p,.dash-head p{font-size:.76rem!important;margin:0!important}
.smm-stat-grid{gap:12px!important;margin-bottom:20px!important}
.smm-stat-card{min-height:86px!important;border-radius:13px!important;border:1px solid var(--b01-line)!important;padding:13px!important;box-shadow:0 6px 18px rgba(30,32,56,.05)!important}
.smm-stat-icon{width:42px!important;height:42px!important;min-width:42px!important;border-radius:11px!important}
.order-layout,.order-simple-grid{gap:14px!important}
.order-form,.order-form-simple,.sticky-card,.availability-card{border-radius:14px!important}
.table-wrap{border-radius:13px!important;box-shadow:0 6px 18px rgba(30,32,56,.045)!important}

/* =============================================================
   ADMIN — same visual system, private console stays separate.
   ============================================================= */
.admin-body{background:var(--b01-page)!important}
.admin-side{width:278px!important;padding:15px 13px!important;background:linear-gradient(165deg,#19162f,#201943 52%,#281857)!important;box-shadow:12px 0 36px rgba(24,19,55,.09)!important}
.admin-main{margin-left:278px!important;background:var(--b01-page)!important}
.admin-brand{height:58px!important;margin:0 4px 10px!important;padding:7px 11px!important;border-radius:11px!important;box-shadow:none!important}
.admin-brand img{width:185px!important;height:42px!important;object-fit:contain!important}
.admin-side-label{padding:4px 10px 8px!important;color:#8f8da7!important;font-size:.55rem!important}
.admin-nav{padding-right:2px!important}
.admin-nav-group{gap:3px!important;margin-bottom:10px!important}
.admin-nav-label{padding:4px 10px 2px!important;color:#817f98!important}
.admin-side nav a{min-height:38px!important;padding:8px 10px!important;border-radius:8px!important;font-size:.72rem!important;color:#c4c2d2!important}
.admin-side nav a:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
.admin-side nav a.active{background:linear-gradient(135deg,#7041ed,#5b2bd5)!important;color:#fff!important;box-shadow:0 7px 18px rgba(71,32,167,.25)!important}
.admin-top{top:10px!important;height:58px!important;margin:10px 13px 0!important;padding:0 13px!important;background:#fff!important;color:#25273a!important;border:1px solid #e4e5ec!important;border-radius:13px!important;box-shadow:0 7px 22px rgba(31,33,57,.06)!important}
.admin-top h1{color:#25273a!important}.admin-top .eyebrow{color:#7050dc!important}.admin-user{color:#646779!important}
.admin-content{padding:24px 20px 44px!important}

/* ---------- responsive ---------- */
@media(max-width:980px){
  .user-side,.admin-side{width:278px!important;transform:translateX(-104%)!important;transition:transform .22s ease!important}
  .user-side.open,.admin-side.open{transform:translateX(0)!important}
  .user-main,.admin-main{margin-left:0!important}
  .user-top,.admin-top{margin:8px 9px 0!important;top:8px!important}
  .app-page,.dashboard,.admin-content{padding:20px 13px 36px!important}
  .user-top .menu-toggle,.admin-top .menu-toggle{display:inline-flex!important;background:#f1eff8!important;color:#5a36c6!important;border:1px solid #e3dff0!important}
}

@media(max-width:760px){
  .auth-public-body .shell.nav{width:min(100% - 22px,1080px)!important;height:64px!important}
  .auth-public-body .brand-logo-wide{width:132px!important;height:39px!important}
  .auth-public-body>main{min-height:calc(100vh - 64px)!important}
  .auth-modern{min-height:calc(100vh - 64px)!important;padding:20px 11px 28px!important;place-items:start center!important}
  .auth-modern-card{width:min(520px,100%)!important;min-height:0!important;grid-template-columns:1fr!important;border-radius:17px!important}
  .auth-modern-brand{min-height:188px!important;padding:22px 21px!important;justify-content:flex-end!important}
  .auth-modern-brand img{width:158px!important;height:52px!important;max-width:158px!important;margin:0 0 24px!important;padding:6px 9px!important}
  .auth-modern-brand>span{margin-bottom:8px!important;font-size:.55rem!important}
  .auth-modern-brand h1{font-size:1.65rem!important;margin-bottom:7px!important}
  .auth-modern-brand p{font-size:.75rem!important;line-height:1.5!important}
  .auth-modern-form{padding:25px 21px 27px!important}
  .auth-modern-form h2{font-size:1.35rem!important}
  .auth-modern-form>p.muted{font-size:.72rem!important;margin-bottom:12px!important}
  .auth-modern-form .field{margin:10px 0!important}
  .auth-modern-form .field input{min-height:44px!important}
  .auth-modern-form .auth-submit{min-height:45px!important}
  .smm-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .smm-stat-card{min-height:78px!important;padding:10px!important}
  .smm-stat-icon{width:35px!important;height:35px!important;min-width:35px!important}
  .page-title-row,.dash-head{align-items:flex-start!important;flex-direction:column!important}
  .page-title-row .btn,.dash-head .btn{width:100%!important}
}

@media(max-width:430px){
  .auth-public-body .public-login-link{padding:8px 8px!important}
  .auth-public-body .public-auth-nav .btn{min-width:70px!important;padding:8px 10px!important}
  .auth-modern{padding-left:8px!important;padding-right:8px!important}
  .auth-modern-brand{padding:20px 18px!important}
  .auth-modern-form{padding:23px 18px 25px!important}
  .smm-stat-icon{display:none!important}
}
