
/* =========================================================
   SK JAYA STORE — MODERN LUXURY GLOBAL UI
   Clean monochrome + subtle wine-red accent.
   ========================================================= */
:root{
  --sj-ink:#17191d;
  --sj-text:#25282d;
  --sj-muted:#747a83;
  --sj-bg:#f5f6f7;
  --sj-panel:#ffffff;
  --sj-line:#e5e7ea;
  --sj-accent:#8f1d2c;
  --sj-accent-dark:#761624;
  --sj-accent-soft:#f8edef;
  --sj-shadow:0 10px 30px rgba(20,24,30,.07);
}

html,body{max-width:100%;overflow-x:hidden}
body{background:var(--sj-bg)!important;color:var(--sj-text)!important}
img{max-width:100%;height:auto}
svg{flex:0 0 auto}

/* Remove leftover warm/gold palette from common controls */
.btn-primary,.btn-gold,.gold{
  background:var(--sj-ink)!important;
  color:#fff!important;
  border-color:var(--sj-ink)!important;
}
.btn-primary:hover,.btn-gold:hover,.gold:hover{background:#000!important}
a,.link{color:var(--sj-accent)}
.muted,.help,.hint,.small-muted{color:var(--sj-muted)!important}
.card,.box,.glass-panel,.panel,.account-head,.welcome-card,.quick-actions a{
  box-shadow:var(--sj-shadow);
}
input,select,textarea{
  background:#fff!important;
  border-color:var(--sj-line)!important;
  color:var(--sj-text)!important;
  border-radius:12px!important;
}
input:focus,select:focus,textarea:focus{
  border-color:#b9bdc4!important;
  box-shadow:0 0 0 3px rgba(143,29,44,.08)!important;
  outline:none!important;
}
label{color:#555b64!important}
.badge,.chip,.pill{box-shadow:none!important}

/* Common SVG helper icons */
.ui-emoji-svg,.notif-icon-svg,.notif-bell-svg{
  width:18px!important;height:18px!important;
  min-width:18px!important;min-height:18px!important;
  max-width:18px!important;max-height:18px!important;
}
.page-loader-spinner{border-width:2px!important}

/* CUSTOMER NAV */
.customer-bottom-nav{
  width:min(calc(100vw - 34px),520px)!important;
  min-height:60px!important;
  padding:5px!important;
  gap:2px!important;
  border-radius:18px!important;
  box-shadow:0 12px 32px rgba(20,24,30,.14)!important;
}
.customer-nav-item{
  min-height:48px!important;height:48px!important;
  gap:2px!important;padding:4px 1px!important;
  border-radius:12px!important;font-size:7.5px!important;
}
.customer-bottom-nav .customer-nav-item > svg,
.customer-bottom-nav .customer-nav-item svg{
  width:17px!important;height:17px!important;
  min-width:17px!important;min-height:17px!important;
  max-width:17px!important;max-height:17px!important;
  flex:0 0 17px!important;
  stroke-width:1.75!important;
}
.customer-bottom-nav .customer-nav-item.active{
  background:var(--sj-ink)!important;color:#fff!important;
}
.customer-nav-item span{
  font-size:7.5px!important;line-height:1!important;
}

/* ADMIN SIDEBAR + MOBILE NAV */
.admin-app .brand-logo-wide img{width:128px!important;max-width:100%!important}
.admin-app .brand-logo-mark img{width:46px!important;height:46px!important}
.admin-app .nav-link{font-size:11px!important;padding:9px 10px!important;border-radius:10px!important}
.admin-app .nav-icon{width:19px!important;min-width:19px!important;height:19px!important;display:grid!important;place-items:center!important}
.admin-app .nav-icon svg{
  width:17px!important;height:17px!important;
  min-width:17px!important;min-height:17px!important;
  max-width:17px!important;max-height:17px!important;
}
.admin-app .nav-link.active{
  background:var(--sj-ink)!important;color:#fff!important;border-color:var(--sj-ink)!important;
}
.admin-app .nav-link.active .nav-icon{color:#fff!important}
.admin-app .nav-active-dot{background:var(--sj-accent)!important}
.admin-app .avatar{background:#f1f2f3!important;color:var(--sj-ink)!important}
.admin-app .badge-role{background:var(--sj-accent-soft)!important;color:var(--sj-accent)!important;border-color:#ecd3d8!important}
.admin-app .btn-success{background:#eef8f2!important;color:#26704b!important;border-color:#cfe5d8!important}
.admin-app .btn-warning{background:#fff6e8!important;color:#8a5d20!important;border-color:#f0dcb8!important}
.admin-app .btn-danger{background:#fff1f2!important;color:#9a2a36!important;border-color:#ecced2!important}
.admin-app .btn-primary{background:var(--sj-ink)!important;color:#fff!important}
.admin-app .online-alert{background:#fff!important;border-color:var(--sj-line)!important}
.admin-app .online-alert .online-badge{background:#f1f2f3!important;color:var(--sj-accent)!important}
.admin-app .status-step.active{background:var(--sj-accent-soft)!important;color:var(--sj-accent)!important}
.admin-app .mobile-bottom-nav .mobile-bottom-icon{
  width:20px!important;height:20px!important
}
.admin-app .mobile-bottom-nav .mobile-bottom-icon svg{
  width:17px!important;height:17px!important
}

/* LOGIN / REGISTER */
.auth-shell,.login-card,.register-card{
  max-width:420px!important;
  border-radius:22px!important;
  box-shadow:0 18px 45px rgba(20,24,30,.10)!important;
}
.auth-shell img,.login-card img,.register-card img{
  width:64px!important;height:64px!important;object-fit:contain!important;
  border-radius:16px!important;
}
.password-toggle{color:#616872!important;background:#f5f6f7!important}
.password-toggle:hover{color:var(--sj-accent)!important;background:#eef0f2!important}

/* CUSTOMER ACCOUNT / OTHER PAGES */
.account-page,.page-wrap,.content-wrap{max-width:1120px!important;margin-left:auto!important;margin-right:auto!important}
.brand-a img{width:44px!important;height:44px!important;object-fit:contain!important;border-radius:12px!important}
.welcome-card{background:var(--sj-ink)!important}
.quick-actions a{color:#3f444b!important}
.quick-actions a:hover{border-color:#c7cbd1!important}
.btn-dark,.btn-gold{background:var(--sj-ink)!important;color:#fff!important}
.help-box{background:#fafafa!important;border-color:var(--sj-line)!important;color:#676d75!important}

/* MOBILE PAGE GUTTERS — never touch screen edge */
@media(max-width:700px){
  body{font-size:14px!important}
  .account-page,.page-wrap,.content-wrap{
    width:calc(100% - 28px)!important;
    max-width:560px!important;
    padding-left:0!important;padding-right:0!important;
  }
  .account-head{border-radius:17px!important;padding:9px 10px!important}
  .brand-a img{width:40px!important;height:40px!important}
  .brand-a strong{font-size:14px!important}
  .head-actions{gap:5px!important}
  .head-actions a{font-size:8px!important;padding:8px 9px!important;border-radius:9px!important}
  .welcome{margin:14px 0!important;gap:10px!important}
  .welcome-card{padding:17px 17px!important;border-radius:17px!important}
  .welcome h1{font-size:23px!important}
  .dashboard-grid{grid-template-columns:1fr!important;gap:10px!important}
  .box{padding:13px!important;border-radius:15px!important}
  .stats{gap:6px!important}
  .stat{padding:9px!important}
  .stat strong{font-size:17px!important}
  .stat span{font-size:8px!important}
  .customer-bottom-nav{
    width:calc(100vw - 28px)!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
  }
}
@media(max-width:390px){
  .account-page,.page-wrap,.content-wrap{width:calc(100% - 24px)!important}
  .customer-bottom-nav{width:calc(100vw - 20px)!important}
  .customer-nav-item{height:47px!important;min-height:47px!important}
  .customer-bottom-nav .customer-nav-item > svg,
  .customer-bottom-nav .customer-nav-item svg{
    width:16px!important;height:16px!important;
    min-width:16px!important;min-height:16px!important;
    max-width:16px!important;max-height:16px!important;
    flex-basis:16px!important;
  }
  .customer-nav-item span{font-size:6.8px!important}
}
