/* ---------- Card Login — extends style.css theme ---------- */

.center-body{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:32px;
  background:var(--cream);
  overflow:hidden;
}

/* ================= Animated background ================= */
.bg-anim{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}

/* ---- photographic backdrop (grocery cart), toned down ---- */
.bg-photo{
  position:absolute;
  inset:0;
  background-image:url("image/bg.png");
  background-size:cover;
  background-position:center 50%;
  background-repeat:no-repeat;
  opacity:30;                 /* keeps it subtle, never competes with the card */
  filter:saturate(1.05) contrast(1.02);
  transform:scale(1.04);        /* hides edge softening from the blur/scale trick */
}
.bg-photo-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(135% 110% at 40% 25%, rgba(253,247,235,0.35) 0%, rgba(250,241,222,0.72) 45%, var(--cream) 60%),
    linear-gradient(180deg, rgba(43,10,31,0.10) 0%, rgba(43,10,31,0) 30%, rgba(43,10,31,0) 70%, rgba(43,10,31,0.14) 100%);
}

.bg-grid{
  position:absolute;
  inset:-2px;
  background-image:radial-gradient(rgba(77,22,56,0.09) 1.4px, transparent 1.4px);
  background-size:26px 26px;
  opacity:0.5;
}

.bg-blob{
  position:absolute;
  border-radius:50%;
  filter:blur(60px);
  opacity:0.55;
  will-change:transform;
}
.blob-a{
  width:520px; height:520px;
  top:-180px; left:-140px;
  background:radial-gradient(circle, rgba(201,162,74,0.32), transparent 70%);
  animation:driftA 22s ease-in-out infinite;
}
.blob-b{
  width:460px; height:460px;
  bottom:-160px; right:-120px;
  background:radial-gradient(circle, rgba(77,22,56,0.28), transparent 70%);
  animation:driftB 26s ease-in-out infinite;
}
.blob-c{
  width:340px; height:340px;
  top:40%; left:60%;
  background:radial-gradient(circle, rgba(201,162,74,0.18), transparent 70%);
  animation:driftC 19s ease-in-out infinite;
}

@keyframes driftA{
  0%, 100%{ transform:translate(0, 0) scale(1); }
  50%{ transform:translate(60px, 50px) scale(1.12); }
}
@keyframes driftB{
  0%, 100%{ transform:translate(0, 0) scale(1); }
  50%{ transform:translate(-50px, -40px) scale(1.08); }
}
@keyframes driftC{
  0%, 100%{ transform:translate(0, 0) scale(1); }
  50%{ transform:translate(-40px, 30px) scale(0.9); }
}

@media (prefers-reduced-motion: reduce){
  .bg-blob{ animation:none; }
}

/* ---- floating shopping icons (two depth layers) ---- */
.bg-float{
  position:absolute;
  bottom:-60px;
  color: rgb(43, 10, 31);
  opacity:0;
  animation-name:floatUp;
  animation-timing-function:ease-in-out;
  animation-iteration-count:infinite;
}
.layer-far{ filter:blur(2.5px); }
.layer-near{ filter:blur(0); }

.f1{ left:5%;  font-size:30px; animation-duration:24s; animation-delay:0s;  }
.f4{ left:38%; font-size:26px; animation-duration:27s; animation-delay:5s;  }
.f7{ left:70%; font-size:32px; animation-duration:26s; animation-delay:9s;  }
.f9{ left:88%; font-size:28px; animation-duration:23s; animation-delay:2s;  }

.f2{ left:16%; font-size:16px; animation-duration:14s; animation-delay:2.5s;}
.f3{ left:27%; font-size:13px; animation-duration:17s; animation-delay:6s;  }
.f5{ left:53%; font-size:14px; animation-duration:13s; animation-delay:4s;  }
.f6{ left:62%; font-size:17px; animation-duration:16s; animation-delay:1s;  }
.f8{ left:80%; font-size:13px; animation-duration:15s; animation-delay:8s;  }
.f10{left:46%; font-size:12px; animation-duration:12s; animation-delay:10s; }

@keyframes floatUp{
  0%{ transform:translate(0,0) rotate(0deg); opacity:0; }
  14%{ opacity:var(--peak,0.35); }
  50%{ transform:translate(var(--sway,20px), -58vh) rotate(10deg); }
  86%{ opacity:var(--peak,0.35); }
  100%{ transform:translate(calc(var(--sway,20px) * -1), -115vh) rotate(-14deg); opacity:0; }
}

@media (prefers-reduced-motion: reduce){
  .bg-float{ animation:none; display:none; }
}

/* ================= Auth card shell ================= */
.auth-card{
  position:relative;
  z-index:1;
  width:100%;
  max-width:400px;
  background:var(--card);
  border-radius:26px;
  box-shadow:0 30px 70px rgba(43,10,31,0.18), 0 0 0 1px rgba(201,162,74,0.14);
  overflow:visible;
  animation:cardEnter .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cardEnter{
  from{ opacity:0; transform:translateY(18px) scale(.985); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .auth-card{ animation:none; }
}

/* ================= Hero dome (shopping visual) ================= */
.hero-dome{
  position:relative;
  height:170px;;
  border-radius:26px 26px 0 0;
  overflow:hidden;
  color:#f2e9ec;
}
.hero-dome-shape{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}
.hero-sparks{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.hero-content{
  position:relative;
  z-index:1;
  height:100%;
  padding:22px 26px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.brand{ display:flex; align-items:center; gap:11px; align-self:flex-start; }
.brand-mark{
  width:36px; height:36px;
  border-radius:50%;
  background:var(--gold-500);
  display:flex; align-items:center; justify-content:center;
  color:var(--maroon-950);
  font-family:'Cormorant Garamond', serif;
  font-weight:700;
  font-size:15px;
  flex-shrink:0;
}
.brand-name{
  font-family:'Cormorant Garamond', serif;
  font-size:17px;
  font-weight:600;
  letter-spacing:0.5px;
  color:#fff;
  line-height:1.1;
  text-align:left;
}
.brand-sub{
  font-size:8.5px;
  letter-spacing:1.2px;
  color:var(--gold-100);
  text-transform:uppercase;
  opacity:0.75;
  margin-top:2px;
  text-align:left;
}

.hero-illustration{
  width:150px;
  height:auto;
  overflow:visible;
  margin-top:2px;
  animation:artFloat 5s ease-in-out infinite;
}
@keyframes artFloat{
  0%, 100%{ transform:translateY(0); }
  50%{ transform:translateY(-6px); }
}

.hero-title{
  font-family:'Cormorant Garamond', serif;
  font-size:32px;
  font-weight:700;
  line-height:1;
  color:#fff;
  margin-top:16px;
}
.hero-subtitle{
  font-size:11px;
  color:rgba(244,233,210,0.68);
  margin-top:3px;
}

.spark{ animation:sparkTwinkle 2.4s ease-in-out infinite; transform-origin:center; }
.spark-1{ animation-delay:0s; }
.spark-2{ animation-delay:.5s; }
.spark-3{ animation-delay:1s; }
.spark-4{ animation-delay:1.4s; }
.spark-5{ animation-delay:.8s; }
@keyframes sparkTwinkle{
  0%, 100%{ opacity:0.25; transform:scale(0.75); }
  50%{ opacity:1; transform:scale(1.1); }
}

.float-tag-h{ animation:tagSwingH 3.2s ease-in-out infinite; transform-box:fill-box; transform-origin:20% 30%; }
@keyframes tagSwingH{
  0%, 100%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-3px) rotate(-6deg); }
}

.burst-item-h{ animation:burstBobH 3.6s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
.burst-bag-h{ animation-delay:.2s; animation-duration:4.2s; }
.burst-coin-h{ animation-delay:1.1s; animation-duration:3.4s; }
@keyframes burstBobH{
  0%, 100%{ transform:translateY(0); }
  50%{ transform:translateY(-6px); }
}

@media (prefers-reduced-motion: reduce){
  .hero-illustration, .spark, .float-tag-h, .burst-item-h{ animation:none; }
}

/* ================= Overlapping avatar ================= */
.hero-avatar{
  position:relative;
  z-index:2;
  width:64px;
  height:64px;
  margin:-32px auto 4px;
  border-radius:50%;
  background:var(--card);
  border:4px solid var(--card);
  box-shadow:0 10px 22px rgba(43,10,31,0.22), 0 0 0 1px rgba(201,162,74,0.18);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--maroon-900);
  font-size:20px;
}

/* ================= Form panel ================= */
.form-panel-single{
  padding:14px 34px 34px;
  display:flex;
  flex-direction:column;
}

.field-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:15px;
}

.input-wrap{
  position:relative;
  display:flex;
  align-items:center;
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:11px;
  padding:0 15px;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input-wrap:focus-within{
  border-color:var(--gold-500);
  background:var(--card);
  box-shadow:0 0 0 4px rgba(201,162,74,0.14);
}
.input-wrap i:first-child{
  color:var(--ink-soft);
  font-size:13px;
  margin-right:11px;
  flex-shrink:0;
}
.input-wrap input{
  flex:1;
  min-width:0;
  border:none;
  outline:none;
  background:transparent;
  font-family:'Inter', sans-serif;
  font-size:13.5px;
  color:var(--ink);
  padding:13px 0;
}
.input-wrap input::placeholder{ color:#b3a3ab; }

/* Browser oda built-in password reveal icon (Edge/Chrome) hide pannuvom,
   illana namma custom eye button oda sேrந்து 2 eye icons theriyும். */
.input-wrap input[type="password"]::-ms-reveal,
.input-wrap input[type="password"]::-ms-clear{
  display:none;
}
.input-wrap input[type="password"]::-webkit-credentials-auto-fill-button,
.input-wrap input[type="password"]::-webkit-strong-password-auto-fill-button{
  visibility:hidden;
  display:none !important;
  pointer-events:none;
  position:absolute;
  right:0;
}

.toggle-pass{
  border:none;
  background:transparent;
  color:var(--ink-soft);
  cursor:pointer;
  font-size:12.5px;
  padding:6px;
}
.toggle-pass:hover{ color:var(--maroon-900); }

.field-group.has-error .input-wrap{
  border-color:var(--red);
  box-shadow:0 0 0 4px rgba(178,59,69,0.1);
}
.field-error{
  font-size:11px;
  color:var(--red);
  min-height:13px;
  display:none;
  padding-left:2px;
}
.field-group.has-error .field-error{ display:block; }

.field-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:14px 0 22px;
}

.remember-check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  color:var(--ink);
  cursor:pointer;
  user-select:none;
}
.remember-check input{
  position:absolute;
  opacity:0;
  width:0; height:0;
}
.check-box{
  width:16px; height:16px;
  border-radius:5px;
  border:1.5px solid var(--line);
  background:var(--card);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease, border-color .15s ease;
  flex-shrink:0;
}
.check-box::after{
  content:"";
  width:4.5px; height:8px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(45deg) translate(-1px,-1px);
  opacity:0;
}
.remember-check input:checked + .check-box{
  background: linear-gradient(135deg, var(--maroon-900), var(--maroon-800));
  border-color:var(--maroon-900);
}
.remember-check input:checked + .check-box::after{ opacity:1; }
.remember-check input:focus-visible + .check-box{
  box-shadow:0 0 0 3px rgba(201,162,74,0.3);
}

.forgot-link{
  font-size:12px;
  font-weight:600;
  color:var(--gold-600);
}
.forgot-link:hover{ text-decoration:underline; }

.btn-signin{
  position:relative;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  background: linear-gradient(90deg, var(--maroon-900), var(--maroon-800));
  color:#fff;
  border:none;
  padding:13px 18px;
  border-radius:11px;
  font-family:'Inter', sans-serif;
  font-size:14px;
  font-weight:600;
  letter-spacing:.2px;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(61,15,44,0.25);
  transition:background .15s ease, transform .1s ease;
  overflow:hidden;
}
.btn-signin::after{
  content:"";
  position:absolute;
  top:0; left:-60%;
  width:40%; height:100%;
  background:linear-gradient(115deg, transparent, rgba(255,255,255,0.28), transparent);
  transform:skewX(-20deg);
  transition:left .55s ease;
}
.btn-signin:hover::after{ left:130%; }
.btn-signin:hover{ background: linear-gradient(90deg, var(--maroon-800), var(--maroon-900)); }
.btn-signin:active{ transform:translateY(1px); }

.btn-signin.loading{ pointer-events:none; opacity:0.85; }
.btn-signin.loading .btn-label::after{
  content:"";
  display:inline-block;
  width:13px; height:13px;
  margin-left:9px;
  border:2px solid rgba(255,255,255,0.4);
  border-top-color:#fff;
  border-radius:50%;
  vertical-align:middle;
  animation:spin .7s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.form-note{
  margin-top:14px;
  font-size:12px;
  text-align:center;
  min-height:15px;
}
.form-note.error{ color:var(--red); }
.form-note.success{ color:var(--green); }

.card-footer-single{
  margin-top:20px;
  text-align:center;
  font-size:12.5px;
  color:var(--ink-soft);
}
.card-footer-single a{
  color:var(--gold-600);
  font-weight:600;
}
.card-footer-single a:hover{ text-decoration:underline; }

/* ================= Responsive ================= */
@media (max-width: 460px){
  .center-body{ padding:18px; }
  .auth-card{ border-radius:22px; }
  .hero-dome{ height:150px; border-radius:22px 22px 0 0; }
  .hero-illustration{ width:128px; }
  .hero-title{ font-size:23px; }
  .form-panel-single{ padding:14px 24px 28px; }
  .bg-photo{ background-position:center 20%; }
}
:root{
    --maroon-950:#2b0a1f;
    --maroon-900:#3d0f2c;
    --maroon-800:#4d1638;
    --gold-600:#b8863b;
    --gold-500:#c9a24a;
    --gold-100:#f4e9d2;
    --cream:#faf6f0;
    --card:#ffffff;
    --ink:#2c1a22;
    --ink-soft:#7d6a72;
    --line:#ece2dc;
    --green:#2f7a4f;
    --green-bg:#e7f3ea;
    --amber:#b8763b;
    --amber-bg:#fbf0e2;
    --blue:#3f5c8a;
    --blue-bg:#eaeff8;
    --red:#b23b45;
    --red-bg:#fbe9ea;
    --radius:14px;
    --shadow: 0 4px 18px rgba(61,15,44,0.06);
  }

  *{box-sizing:border-box; margin:0; padding:0;}

  body{
    font-family:'Inter', sans-serif;
    background:var(--cream);
    color:var(--ink);
    display:flex;
    min-height:100vh;
  }

  h1,h2,h3, .brand-name{
    font-family:'Cormorant Garamond', serif;
  }

  a{ text-decoration:none; color:inherit; }

  /* ---------- Sidebar ---------- */
  .sidebar{
    width:250px;
    background: linear-gradient(180deg, var(--maroon-900) 0%, var(--maroon-950) 100%);
    color:#f2e9ec;
    display:flex;
    flex-direction:column;
    position:sticky;
    top:0;
    height:100vh;
    flex-shrink:0;
  }

  .brand{
    display:flex;
    align-items:center;
    gap:12px;
    padding:26px 22px;
    border-bottom:1px solid rgba(244,233,210,0.12);
  }

  .brand-mark{
    width:42px; height:42px;
    border-radius:50%;
    background: var(--gold-500);
    display:flex; align-items:center; justify-content:center;
    color:var(--maroon-950);
    font-family:'Cormorant Garamond', serif;
    font-weight:700;
    font-size:18px;
  }

  .brand-name{
    font-size:20px;
    font-weight:600;
    letter-spacing:0.5px;
    color:#fff;
    line-height:1.1;
  }
  .brand-sub{
    font-size:9.5px;
    letter-spacing:1.2px;
    color:var(--gold-100);
    text-transform:uppercase;
    opacity:0.75;
    margin-top:3px;
  }

  nav{
    padding:20px 14px;
    flex:1;
  }
  .nav-label{
    font-size:11px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:rgba(244,233,210,0.45);
    padding:0 10px 10px;
  }
  .nav-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-radius:10px;
    color:rgba(244,233,210,0.85);
    font-size:14.5px;
    font-weight:500;
    margin-bottom:4px;
    cursor:pointer;
    transition: background .15s ease, color .15s ease;
  }
  .nav-item i{ width:18px; text-align:center; font-size:15px; }
  .nav-item:hover{ background:rgba(244,233,210,0.08); color:#fff; }
  .nav-item.active{
    background: linear-gradient(90deg, var(--gold-600), var(--gold-500));
    color:var(--maroon-950);
    font-weight:600;
    box-shadow: 0 4px 14px rgba(201,162,74,0.35);
  }

.sidebar-footer{
    padding:16px 22px 22px;
    border-top:1px solid rgba(244,233,210,0.12);
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
    transition: background .15s ease;
  }
  .sidebar-footer:hover{
    background:rgba(244,233,210,0.08);
  }
  .sidebar-footer.active{
    background: linear-gradient(90deg, var(--gold-600), var(--gold-500));
  }
  .sidebar-footer.active .who{
    color:var(--maroon-950);
  }
  .sidebar-footer.active .role{
    color:rgba(43,10,31,0.65);
  }
  .sidebar-footer.active i{
    color:var(--maroon-950);
  }
  .sidebar-footer .avatar{
    width:36px; height:36px; border-radius:50%;
    background:var(--gold-500);
    display:flex; align-items:center; justify-content:center;
    color:var(--maroon-950); font-weight:700; font-family:'Cormorant Garamond',serif;
  }
  .sidebar-footer .who{ font-size:13px; font-weight:600; color:#fff; }
  .sidebar-footer .role{ font-size:11px; color:rgba(244,233,210,0.6); }
  .sidebar-footer i{ margin-left:auto; color:rgba(244,233,210,0.5); font-size:12px; }

  /* ---------- Main ---------- */
  .main{
    flex:1;
    min-width:0;
    padding:28px 34px 50px;
  }

  .topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
    flex-wrap:wrap;
  }

  .eyebrow{
    font-size:11px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--gold-600);
    font-weight:600;
    margin-bottom:4px;
  }
  .topbar h1{
    font-size:32px;
    font-weight:600;
    color:var(--maroon-950);
  }
  .topbar .sub{
    font-size:13.5px;
    color:var(--ink-soft);
    margin-top:2px;
  }

  .search-box{
    flex:1;
    max-width:380px;
    display:flex;
    align-items:center;
    gap:10px;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:12px;
    padding:11px 16px;
    color:var(--ink-soft);
    font-size:13.5px;
    box-shadow:var(--shadow);
  }
  .search-box i{ color:var(--gold-600); }

  .topbar-actions{
    display:flex;
    align-items:center;
    gap:16px;
  }
  .date-pill{
    display:flex; align-items:center; gap:8px;
    background:var(--card);
    border:1px solid var(--line);
    padding:10px 16px;
    border-radius:12px;
    font-size:13px;
    font-weight:500;
    color:var(--ink);
    box-shadow:var(--shadow);
  }
  .date-pill i{ color:var(--gold-600); }

  .icon-btn{
    position:relative;
    width:42px; height:42px;
    border-radius:12px;
    background:var(--card);
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    color:var(--maroon-900);
    box-shadow:var(--shadow);
    cursor:pointer;
  }
  .icon-btn .badge{
    position:absolute; top:-6px; right:-6px;
    background:var(--red);
    color:#fff;
    font-size:10px;
    font-weight:700;
    width:18px; height:18px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    border:2px solid var(--cream);
  }

  .profile-chip{
    display:flex; align-items:center; gap:10px;
    background:var(--card);
    border:1px solid var(--line);
    padding:6px 14px 6px 6px;
    border-radius:30px;
    box-shadow:var(--shadow);
    cursor:pointer;
  }
  .profile-chip .avatar{
    width:32px; height:32px; border-radius:50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    display:flex; align-items:center; justify-content:center;
    color:var(--maroon-950); font-weight:700; font-family:'Cormorant Garamond',serif;
  }
  .profile-chip .name{ font-size:13.5px; font-weight:600; }
  .profile-chip .role{ font-size:11px; color:var(--ink-soft); }

  /* ---------- Stat cards ---------- */
  .stat-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;
    margin-bottom:24px;
  }
  .stat-card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:22px;
    box-shadow:var(--shadow);
    position:relative;
    overflow:hidden;
  }
  .stat-label {
    position: absolute;
    top: 40px;
    left: 70px;
    margin: 0;
}
  .stat-card::before{
    content:"";
    position:absolute; left:0; top:0; bottom:0;
    width:4px;
    background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  }
  .stat-top{
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:16px;
  }
  .stat-icon{
    width:44px; height:44px;
    border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    font-size:18px;
  }
  
  .ic-purple{ background:#efe3ee; color:var(--maroon-800); }
  .ic-gold{ background:var(--gold-100); color:var(--gold-600); }
  .ic-blue{ background:var(--blue-bg); color:var(--blue); }
  .ic-red{ background:var(--red-bg); color:var(--red); }

  .stat-tag{
    font-size:10.5px;
    font-weight:700;
    padding:4px 9px;
    border-radius:20px;
    letter-spacing:0.3px;
  }
  .tag-live{ background:var(--green-bg); color:var(--green); }
  .tag-today{ background:var(--gold-100); color:var(--gold-600); }
  /* .tag-week{ background:var(--blue-bg); color:var(--blue); } */
  .tag-alert{ background:var(--red-bg); color:var(--red); }
  .tag-active{ background:var(--blue-bg); color:var(--blue); }

  .stat-label{
    font-size:11.5px;
    letter-spacing:1px;
    text-transform:uppercase;
    color:var(--ink-soft);
    font-weight:600;
    margin-bottom:6px;
  }
  .stat-value{
    font-family:'Cormorant Garamond', serif;
    font-size:32px;
    font-weight:700;
    color:var(--maroon-950);
  }
  .stat-delta{
    font-size:12px;
    color:var(--green);
    font-weight:600;
    margin-top:6px;
  }
  .stat-delta.down{ color:var(--red); }

  /* ---------- Panels ---------- */
  .panel{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    margin-bottom:24px;
    overflow:hidden;
  }
  .panel-head{
    display:flex; align-items:center; justify-content:space-between;
    padding:20px 24px;
    border-bottom:1px solid var(--line);
  }
  .panel-head h2{
    font-size:20px;
    font-weight:600;
    color:var(--maroon-950);
  }
  .panel-head .view-all{
    font-size:12.5px;
    font-weight:600;
    color:var(--gold-600);
    display:flex; align-items:center; gap:5px;
  }
  .panel-body{ padding:6px 24px 20px; }

  table{ width:100%; border-collapse:collapse; }
  thead th{
    text-align:left;
    font-size:11px;
    letter-spacing:0.8px;
    text-transform:uppercase;
    color:var(--ink-soft);
    font-weight:600;
    padding:12px 8px;
    border-bottom:1px solid var(--line);
  }
  tbody td{
    padding:14px 8px;
    font-size:13.5px;
    border-bottom:1px solid var(--line);
    color:var(--ink);
  }
  tbody tr:last-child td{ border-bottom:none; }
  .order-id{ font-weight:600; color:var(--maroon-900); }
  .cust-cell{ display:flex; align-items:center; gap:10px; }
  .cust-avatar{
    width:30px; height:30px; border-radius:50%;
    background:var(--gold-100); color:var(--gold-600);
    display:flex; align-items:center; justify-content:center;
    font-size:12px; font-weight:700; font-family:'Cormorant Garamond',serif;
  }

  .status-pill{
    font-size:11px; font-weight:700;
    padding:5px 12px;
    border-radius:20px;
    display:inline-block;
  }
  .st-delivered{ background:var(--green-bg); color:var(--green); }
  .st-processing{ background:var(--blue-bg); color:var(--blue); }
  .st-shipped{ background:var(--gold-100); color:var(--gold-600); }
  .st-pending{ background:var(--red-bg); color:var(--red); }

  /* ---------- Split section ---------- */
  .split{
    display:grid;
    grid-template-columns:1.15fr 1fr;
    gap:24px;
  }

  .product-row{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px 0;
    border-bottom:1px solid var(--line);
  }
  .product-row:last-child{ border-bottom:none; }
  .product-thumb{
    width:42px; height:42px;
    border-radius:10px;
    background:var(--gold-100);
    color:var(--gold-600);
    display:flex; align-items:center; justify-content:center;
    font-size:16px;
    flex-shrink:0;
  }
  .product-info{ flex:1; min-width:0; }
  .product-name{ font-size:13.5px; font-weight:600; color:var(--ink); margin-bottom:6px; }
  .bar-track{
    height:6px; background:var(--gold-100); border-radius:6px; overflow:hidden;
  }
  .bar-fill{
    height:100%;
    background: linear-gradient(90deg, var(--gold-600), var(--gold-500));
    border-radius:6px;
  }
  .product-meta{
    text-align:right;
    flex-shrink:0;
    min-width:70px;
  }
  .product-sold{ font-size:13px; font-weight:700; color:var(--maroon-950); }
  .product-rev{ font-size:11.5px; color:var(--ink-soft); margin-top:2px; }

  /* P&L */
  .pl-row{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 0;
    border-bottom:1px solid var(--line);
  }
  .pl-row:last-child{ border-bottom:none; }
  .pl-label{ font-size:13px; color:var(--ink-soft); font-weight:500; }
  .pl-value{ font-family:'Cormorant Garamond', serif; font-size:24px; font-weight:700; }
  .pl-positive{ color:var(--green); }
  .pl-negative{ color:var(--red); }
  .pl-neutral{ color:var(--maroon-950); }
  .pl-note{
    font-size:11.5px; font-weight:700;
    background:var(--green-bg); color:var(--green);
    padding:4px 10px; border-radius:20px;
  }

  select.range-select{
    font-family:'Inter', sans-serif;
    font-size:12.5px;
    padding:7px 12px;
    border-radius:8px;
    border:1px solid var(--line);
    background:var(--cream);
    color:var(--ink);
  }

  /* ---------- Bottom banners ---------- */
  .banner-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
  }
  .banner{
    display:flex; align-items:center; gap:16px;
    padding:20px 22px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    cursor:pointer;
  }
  .banner-icon{
    width:52px; height:52px; border-radius:14px;
    display:flex; align-items:center; justify-content:center;
    font-size:20px;
    flex-shrink:0;
  }
  .banner.warn{ background:var(--amber-bg); border:1px solid #f0dcc0; }
  .banner.warn .banner-icon{ background:var(--gold-500); color:#fff; }
  .banner.warn .banner-title{ color:var(--amber); }

  .banner.info{ background:var(--blue-bg); border:1px solid #d6dff0; }
  .banner.info .banner-icon{ background:var(--blue); color:#fff; }
  .banner.info .banner-title{ color:var(--blue); }

  .banner-title{ font-size:13px; font-weight:700; margin-bottom:4px; }
  .banner-value{ font-family:'Cormorant Garamond', serif; font-size:26px; font-weight:700; color:var(--maroon-950); }
  .banner-sub{ font-size:12px; color:var(--ink-soft); margin-top:2px; }
  .banner i.chev{ margin-left:auto; color:var(--ink-soft); }

  .footer-note{
    text-align:center;
    font-size:12px;
    color:var(--ink-soft);
    margin-top:30px;
  }

  @media (max-width: 1180px){
    .stat-grid{ grid-template-columns:repeat(2,1fr); }
    .split{ grid-template-columns:1fr; }
    .banner-grid{ grid-template-columns:1fr; }
  }
  @media (max-width: 860px){
    .sidebar{ display:none; }
    .search-box{ display:none; }
  }

  /* ---------- Shared profile photo (syncs across pages) ---------- */
  .sidebar-footer .avatar img,
  .profile-chip .avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
  }

/* ================= Forgot password panel ================= */
[hidden]{ display:none !important; }

.forgot-panel{ display:flex; flex-direction:column; }
.forgot-sub{
  font-size:12.5px;
  line-height:1.5;
  color:var(--ink-soft);
  text-align:center;
  margin:6px 0 18px;
}
.code-input{
  letter-spacing:6px;
  font-weight:600;
  font-size:15px;
}
.code-input::placeholder{ letter-spacing:normal; font-weight:400; }

.forgot-links{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:14px;
}
.link-btn{
  border:none;
  background:transparent;
  padding:0;
  font-family:'Inter', sans-serif;
  font-size:12px;
  font-weight:600;
  color:var(--gold-600);
  cursor:pointer;
}
.link-btn:hover:not(:disabled){ text-decoration:underline; }
.link-btn:disabled{ color:var(--ink-soft); cursor:not-allowed; font-weight:500; }

.back-link{
  align-self:center;
  margin-top:14px;
  border:none;
  background:transparent;
  font-family:'Inter', sans-serif;
  font-size:12.5px;
  font-weight:600;
  color:var(--maroon-900);
  cursor:pointer;
}
.back-link i{ margin-right:6px; font-size:11px; }
.back-link:hover{ text-decoration:underline; }
