/* ── TOKENS (LIGHT — DEFAULT) ─────────────────────────────────────── */
:root {
  --blue-deep: #2E6BDE;
  --blue:      #2563EB;
  --blue2:     #3B82F6;
  --blue3:     #60A5FA;
  --blueL:     #60a5fa;
  --blue-dim:  rgba(37,99,235,0.07);
  --blue-mid:  rgba(37,99,235,0.14);
  --white:     #FFFFFF;
  --black:     #000000;
  --bg:        #F3F7FF;
  --bg2:       #FFFFFF;
  --bg3:       #EBF2FF;
  --surface:   #FFFFFF;
  --surface0: rgba(255,255,255,0.5);
  --surface1:  #FFFFFF;
  --surface-2: rgba(255,255,255,.75);
  --overlay:   rgba(255,255,255,0.1);
  --box-shdw:  0 4px 12px rgb(0 0 0 / 10%);
  --ink:       #0E1626;
  --text:      #0F172A;
  --text1:     rgba(0,0,0,0.75);
  --textW:     #fff;
  --muted:     #64748B;
  --muted2:    #c1cdde;
  --border1:   transparent;
  --border:    rgba(37,99,235,0.18);
  --border2:   rgba(15,23,42,0.08);
  --borderW:   rgba(255,255,255,0.15);
  --red:       #EF4444;
  --red1:      #c0392b;
  --green:     #10B981;
  --navy:      #0f172a;
  --navy3:     #334155;
  --light:     #94a3b8;
  --radius:    8px;
  --rad-lg:    16px;
  --shadow:    0 4px 24px rgba(37,99,235,0.07);
  --shadow-hv: 0 20px 56px rgba(37,99,235,0.15);
  --glass-bg:     linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.16));
  --glass-border: rgba(255,255,255,.25);
  --overlay-bg:   rgba(0,0,0,.16);
  --sidebar-bg:   rgba(255,255,255,.80);
  --sidebar-edge: var(--white);
  --toast-bg:     #10141a;
  --toast-text:   #e8edf5;
  --input-text:   #0F172A;
  --selected:     #fff;
  --selected1:    var(--blue);
  --img-filter:   none;
  --bd-filter:    blur(16px);
  color-scheme:   light;
}

/* ── TOKENS (DARK) ───────────────────────────────────────────────── */
html[data-theme="dark"] {
  --blue-deep: #FFFFFF;
  --blue:      #2563EB;
  --blue2:     #3B82F6;
  --blue3:     #60A5FA;
  --blueL:     #60a5fa;
  --blue-dim:  rgba(37,99,235,0.07);
  --blue-mid:  rgba(37,99,235,0.14);
  --white:     #000000;
  --black:     #FFFFFF;
  --bg:        #0C1220;
  --bg2:       #0F172A;
  --bg3:       #111C31;
  --surface:   #0F172A;
  --surface0:  rgba(0,0,0,0.5);
  --surface1:  rgba(255,255,255,0.9);
  --surface-2: rgba(0,0,0,.75);
  --overlay:   rgba(25,100,255,0.1);
  --box-shdw:  0 0 52px rgb(255 255 255 / 20%);
  --ink:       #D7E3FC;
  --text:      #F8FAFC;
  --text1:     rgba(255,255,255,0.75);
  --textW:     #000000;
  --muted:     #94A3B8;
  --muted2:    #475569;
  --border1:   rgba(255,255,255,0.2);
  --border:    rgba(96,165,250,0.28);
  --border2:   rgba(248,250,252,0.08);
  --borderW:   rgba(0,0,0,0.15);
  --red:       #EF4444;
  --red1:      #c0392b;
  --green:     #10B981;
  --navy:      #F0E8D5;
  --navy3:     #334155;
  --light:     #94a3b8;
  --radius:    8px;
  --rad-lg:    16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.25);
  --shadow-hv: 0 20px 56px rgba(0,0,0,0.40);
  --glass-bg:     linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  --glass-border: rgba(255,255,255,.12);
  --overlay-bg:   rgba(255,255,255,0.16);
  --sidebar-bg:   rgba(15,23,42,.80);
  --sidebar-edge: #000000;
  --toast-bg:     #E8EDF5;
  --toast-text:   #10141A;
  --input-text:   #F8FAFC;
  --selected:     var(--blue);
  --selected1:    #fff;
  --img-filter:   brightness(0) invert(1);
  --bd-filter:    none;
  color-scheme:   dark;
}

/* Smooth, non-flashy transition when switching themes */
html.theme-transition, html.theme-transition *{
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease !important;
}

:root {
  --green: #27855a;
  --orange: #f97316;
  --yellow: #eab308;
  --purple: #a855f7;

  --r: 6px;
  --rl: 20px;
  
  --sh: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --sh2: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

  :root{
    --white:#FFF;
    --black:#000;
    --blue:#4287F5;
    --blue-deep:#2E6BDE;
    --blue-soft:#EEF4FE;
    --blue-mist:#DCE8FD;
    --ink:#0E1626;
    --slate:#5B6B85;
    --slate-2:#93A0B4;
    --line:rgba(14,22,38,.09);
    --line-2:rgba(14,22,38,.05);
    --green:#1FAA6E;
    --red:#E64848;
    --r-sm:10px; --r-md:16px; --r-lg:22px; --r-xl:28px;
    --shadow-1:0 1px 2px rgba(14,22,38,.05), 0 1px 3px rgba(14,22,38,.04);
    --shadow-2:0 8px 24px rgba(14,22,38,.08), 0 2px 8px rgba(66,135,245,.06);
    --shadow-3:0 30px 70px rgba(14,22,38,.16), 0 10px 26px rgba(66,135,245,.12);
    --spring:cubic-bezier(.34,1.56,.64,1);
    --ease:cubic-bezier(.4,0,.2,1);
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  *,*::before,*::after{box-sizing:border-box;margin:0;padding:0;justify-content: center;}
  html,body{height:100%; overflow:hidden;}
  body{
    background:var(--white); color:var(--ink); font-family:'DM Sans',sans-serif;
    font-size:14px; line-height:1.55; -webkit-font-smoothing:antialiased;
  }
  a{color:inherit; text-decoration:none;}
  button {
      cursor:pointer; border:none; font-family: 'Outfit';
      background:none; font-weight: 400;
  }
  input,select,textarea{font-family:inherit;}
  img{max-width:100%; display:block;}
  :focus-visible{outline:2.5px solid var(--blue); outline-offset:2px; border-radius:6px;}

/* SCROLLBAR */
/*
body::-webkit-scrollbar {
  width: 6px;
}
*/
/*body::-webkit-scrollbar-track {
  background: #e8edf0;
}*/
/*
body::-webkit-scrollbar-thumb {
  background-color: var(--blue);
  border-radius: 3px;
}
*/

/*
body.hide-scrollbar::-webkit-scrollbar-thumb {
  background-color: transparent;
}
*/
/*body.hide-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}*/
/*
body.hide-scrollbar {
  scrollbar-color: transparent transparent; 
}
*/

/* SCROLLBAR */
/*
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #e8edf0; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }
*/

#content {
    /*Safari e Chrome antigos*/
    -webkit-transform: scale(0.8);
    -webkit-transform-origin: 0 0;

    /*Firefox mais antigo*/
    -moz-transform: scale(0.8);
    -moz-transform-origin: 0 0;

    /*IE 9*/
    -ms-transform: scale(0.8);
    -ms-transform-origin: 0 0;

    /*navegadores atualizados*/
    transform: scale(0.8);
    transform-origin: 0 0;
}

/* NOSCROLL */
.noscroll {
   overflow: hidden; scrollbar-gutter: stable;
}
body.nobodyscroll {
  overflow: hidden;
}

/* SCROLLBAR */
body::-webkit-scrollbar {
  display: none;
}
body {
  /* zoom: 90%; */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* SIDEBAR SCROLLBAR */
.app-sb::-webkit-scrollbar {
  display: none;
}
.app-sb {
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
  overflow-y: auto;
}

.custom-scrollbar {
  position: fixed;
  top: 0;
  right: 2px;
  width: 5px;
  height: 20%; 
  background-color: var(--blue);
  border-radius: 4px;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.4s ease-in-out; 
  pointer-events: auto; 
  cursor: grab;
}

.scrollbar-track {
  position: fixed;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  z-index: 99998;
}

.custom-scrollbar.is-dragging {
  cursor: grabbing;
  background-color: var(--blue);
  opacity: 1 !important;
}

.hide-scrollbar {
  opacity: 0;
}

.logo-div {
    /* border: 1px solid; */
    position: relative;
    display: flex;
    justify-content: center;
    color: var(--blue);
    border-radius: 150px;
    /* box-shadow: var(--shadow-2); */
    /* backdrop-filter: drop-shadow(2px 4px 6px white); */
}

/* LOGO */
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  border:1px solid rgba(255,255,255,0.0);
  /*box-shadow: 0 2px 12px rgba(0,0,0,.0), inset 0 1px rgba(255,255,255,.0);*/
  border-radius: 200px;
  padding: 5px 10px;
  position: relative;
  right: 10px;
  filter: var(--img-filter);

  cursor: pointer;
  background: none;
  -webkit-backdrop-filter: var(--bd-filter);
  backdrop-filter: var(--bd-filter);
  box-shadow: var(--sh);
  margin: 5px;
  right: 0px;
}

/* LOGO SPACER */
.logo-spacer {
  display: none;
  position: relative;
  margin: 0px 5px;
  right: 20px;
  height: 20px;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.5);
}

.header-profile {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg3, var(--blue3));
  box-shadow: var(--sh);
  overflow: hidden;
  cursor: pointer;
  color:
  var(--blue3);
  padding: 3px/*18px 7px 7px;;; */;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header-profile:hover { 
  background: rgba(0, 0, 225, 0.2); color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 5px rgba(0, 0, 215, 0.3);
}
.header-profile img { 
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,.5));
}
.headerAvatar { width: 70%; height: auto; display: block; filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,.5)); }
.header-profile:hover .acc-avatar { color: var(--blue); }

  /* ============================================================ AUTH GATE */
  .auth-gate {
    position: fixed;
    inset: 0;
    z-index: 110000;
    display: flex;
    backdrop-filter: blur(10px) 
      saturate(0.7) brightness(0.9);
    align-items: center;
    justify-content: center;
    margin: 0px;
    transition: opacity .5s var(--ease);
    padding: 20px;
    transition:opacity .5s var(--ease);
    /*background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;*/
  }
  .auth-gate.hidden{opacity:0; pointer-events:none;}
  .gate-checking{display:flex; flex-direction:column; align-items:center; gap:16px; animation:fadeIn .4s var(--ease);}
  .gate-ring{width:44px; height:44px; border:3px solid var(--blue-mist); border-top-color:var(--blue); border-radius:50%; animation:spin .8s linear infinite;}
  .gate-checking p{font-size:13px; color:var(--slate); font-weight:500;}

  .login-card{
    width:100%;
    max-width:400px;
    background: var(--white);
    border-radius: 50px;
    border:1px solid var(--line);
    box-shadow:var(--shadow-3);
    padding:40px 36px;
    animation:scaleSpring .5s var(--spring);
  }
  .login-brand {
      display:flex;
      align-items:center;
      gap:6px;
      font-family:'Cormorant Garamond',serif;
      font-weight:700;
      font-size:22px;
      color:var(--blue);
      margin-bottom:26px;
      justify-content: left;
      filter: var(--img-filter);
  }
  .login-brand .dot{opacity: 0; width:6px; height:6px; background:var(--blue); border-radius:50%; margin-top:1px;}
  .login-card h2{font-family:'Outfit',serif; font-weight:500; font-size:25px; margin-bottom:8px;}
  .login-card p.sub{font-size:15px; color:var(--slate); line-height:1.65; margin-bottom:24px;}
  .login-card p.sub strong{color:var(--ink);}
  .login-field{margin-bottom:14px;}
  .login-field label{font-size:11.5px; font-weight:600; color:var(--slate); margin-bottom:6px; display:block;}
  .btn-login{width:100%; height:46px; border-radius:100px; background:var(--blue); color:#fff; font-weight:700; font-size:13.5px; margin-top:6px; transition:all .3s var(--spring); box-shadow:0 10px 24px rgba(66,135,245,.28); display:flex; align-items:center; justify-content:center; gap:8px;}
  .btn-login:hover{background:var(--blue-deep); transform:translateY(-2px); color: var(--white)}
  .btn-login.loading{pointer-events:none;}
  .login-foot{text-align:center; margin-top:18px; font-size:11.5px; color:var(--slate-2);}
  .login-foot a{color:var(--blue); font-weight:600;}
  .login-foot a:hover{text-decoration:underline;}

/* ══ UTILITÁRIOS AUSENTES RECRIADOS ══════════════════════ */
.fac { display: flex; align-items: center; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mb4 { margin-bottom: 4px; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; } 
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; }
.fs10 { font-size: 10px; } 
.fs11 {
    font-size: 13px; 
    justify-content: flex-start;
} 
.fs12 { font-size: 12px; } .fs13 { font-size: 13px; }
.fw6 { font-weight: 600; } .fw7 { font-weight: 700; }
.muted { color: var(--muted); }
.blue { color: var(--blue); } .red { color: var(--red); } .green { color: var(--green); } .orange { color: var(--orange); }

.card { background: var(--white); border: 1px solid var(--b2); border-radius: 20px; box-shadow: var(--sh2); overflow: hidden; }
.card-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--b2); }
.card-pad {padding: 20px;}
.card-title { font-size: 14px; font-weight: 700; color: var(--text); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; 
    gap: 6px; font-family: 'Outfit'; font-weight: 400; cursor: pointer; 
    transition: 0.2s; border: none; outline: none; 
}
.btn-sm {
    padding: 8px 14px; font-size: 12px; border-radius: 150px; 
}
.btn-xs { padding: 6px 10px; font-size: 11px; border-radius: var(--r); }

.btn-checklist {
    background: none;
    border: 1px solid var(--blue);
    color: var(--blue);
    padding: 10px;
    border-radius: 150px;
    font-size: 13px;
}
.btn-checklist:hover {
    background: var(--blue);
    border: 1px solid transparent;
    color: var(--white);
}

.btn-p {
    background: var(--blue); color: var(--white); 
}
.btn-p:hover { filter: brightness(1.1); }
.btn-o { background: transparent; border: 1.5px solid var(--b2); color: var(--text); }
.btn-o:hover { background: var(--bg3); }
.btn-ghost {background: transparent;color: var(--muted);border: 1px solid rgba(25,100,255,0.2);}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }

.inp, .sel, .ta {width: 100%;border: 1.5px solid var(--b2);border-radius: 25px;padding: 9px 14px;font-size: 13px;color: var(--text);background: var(--white);outline: none;transition: 0.2s;}
.inp:focus, .sel:focus, .ta:focus { border-color: var(--blue); }
.mono { font-family: 'JetBrains Mono', monospace; }
.fgrp { display: flex; flex-direction: column; gap: 6px; }
.fgrp label { font-size: 11px; font-weight: 700; color: var(--text); }
.fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 100px; font-size: 10px; font-weight: 700; }
.tag-blue { background: var(--blueDim); color: var(--blue); }
.tag-green { background: #dcfce7; color: var(--green); }
.tag-orange { background: #ffedd5; color: var(--orange); }
.tag-yellow { background: #fef08a; color: #854d0e; }
.tag-gray { background: var(--bg3); color: var(--muted); }

/* Toggle Switch */
.tog-wrap { position: relative; width: 36px; height: 20px; display: inline-block; cursor: pointer; }
.tog-inp { opacity: 0; width: 0; height: 0; }
.tog-lbl { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--b2); border-radius: 20px; transition: 0.3s; }
.tog-lbl::before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background: #fff; border-radius: 50%; transition: 0.3s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.tog-inp:checked + .tog-lbl { background: var(--blue); }
.tog-inp:checked + .tog-lbl::before { transform: translateX(16px); }

/* Toasts */
.toast-stack { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 120000; pointer-events: none; }
.toast {
    background: var(--white); box-shadow: var(--sh); padding: 12px 18px; border-radius: var(--r); 
    border: 1px solid var(--b2); display: none; align-items: center; gap: 10px; font-size: 13px; 
    font-weight: 600; transform: translateX(120%); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.toast.on { display: flex; transform: translateX(0); }
.t-dot { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--white); }
.t-ok { background: var(--green); } .t-err { background: var(--red); } .t-inf { background: var(--blue); }

/* TOAST 2 */
.toast2 {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px); background: #10141a;
    border: 1px solid rgba(255,255,255,0.1); color: #e8edf5; padding: 12px 20px; border-radius: 100px; font-size: 13px;
    font-weight: 500; z-index: 120000; display: flex; align-items: center; gap: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap; 
}
.toast2.show { transform: translateX(-50%) translateY(0); }
.toast2-icon { width: 20px; height: 20px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 11px; }

/* ══ APP SHELL ════════════════════════════════════════════ */
#appShell{min-height:100vh;background:var(--bg)}

/* top header */
.app-hdr {
    display: block;
    justify-content: left;
    box-shadow: var(--shadow-2);
    border-radius: 0px 0px 20px 20px;
    background: var(--surface0);
    backdrop-filter: blur(7px);
    border-bottom: 1px solid var(--white);
    position: sticky;
    top: 0;
    z-index: 200;
    /* box-shadow: var(--sh2); */
}
.app-hdr-in{display:flex;align-items:center;justify-content:space-between;padding:0 24px;/* height:58px; */}
.app-breadcrumb {
    /* border: 1px solid rgba(0,100,255,0.1); */
    /* background: rgba(255,255,255,0.5); */
    backdrop-filter: blur(16px);
    box-shadow: var(--sh);
    padding: 5px 12px;
    border-radius: 150px;
    font-size:11px;
    color:var(--muted);
    display:flex;
    align-items:center;
    gap:6px;
    height: 36px;
}
.app-breadcrumb a {
  color: var(--blue-deep);
  font-weight:300;
  text-decoration: none;
}
.app-hdr-right{display:flex;align-items:center;gap:8px}
.hdr-ico{width:36px;height:36px;background: var(--surface0);border-radius:50%;border: 1px solid rgba(0,100,255,0.1);backdrop-filter:blur(16px);box-shadow: var(--sh);display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer;transition:.18s;position:relative;color:var(--black);}
.hdr-ico:hover{border-color:var(--border);background:var(--blueDim);color:var(--blue)}
.hdr-ico .bdg{position:absolute;top:0;right:0;width:14px;height:14px;background:var(--red);color:#fff;font-size:8px;font-weight:700;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.seller-av{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--purple));display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#fff;cursor:pointer;border:2px solid var(--border)}
.store-badge {
  display:flex;
  background: var(--surface0);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0,100,255,0.1);
  box-shadow: var(--sh);
  border-radius:100px;
  padding:5px 12px;
  font-size:11px;
  font-weight:600;
  color: var(--black);
  align-items:center;
  gap:6px;
  height: 36px;
}
.store-badge::before {
  content:'';width:6px;height:6px;background:var(--blue);border-radius:50%
}

/* body layout */
.app-body{display:flex;min-height:calc(100vh - 58px)}

/* sidebar */
.app-sb {
  width: 200px;
  top: 10px;
  background: var(--surface0);
  box-shadow: var(--shadow-3);
  flex-shrink:0;
  /* border-right: 1px solid rgba(0,0,0,0.2); */
  border-radius: 0px 20px 20px 0px;
  flex-direction:column;
  position:sticky;
  display:flex;
  height: calc(100vh - 78px);
  overflow-y:auto
}
.sb-seller-info{padding:20px 16px;border-bottom:1px solid rgba(255,255,255,.07)}
.sb-av{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--purple));display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;color:#fff;margin-bottom:10px}
.sb-name {
  font-size:13px;font-weight:700;color:var(--black);margin-bottom:2px
}
.sb-store {
  font-size:11px;
  color: var(--text1);
}
.sb-plan {
  display:inline-flex;align-items:center;gap:4px;background:var(--white);
  border:1px solid rgba(100,100,255,0.25);color:var(--blue);font-size:9px;
  font-weight:700;padding:2px 8px;border-radius:100px;margin-top:6px;
  letter-spacing:.5px;text-transform:uppercase
}
.sb-nav{flex:1;padding:12px 8px}
.sb-sec-label {
  font-size:9px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color: var(--text);
  padding:8px 10px 4px
}
.nav-btn {
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 12px;
  border-radius:10px;
  cursor:pointer;
  transition:.18s;
  color: var(--black);
  font-size:12px;
  width:100%;
  text-align:left;
  border:none;
  background:rgba(255, 255, 255, 0);
  border: 1px solid rgba(255, 255, 255, 0);
  position:relative;
  transition: all 0.4s;
}
.nav-btn:hover {
  background:rgba(0,0,0,0);
  border: 1px solid var(--blue);
  color: var(--black);
  transition: all 0.4s;
  transform: translateY(-4px);
}
.nav-btn.on {
  background:rgba(0,0,0,0.9);
  border: 1px solid var(--border1);
  color:#fff
}
.nav-btn.on::before {
  content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:3px;height:18px;background:var(--white);border-radius:0 2px 2px 0
}
.nav-ico{font-size:16px;width:22px;text-align:center;flex-shrink:0;}
.nav-lbl{flex:1}
.nav-bdg {
  background:rgba(255,0,0,0.85);color:#fff;font-size:9px;font-weight:700;
  padding:1px 6px;border-radius:100px;margin-left:auto
}
.nav-new-bdg {
  background:var(--blue);color:#fff;font-size:8px;font-weight:700;
  padding:1px 5px;border-radius:100px;margin-left:auto
}
.sb-footer{padding:12px 8px;border-top:1px solid rgba(255,255,255,.07)}

/* main content */
.app-main {
  flex: 1;
  padding: 24px;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box; 
  height: calc(100vh); 
  overflow-y: auto;
  
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}
.app-main::-webkit-scrollbar {
  display: none;
}
.page{display:none;animation:pgIn .25s ease both}
.page.on{display:block}
@keyframes pgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.page-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.page-hd h2 {
    font-size:20px;
    letter-spacing:-.3px;
}
.page-hd p {
    font-size:14px;color:var(--muted);margin-top:2px;
    font-family: 'Outfit'; font-weight: 300;
}

/* ══ DASHBOARD ══════════════════════════════════════════ */
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.kpi{background: var(--white);border:1px solid var(--b2);border-radius:var(--rl);padding:18px 20px;box-shadow:var(--sh);position:relative;overflow:hidden;transition:.25s}
.kpi:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(37,99,235,.12)}
.kpi::after{content:'';position:absolute;top:-20px;right:-20px;width:80px;height:80px;border-radius:50%;opacity:.08}
.kpi.kpi-blue::after{background:var(--blue)}
.kpi.kpi-green::after{background:var(--green)}
.kpi.kpi-orange::after{background:var(--orange)}
.kpi.kpi-purple::after{background:var(--purple)}
.kpi-ico{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;margin-bottom:12px}
.kpi-ico.blue{background:var(--blueDim)}.kpi-ico.green{background:#dcfce7}.kpi-ico.orange{background:#ffedd5}.kpi-ico.purple{background:#f3e8ff}
.kpi-label{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.6px;margin-bottom:4px}
.kpi-val{font-family:'Sora',sans-serif;font-size:24px;font-weight:800;letter-spacing:-.5px;margin-bottom:6px}
.kpi-trend{font-size:11px;font-weight:600;display:flex;align-items:center;gap:3px}
.trend-up{color:var(--green)}.trend-down{color:var(--red)}
/* sparkline */
.sparkline{height:32px;margin-top:8px}
.sparkline svg{width:100%;height:32px}

/* revenue chart */
.rev-chart-wrap{position:relative}
.rev-chart{display:flex;align-items:flex-end;gap:6px;height:160px;padding:0 4px}
.rev-bar-wrap{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;position:relative}
.rev-bar{width:100%;border-radius:4px 4px 0 0;transition:all .4s cubic-bezier(.4,0,.2,1);cursor:pointer;position:relative}
.rev-bar.blue{background:linear-gradient(180deg,var(--blueL),var(--blue2))}
.rev-bar.blue:hover{filter:brightness(1.1)}
.rev-bar-tip{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;font-size:10px;font-weight:700;padding:4px 8px;border-radius:6px;white-space:nowrap;opacity:0;transition:.2s;pointer-events:none;z-index:10}
.rev-bar-wrap:hover .rev-bar-tip{opacity:1}
.rev-label{font-size:9px;color:var(--light);font-weight:600;letter-spacing:.3px}

/* chart grid lines */
.rev-chart-container{position:relative;padding:12px 0 0}
.rev-grid{position:absolute;inset:12px 4px 0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.rev-grid-line{border-top:1px dashed #e2e8f0;position:relative}
.rev-grid-line span{position:absolute;left:-36px;top:-8px;font-size:9px;color:var(--light);font-weight:600;white-space:nowrap}

/* category chart */
.cat-chart{display:flex;flex-direction:column;gap:10px}
.cat-row{display:flex;align-items:center;gap:10px}
.cat-lbl{font-size:12px;font-weight:500;width:90px;flex-shrink:0}
.cat-bar-bg{flex:1;height:8px;background:#f1f5f9;border-radius:100px;overflow:hidden}
.cat-bar-fg{height:100%;border-radius:100px;transition:width .6s cubic-bezier(.4,0,.2,1)}
.cat-pct{font-family:'Sora',sans-serif;font-size:12px;font-weight:700;width:36px;text-align:right;flex-shrink:0}

/* donut */
.donut-wrap{display:flex;align-items:center;gap:20px}
.donut{width:110px;height:110px;border-radius:50%;flex-shrink:0;position:relative}
.donut::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:62px;height:62px;background: var(--white);border-radius:50%}
.donut-legend{display:flex;flex-direction:column;gap:8px;flex:1}
.dl-row{display:flex;align-items:center;gap:7px;font-size:12px}
.dl-dot{width:10px;height:10px;border-radius:3px;flex-shrink:0}

/* recent orders table */
.tbl-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse}
thead th{/* background:var(--bg3); */font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);padding:10px 14px;text-align:left;border-bottom:1px solid var(--b2)}
tbody td{padding:12px 14px;border-bottom:1px solid var(--b2);font-size:12px;vertical-align:middle}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover td{background:var(--bg3)}
.td-link{color:var(--blue);font-weight:600;cursor:pointer}
.td-link:hover{text-decoration:underline}

/* top products */
.top-prod{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f1f5f9}
.top-prod:last-child{border-bottom:none}
.top-prod-em{width:40px;height:40px;border-radius:8px;background:var(--blueDim);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.top-prod-name{font-size:12px;font-weight:600;flex:1}
.top-prod-sales{font-size:11px;color:var(--muted)}
.top-prod-rev{font-family:'Sora',sans-serif;font-size:13px;font-weight:700;color:var(--blue)}
.top-rank{width:20px;height:20px;border-radius:50%;background:var(--blueDim);color:var(--blue);font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.top-rank.r1{background:var(--yellow);color:#854d0e}
.top-rank.r2{background:#e2e8f0;color:var(--navy3)}
.top-rank.r3{background:#ffedd5;color:var(--orange)}

/* quick actions */
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.quick-card{background: var(--white);border:1px solid var(--b2);border-radius:var(--rl);padding:16px;text-align:center;cursor:pointer;transition:.25s;box-shadow:var(--sh2)}
.quick-card:hover{border-color:var(--border);background:var(--blueDim);transform:translateY(-2px)}
.quick-ico{font-size:26px;margin-bottom:8px}
.quick-lbl{font-size:11px;font-weight:600;color:var(--muted)}

/* ══ PRODUCTS PAGE ════════════════════════════════════════ */
.filter-bar{background: var(--white);border:1px solid var(--b2);border-radius:var(--rl);padding:14px 18px;margin-bottom:16px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;box-shadow:var(--sh2)}
.filter-bar .inp{flex:1;min-width:180px;max-width:260px}
.status-tabs{display:flex;gap:4px;flex:1}
.stab{padding:6px 14px;border-radius:100px;font-size:11px;font-weight:600;cursor:pointer;transition:.18s;color:var(--muted);border:1.5px solid transparent}
.stab:hover{background:var(--bg3)}
.stab.on{/* background:var(--blueDim); */color:var(--blue);border-color:var(--border)}
/* checkbox col */
.chk-col{width:32px; display: flex; position: relative; top: 11px;}
.chk{accent-color:var(--blue);width:14px;height:14px;cursor:pointer}
.prod-thumb{width:36px;height:36px;border-radius:7px;background:var(--blueDim);display:flex;align-items:center;justify-content:center;font-size:18px}
.stock-val{font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:600}
.stock-low{color:var(--red)}.stock-ok{color:var(--green)}.stock-med{color:var(--orange)}
.action-dots{width:28px;height:28px;border-radius:var(--r);display:flex;align-items:center;justify-content:center;font-size:16px;transition:.18s;flex-shrink:0;position:relative;cursor:pointer}
.action-dots:hover{background:var(--bg3)}
.action-menu{position:absolute;top:100%;right:0;background:#fff;border:1px solid var(--b2);border-radius:var(--r);box-shadow:0 8px 24px rgba(15,26,46,.12);width:150px;z-index:50;display:none;overflow:hidden}
.action-menu.on{display:block}
.am-item{padding:9px 14px;font-size:12px;cursor:pointer;transition:.15s;display:flex;align-items:center;gap:8px}
.am-item:hover{background:var(--bg3)}
.am-item.red{color:var(--red)}

/* ══ NEW PRODUCT ═════════════════════════════════════════ */
.np-layout{display:grid;grid-template-columns:1fr 320px;gap:18px;align-items:start}
.np-preview {
    position:sticky;
    top:-15px;
    margin-bottom: 100px;
    background: var(--white);
    border: 1px solid var(--b2);
    box-shadow: var(--sh2);
    border-radius: 20px;
    padding: 20px 0px;
    padding-bottom: 50px;
}
.preview-card {
    /* box-shadow: var(--box-shdw); */
    max-width: 250px;
    margin-left: 20px;
    background: var(--white);
    border: 1px solid var(--border1);
    border-radius: var(--rad-lg);
    overflow: hidden;
    /* transition: all .3s cubic-bezier(.4,0,.2,1); */
    position: relative;
    display: flex;
    flex-direction: column;
}
.preview-img{background: none;aspect-ratio: 1 / 1;margin: auto;width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;font-size: 72px;}
.preview-info {
    position: relative;
    top: -18px;
    padding:14px;
    border-radius: 20px 20px 0px 0px;
    background: none;
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0,0,0,0.1);
}
.preview-name{font-size:14px;font-weight:700;margin-bottom:4px}
.preview-price{font-family:'Sora',sans-serif;font-size:22px;font-weight:800;color:var(--blue)}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.secondary-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.img-block {
  position: relative;
  background: none;
  border: 1px dashed var(--border, #e2e8f0);
  border-radius: var(--r, 12px);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.img-block.main-block {
  aspect-ratio: 1;
  width: 100%;
  max-width: 300px;
  min-width: 300px;
  border-radius: 36px;
}
.img-block.small-block {
  aspect-ratio: 1;
  width: 100%;
  max-width: 66px;
  border-radius: 16px;
}
.img-block:hover {
  border-color: var(--blue, #2563eb);
}
.img-preview-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.img-block.has-image:hover .img-edit-overlay {
  opacity: 1;
}
.img-block.small-block .img-edit-overlay {
  font-size: 16px;
}

/* IMG Delete Button */
.btn-delete-main-img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(235, 37, 37, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-delete-main-img:hover {
  background: #d81d1d;
  transform: scale(1.1);
}
.img-block.main-block.has-image:hover .btn-delete-main-img {
  opacity: 1;
}
.modal-alert-buttons-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}
.modal-alert-buttons-vertical button {
  width: 100%;
}

/* Modal Images */
.m-alert-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}
.m-alert-container.active {
  display: flex;
}
.m-alert-content {
  background: var(--bg-card, #ffffff);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 320px;
  animation: modalPopUp 0.3s ease-out;
}
.m-alert-icon {
  font-size: 32px;
  color: var(--blue, #2563eb);
  margin-bottom: 12px;
}
@keyframes modalPopUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* upload area */
.upload-area {
    border: 2px dashed var(--b2);
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    border-radius: var(--rl);
    padding: 32px 20px;
    aspect-ratio: 1 / 1;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    background: var(--bg3);
}
.upload-area:hover{border-color:var(--blue);background:var(--blueDim)}
.upload-area .icon{font-size:36px;margin-bottom:8px;opacity:.4}
.upload-area h4{font-size:13px;font-weight:600;margin-bottom:4px}
.upload-area p{font-size:11px;color:var(--muted)}
/* variation builder */
.var-item{display:flex;align-items:center;gap:8px;padding:8px;background:var(--bg3);border-radius:var(--r);border:1px solid var(--b2);margin-bottom:6px}
.var-remove{width:22px;height:22px;border-radius:50%;background:#fee2e2;color:var(--red);font-size:13px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;font-weight:700}

.prating { display: flex; align-items: center; justify-content: left; gap: 5px; margin-bottom: 10px; }
.pstars { color: #29a0ff; font-size: 15px; letter-spacing: 1px; }
.prcnt  { font-size: 11px; color: var(--muted); }

/* ══ ORDERS ══════════════════════════════════════════════ */
.order-filter-tabs{display:flex;gap:6px;margin-bottom:18px;flex-wrap:wrap}
.order-card-wrap{display:flex;flex-direction:column;gap:12px}
.ord{background:#fff;border:1px solid var(--b2);border-radius:var(--rl);overflow:hidden;box-shadow:var(--sh2);transition:.2s}
.ord:hover{border-color:var(--border);box-shadow:var(--sh)}
.ord-hd{padding:14px 18px;background:var(--bg3);border-bottom:1px solid var(--b2);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.ord-id{font-family:'Sora',sans-serif;font-size:13px;font-weight:700}
.ord-body{padding:14px 18px;display:flex;gap:16px;align-items:flex-start}
.ord-items{flex:1;display:flex;gap:8px;flex-wrap:wrap}
.ord-em{width:44px;height:44px;border-radius:8px;background:var(--blueDim);display:flex;align-items:center;justify-content:center;font-size:20px;border:1px solid var(--border);flex-shrink:0}
.ord-info{flex:1;min-width:0}
.ord-item-name{font-size:12px;font-weight:600}
.ord-item-var{font-size:10px;color:var(--muted)}
.ord-ft{padding:12px 18px;border-top:1px solid var(--b2);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.ord-total{font-family:'Sora',sans-serif;font-size:16px;font-weight:700;color:var(--blue)}
.ord-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tracking-inp{background:var(--bg3);border:1.5px solid var(--b2);color:var(--text);padding:7px 12px;border-radius:var(--r);font-size:11px;outline:none;transition:.2s;width:160px}
.tracking-inp:focus{border-color:var(--blue);background:#fff}

/* ══ FINANCES ════════════════════════════════════════════ */
.bal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}
.bal-card {
    background: var(--white);
    border:1px solid var(--b2);
    border-radius:var(--rl);
    padding:20px 22px;
    box-shadow:var(--sh);
    position:relative;
    overflow:hidden
}
.bal-card::before{content:'';position:absolute;top:-24px;right:-24px;width:80px;height:80px;border-radius:50%;opacity:.1}
.bal-card.bc-main::before{background:var(--blue)}
.bal-card.bc-pend::before{background:var(--orange)}
.bal-card.bc-total::before{background:var(--green)}
.bal-ico{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:18px;margin-bottom:12px}
.bal-ico.bi-blue{background:var(--blueDim)}.bal-ico.bi-orange{background:#ffedd5}.bal-ico.bi-green{background:#dcfce7}
.bal-lbl{font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.bal-val{font-family:'Sora',sans-serif;font-size:26px;font-weight:800;letter-spacing:-.5px}
.bal-val.bv-blue{color:var(--blue)}.bal-val.bv-orange{color:var(--orange)}.bal-val.bv-green{color:var(--green)}
.bal-note{font-size:11px;color:var(--muted);margin-top:4px}
/* withdraw */
.withdraw-card {
    background:linear-gradient(135deg,#004cff,var(--blue2));
    border-radius:var(--rl);padding:24px;margin-bottom:20px;
    position:relative;overflow:hidden
}
.withdraw-card::before{content:'';position:absolute;top:-40px;right:-40px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.05)}
.wc-title{font-family:'Sora',sans-serif;font-size:17px;font-weight:700;color:#fff;margin-bottom:6px}
.wc-sub{font-size:12px;color:rgba(255,255,255,.6);margin-bottom:18px}
.wc-row{display:flex;gap:10px;position:relative;z-index:1}
.wc-inp{flex:1;background:rgba(255,255,255,.15);border:1.5px solid rgba(255,255,255,.2);color:#fff;padding:11px 14px;border-radius:var(--r);font-size:14px;font-family:'JetBrains Mono',monospace;outline:none;transition:.2s}
.wc-inp::placeholder{color:rgba(255,255,255,.4)}
.wc-inp:focus{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.2)}
.wc-inp2 {
    background:rgba(255,255,255,1);border:1.5px solid rgba(255,255,255,.8);
    color:#000;padding:11px 14px;border-radius:150px; font-size:12px;outline:none;cursor:pointer
}
.btn-withdraw {
    background:var(--blue);color:#fff;padding:11px 22px;
    border-radius:150px;font-weight:700;font-size:13px;
    transition:.2s;white-space:nowrap; border: 1px solid #fff;
    cursor:pointer;font-family:inherit
}
.btn-withdraw:hover {
    background:var(--blue2)
}
/* extract table */
.ext-row-icon{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
.ext-val-pos{font-family:'Sora',sans-serif;font-weight:700;color:var(--green)}
.ext-val-neg{font-family:'Sora',sans-serif;font-weight:700;color:var(--red)}

/* ══ SETTINGS ════════════════════════════════════════════ */
.cfg-grid{display:grid;grid-template-columns:200px 1fr;gap:20px;align-items:start}
.cfg-sb {
    background: var(--white);
    border:1px solid var(--b2);
    border-radius:var(--rl);
    overflow:hidden;
    box-shadow:var(--sh2);
    position:sticky;
    top:0px
}
.cfg-nav-item {
    display:flex;align-items:center;justify-content: left; 
    gap:9px;padding:11px 16px;font-size:12px;font-weight:500;
    cursor:pointer;transition:.18s;color:var(--muted);
    border-left:3px solid transparent
}
.cfg-nav-item:hover {
    background:var(--bg3);color:var(--text);
    border-radius: 0px 150px 150px 0px;
}
.cfg-nav-item.on {
    background:var(--blueDim);color:var(--blue);
    border-left-color:var(--blue);
    border-radius: 0px 150px 150px 0px;
}
.cfg-panel{display:none}
.cfg-panel.on{display:block;animation:pgIn .2s ease}
/* logo upload */
.logo-upload{background:var(--bg3);border:2px dashed var(--b2);border-radius:var(--rl);padding:24px;text-align:center;cursor:pointer;transition:.2s;position:relative}
.logo-upload:hover{border-color:var(--blue);background:var(--blueDim)}
.logo-preview{width:80px;height:80px;border-radius:var(--rl);background:linear-gradient(135deg,var(--blue),var(--purple));display:flex;align-items:center;justify-content:center;font-family:'Sora',sans-serif;font-weight:800;color:#fff;font-size:24px;margin:0 auto 10px}
/* shipping rule */
.ship-rule{background:var(--bg3);border:1.5px solid var(--b2);border-radius:var(--r);padding:12px 14px;margin-bottom:8px;display:flex;align-items:center;gap:12px}
.ship-rule:hover{border-color:var(--border)}
/* danger zone */
.danger-zone{background:#fef2f2;border:1.5px solid #fecaca;border-radius:var(--rl);padding:20px 22px}

/* ── SIDEBAR OVERLAY ── */
.overlay {
  position: fixed; inset: 0;
  background: none; z-index: 1999;
  opacity: 0; pointer-events: none;
  transition: opacity .3s; backdrop-filter: blur(4px);
}
.overlay.on { opacity: 1; pointer-events: all; }

/* ── CROP MODAL ── */
.crop-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.crop-modal.active {
  display: flex;
  opacity: 1;
}
.crop-modal-content {
  background-color: var(--bg-card, #ffffff);
  width: 90%;
  max-width: 450px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.crop-modal.active .crop-modal-content {
  transform: scale(1);
}
.crop-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.crop-hd h3 {
  margin: 0;
  font-size: 1.1rem;
}
.img-container {
  max-height: 50vh; 
  width: 100%;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}
.img-container img {
  display: block;
  max-width: 100%;
}

/* Animação de saída (Sumir e Diminuir) */
.animate-out {
  animation: popOut 0.3s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------- */
.img-animate-out {
  animation: popOutScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.img-animate-in {
  animation: popInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes popOutScale {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.5); opacity: 0; }
}

@keyframes popInScale {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── MENU SIDEBAR ────────────────────────────────────────── */
    /* Theme switch, inside the More sidebar */
    .theme-switch-wrap { padding: 6px 10px 14px; }
    .acc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 1px; margin-bottom: 10px; padding-left: 5px; }
    .theme-switch { display: flex; gap: 6px; background: var(--bg3); border-radius: 100px; padding: 4px; }
    .theme-opt {
      flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
      padding: 9px 6px; border-radius: 100px; font-size: 10.5px; font-weight: 600; color: var(--muted);
      transition: background .2s, color .2s, box-shadow .2s;
    }
    .theme-opt i { font-size: 14px; }
    .theme-opt:hover { color: var(--text); }
    .theme-opt[aria-checked="true"] {background: var(--selected);color: var(--selected1);box-shadow: var(--shadow);}

  .more-sb {
    opacity: 0;
    display: flex;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    border: 3px solid var(--white);
    background: var(--surface-2);
    box-shadow: var(--box-shdw);
    /* border-left: 0px solid var(--border2); */
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    z-index: 2000;
    transform: translateX(100%);
    transition: opacity 0.35s, transform .35s cubic-bezier(.4,0,.2,1);
    flex-direction: column;
  }
  .more-sb.on { opacity: 1; transform: translateX(0); }

    .more-hd {
      margin-bottom: 5px;
      padding: 24px;
      background: var(--white);
      border-bottom: 1px solid var(--border2);
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-radius: 22px 0px 30px 30px;
    }
    .more-hd h3 {font-family: 'Outfit';font-size: 22px;font-weight: 500;}
    .more-cls {
    width: 34px;
    height: 34px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: border-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    }
    .more-cls:hover {
    border-color: var(--red);
    color: var(--red);
    transform: scale(1.2);
    box-shadow: 0px 0px 15px rgba(255,100,100,0.5);
}
    .more-cls svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

    .more-body {
      flex: 1;
      overflow-y: auto;
      padding: 8px;
      display: flex;
      flex-direction: column;
      justify-content: normal;
      gap: 0px;
      min-height: 0;
    }
    .more-empty-st { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--muted); gap: 12px; }
    .more-empty-st span { font-size: 48px; }

.btn-menu3 {
  width: 100%;
  color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  padding: 14px;
  border-radius: 22px;
  transition: transform 0.3s, background 0.3s, border 0.2s;
  margin-bottom: 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 12px;
}
.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
}
.btn-title {
  font-weight: 600;
  font-size: 16px;
}
.btn-txt {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  text-align: left;
}
.btn-arrow {
  font-size: 16px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, color 0.3s;
}
/* ─────────────────────────────────────────────────── */
.btn-menu3:hover {
  /*box-shadow: 0 4px 15px rgba(0, 0, 120, 0.2); */
  transform: scale(1.02);
  /* border: 1px solid var(--blue); */
  /* color: var(--blue); */
}
.btn-menu3:hover .btn-txt {
  /*color: var(--blue);*/
}
.btn-menu3:hover .btn-arrow {
  color: var(--blue);
  transform: translateX(4px); 
}

.notif-ft {width: 100%;padding: 20px;border-top: 1px solid var(--border2);background: var(--white);border-radius: 30px 30px 0px 20px;}
.btn-cont {
  width: 100%;
  background: none;
  border: 1px solid rgba(25,100,255,0.3);
  color: var(--blue);
  padding: 11px;
  border-radius: 100px;
  font-size: 16px;
  transition: border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-cont:hover { 
  border-color: var(--blue);
  color: var(--blue); 
  transform: scale(1.05);
  box-shadow: 0px 0px 10px rgba(25,100,255,0.5);
}
.more-sb {z-index: 9999;}

/* ── ACC SIDEBAR ── */
.acc-sb {
  opacity: 0;
  display: flex;
  position: fixed;
  border: 3px solid var(--white);
  right: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  background: var(--surface-2);
  box-shadow: var(--box-shdw);
  /* border-left: 0px solid var(--border2); */
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  z-index: 2000;
  transform: translateX(100%);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(.4,0,.2,1);
  flex-direction: column;
}
.acc-sb.on { opacity: 1; transform: translateX(0); }

.acc-hd {
  padding: 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px 0px 30px 30px;
}
.acc-hd h3 {font-family: 'Outfit';font-size: 22px;font-weight: 500;}
.acc-cls {width: 34px;height: 34px;aspect-ratio: 1/1;border-radius: 50%;border: 1px solid var(--border);display: flex;align-items: center;justify-content: center;color: var(--black);transition: border-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;}
.acc-cls:hover {
    border-color: var(--red);
    color: var(--red);
    transform: scale(1.2);
    box-shadow: 0px 0px 15px rgba(255,100,100,0.5);
}
.acc-cls svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; }

.acc-body {flex: 1;overflow-y: auto;padding: 10px;display: flex;flex-direction: column;gap: 10px;}

.acc-profile-summary {
  /* background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%); */
  background: var(--white);
  border: 1px solid var(--border1);
  padding: 24px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: normal;
  gap: 15px;
  /* color: #fff; */
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  transition: transform 0.2s;
  cursor: pointer;
}
.acc-profile-summary:hover {
  transform: scale(1.04);
}
.acc-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(25,100,255,1);
  box-shadow: 0 0 20px rgb(25 100 255 / 50%);
  overflow: hidden;
  /* background: #000; */
  flex-shrink: 0;
}
.acc-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.acc-info { display: flex; flex-direction: column; min-width: 0; }
.acc-info strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-info span { font-size: 12px; opacity: 0.8; overflow: hidden; text-overflow: ellipsis; }

.acc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 1px; margin-bottom: 10px; padding-left: 5px; }
.acc-menu-group {display: flex;flex-direction: column;border-radius: 22px;background: var(--white);border: 1px solid var(--border1);padding: 10px;gap: 4px;}
.btn-acc-option {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  justify-content: normal;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.btn-acc-option i { font-size: 16px; color: var(--blue); width: 20px; text-align: center; }
.btn-acc-option:hover { background: var(--blue-dim); color: var(--blue); transform: translateX(5px); }

.acc-ft {margin-top: auto;padding-top: 10px;}
.btn-logout-sb {
  width: 100%;
  padding: 14px;
  border-radius: 150px;
  background: var(--white);
  color: var(--red);
  border: 1px solid var(--border1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}
.btn-logout-sb:hover {background: rgba(255,0,0);transform: scale(1.02);color: #fff;/* border-color: var(--red); */}

/* ---------------------------------------------------- */
@media (max-width: 768px), (orientation: portrait){
    .np-layout { grid-template-columns: auto !important; }
}
@media (max-width: 660px), (orientation: portrait){
    .app-hdr { display: flex !important; }
    .app-hdr { justify-content: center !important; }
    .app-breadcrumb { display: none !important; }
    .logo-div { margin-right: 50px }
}
@media (max-width: 440px) {
    .store-badge { display: none !important; }
}
@media (max-width: 373px){
    .acc-sb { width: 100%; }
}
@media (max-width: 360px) {
    .logo-div { display: none !important; }
    .mob-btn { font-size: 15px !important; }
}
@media (max-width: 200px) {
    .mob-btn { font-size: 12px !important; }
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  border-radius: 30px 30px 0px 0px;
  width: 100%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 -4px 10px rgb(0 0 0 / 5%);
  z-index: 1000;
  height: 55px;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}
.mob-btn {
  background: transparent;
  border: none;
  color: var(--black);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}
.mob-btn:hover {
  background: var(--bg3);
}
.mob-btn.on {
  color: var(--blue-deep);
  background: var(--blueDim);
  border-bottom: 1px solid;
}
.mob-btn.danger {
  color: var(--red);
}

@media (max-width: 768px), (orientation: portrait) {
  .app-sb {
    display: none !important;
  }
  .mobile-nav {
    display: flex !important;
  }
  .app-main {
    height: calc(100vh + 120px) !important; 
    padding-bottom: 20px !important; 
    
    zoom: 0.8;
  }
  
  @-moz-document url-prefix() {
    .app-main {
      transform: scale(0.8);
      transform-origin: top center;
      width: 117.64%;
    }
  }
    
  .login-card {
      max-width: 350;
      padding: 30px 20px;
  }
}
