/* =====================================================================
   Rice Now – customer account pages
   (login / register / account dashboard / order tracking / cart)
   ===================================================================== */

:root {
  --ac-gold: #eeae2b;
  --ac-gold-deep: #d79414;
  --ac-brown: #3c2415;
  --ac-brown-dark: #2f1b0f;
  --ac-cream: #fdf6e7;
  --ac-cream-soft: #fbf1dd;
  --ac-line: rgba(60, 36, 21, 0.12);
  --ac-shadow: 0 18px 44px rgba(78, 48, 22, 0.12);
  --ac-radius: 20px;
  --ac-ok: #1f9d55;
  --ac-warn: #d98200;
  --ac-info: #2563eb;
  --ac-danger: #d64545;
  --ac-muted: #8a7a68;
  --ac-font: "Poppins", system-ui, sans-serif;
  --ac-head: "Nunito Sans", system-ui, sans-serif;
}

/* ---------------------------------------------------------------------
   Auth pages (login / register)
   --------------------------------------------------------------------- */
.auth-main {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(238, 174, 43, 0.16), transparent 62%),
    radial-gradient(760px 400px at 96% 108%, rgba(60, 36, 21, 0.1), transparent 60%),
    var(--ac-cream);
  position: relative;
  overflow: hidden;
}
.auth-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(60, 36, 21, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 26px;
  box-shadow: var(--ac-shadow);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  animation: authRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes authRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* -- brand side -- */
.auth-brand {
  background:
    radial-gradient(420px 300px at 20% 0%, rgba(245, 194, 69, 0.3), transparent 65%),
    linear-gradient(155deg, #4a2c19 0%, #2f1b0f 62%, #24140a 100%);
  color: #fdf6e7;
  padding: 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  position: relative;
}
.auth-brand::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(238, 174, 43, 0.65), transparent);
}
.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}
.auth-brand-logo img { height: 44px; width: auto; }
.auth-brand h2 {
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.22;
  margin: 0 0 12px;
}
.auth-brand h2 em {
  font-style: normal;
  color: var(--ac-gold-bright, #f5c245);
}
.auth-brand p {
  margin: 0;
  color: rgba(253, 246, 231, 0.76);
  font-size: 0.95rem;
  line-height: 1.7;
}
.auth-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.auth-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(253, 246, 231, 0.9);
}
.auth-perks i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(238, 174, 43, 0.16);
  color: #f5c245;
  font-size: 0.95rem;
}
.auth-brand-foot {
  font-size: 0.78rem;
  color: rgba(253, 246, 231, 0.5);
  letter-spacing: 0.04em;
}

/* -- form side -- */
.auth-panel {
  padding: 46px 46px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ac-gold-deep);
  margin-bottom: 10px;
}
.auth-title {
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--ac-brown);
  margin: 0 0 6px;
}
.auth-title .title-accent { color: var(--ac-gold-deep); }
.auth-sub {
  margin: 0 0 26px;
  color: var(--ac-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.auth-sub a { color: var(--ac-gold-deep); font-weight: 700; text-decoration: none; }
.auth-sub a:hover { text-decoration: underline; }

/* fields (shared with account forms) */
.ac-field { display: block; margin-bottom: 16px; }
.ac-field > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ac-brown);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.ac-field > span em { color: var(--ac-danger); font-style: normal; }
.ac-field > span small { color: var(--ac-muted); font-weight: 500; }
.ac-control { position: relative; }
.ac-field input,
.ac-field select,
.ac-field textarea {
  width: 100%;
  border: 1.5px solid rgba(60, 36, 21, 0.16);
  background: #fffdf8;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--ac-font);
  font-size: 0.93rem;
  color: var(--ac-brown);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ac-field input.has-icon { padding-left: 42px; }
.ac-field .ac-control:has(.ac-toggle-eye) input { padding-right: 44px; }
.ac-field input::placeholder, .ac-field textarea::placeholder { color: #b9a891; }
.ac-field input:focus,
.ac-field select:focus,
.ac-field textarea:focus {
  outline: none;
  border-color: var(--ac-gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(238, 174, 43, 0.16);
}
.ac-field input.is-invalid,
.ac-field select.is-invalid,
.ac-field textarea.is-invalid {
  border-color: var(--ac-danger);
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12);
}
.ac-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #b3a08a;
  font-size: 0.98rem;
  pointer-events: none;
  transition: color 0.2s;
}
.ac-control:focus-within .ac-icon { color: var(--ac-gold-deep); }
.ac-toggle-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #b3a08a;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 1rem;
}
.ac-toggle-eye:hover { color: var(--ac-brown); background: rgba(60, 36, 21, 0.06); }
.ac-err {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ac-danger);
  font-weight: 600;
}
.ac-row { display: grid; gap: 0 14px; }
.ac-row-2 { grid-template-columns: 1fr 1fr; }

.ac-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.83rem;
  color: var(--ac-muted);
  margin: 4px 0 20px;
  line-height: 1.55;
}
.ac-check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--ac-gold-deep);
  flex: 0 0 17px;
}
.ac-check a { color: var(--ac-brown); font-weight: 600; }

.ac-submit {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 14px 18px;
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #2f1b0f;
  background: linear-gradient(135deg, #f5c245, #eeae2b 55%, #d79414);
  box-shadow: 0 12px 26px rgba(215, 148, 20, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.ac-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(215, 148, 20, 0.42); }
.ac-submit:active { transform: translateY(0); }
.ac-submit[disabled] { opacity: 0.75; cursor: wait; transform: none; }
.ac-submit .spin { display: none; animation: acSpin 0.8s linear infinite; }
.ac-submit.is-loading .spin { display: inline-block; }
.ac-submit.is-loading .lbl { opacity: 0.8; }
@keyframes acSpin { to { transform: rotate(360deg); } }

.ac-alt {
  margin-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ac-muted);
}
.ac-alt a { color: var(--ac-gold-deep); font-weight: 700; text-decoration: none; }
.ac-alt a:hover { text-decoration: underline; }

.ac-demo {
  margin-top: 18px;
  background: var(--ac-cream-soft);
  border: 1px dashed rgba(60, 36, 21, 0.24);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.78rem;
  color: var(--ac-brown-soft, #5b3f2b);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.55;
}
.ac-demo i { color: var(--ac-gold-deep); margin-top: 2px; }

.auth-shake { animation: acShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes acShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

/* server-side alert inside auth card */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(214, 69, 69, 0.09);
  border: 1px solid rgba(214, 69, 69, 0.3);
  color: #a12f2f;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: authRise 0.35s ease both;
}
.auth-alert i { margin-top: 2px; }
.auth-alert.is-ok {
  background: rgba(31, 157, 85, 0.1);
  border-color: rgba(31, 157, 85, 0.32);
  color: #177a41;
}

@media (max-width: 880px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-brand { padding: 34px 30px; gap: 20px; }
  .auth-brand::after { display: none; }
  .auth-perks { display: none; }
  .auth-panel { padding: 34px 28px 36px; }
}
@media (max-width: 520px) {
  .auth-main { padding: 26px 14px 44px; }
  .ac-row-2 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Account shell
   --------------------------------------------------------------------- */
.acc-main {
  background:
    radial-gradient(820px 380px at 90% -6%, rgba(238, 174, 43, 0.14), transparent 60%),
    var(--ac-cream);
  padding: 30px 20px 72px;
  min-height: calc(100vh - 86px);
}
.acc-crumbs {
  font-size: 0.8rem;
  color: var(--ac-muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.acc-crumbs a { color: var(--ac-brown-soft, #5b3f2b); text-decoration: none; font-weight: 600; }
.acc-crumbs a:hover { color: var(--ac-gold-deep); }
.acc-crumbs i { font-size: 0.62rem; opacity: 0.6; }

.acc-grid {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* -- sidebar -- */
.acc-side {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  overflow: hidden;
  position: sticky;
  top: 96px;
}
.acc-side-head {
  background:
    radial-gradient(240px 140px at 15% 0%, rgba(245, 194, 69, 0.32), transparent 70%),
    linear-gradient(150deg, #4a2c19, #2f1b0f);
  color: #fdf6e7;
  padding: 24px 22px 22px;
  text-align: center;
}
.acc-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f5c245, #d79414);
  color: #2f1b0f;
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 1.5rem;
  border: 3px solid rgba(253, 246, 231, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.acc-side-head strong {
  display: block;
  font-family: var(--ac-head);
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
}
.acc-side-head span {
  display: block;
  font-size: 0.78rem;
  color: rgba(253, 246, 231, 0.68);
  margin-top: 3px;
  word-break: break-all;
}
.acc-nav { padding: 12px; display: grid; gap: 4px; }
.acc-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ac-brown);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.acc-nav a i {
  width: 20px;
  text-align: center;
  color: var(--ac-gold-deep);
  font-size: 0.98rem;
}
.acc-nav a:hover { background: var(--ac-cream-soft); transform: translateX(3px); }
.acc-nav a.is-active {
  background: linear-gradient(120deg, rgba(238, 174, 43, 0.2), rgba(238, 174, 43, 0.07));
  color: var(--ac-brown-dark, #2f1b0f);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--ac-gold-deep);
}
.acc-nav .acc-nav-badge {
  margin-left: auto;
  background: var(--ac-gold);
  color: #2f1b0f;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 8px;
}
.acc-logout {
  margin: 4px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px;
  border-radius: 12px;
  border: 1.5px solid rgba(214, 69, 69, 0.35);
  background: rgba(214, 69, 69, 0.06);
  color: var(--ac-danger);
  font-weight: 700;
  font-size: 0.87rem;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.acc-logout:hover { background: rgba(214, 69, 69, 0.13); transform: translateY(-1px); }

/* -- content cards -- */
.acc-panel {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  padding: 28px 30px 32px;
  animation: authRise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.acc-panel + .acc-panel { margin-top: 22px; }
.acc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(60, 36, 21, 0.16);
}
.acc-panel-head h1, .acc-panel-head h2 {
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: clamp(1.18rem, 2.4vw, 1.42rem);
  color: var(--ac-brown);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.acc-panel-head h1 i, .acc-panel-head h2 i { color: var(--ac-gold-deep); }
.acc-panel-head p { margin: 5px 0 0; font-size: 0.85rem; color: var(--ac-muted); }

/* welcome strip */
.acc-welcome {
  background:
    radial-gradient(360px 180px at 88% 10%, rgba(245, 194, 69, 0.28), transparent 70%),
    linear-gradient(125deg, #4a2c19, #2f1b0f);
  border-radius: var(--ac-radius);
  color: #fdf6e7;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--ac-shadow);
  position: relative;
  overflow: hidden;
}
.acc-welcome::after {
  content: "\F5D1"; /* rice bowl-ish: bootstrap icon fallback not used */
  display: none;
}
.acc-welcome h1 {
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: clamp(1.28rem, 3vw, 1.7rem);
  margin: 0 0 6px;
  color: #fff;
}
.acc-welcome h1 em { font-style: normal; color: #f5c245; }
.acc-welcome p { margin: 0; font-size: 0.9rem; color: rgba(253, 246, 231, 0.75); }
.acc-welcome .btn-gold { white-space: nowrap; }

/* stat tiles */
.acc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.acc-stat {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(78, 48, 22, 0.07);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.acc-stat:hover { transform: translateY(-3px); box-shadow: var(--ac-shadow); }
.acc-stat-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: rgba(238, 174, 43, 0.16);
  color: var(--ac-gold-deep);
}
.acc-stat-icon.is-green { background: rgba(31, 157, 85, 0.14); color: var(--ac-ok); }
.acc-stat-icon.is-blue  { background: rgba(37, 99, 235, 0.13); color: var(--ac-info); }
.acc-stat-icon.is-brown { background: rgba(60, 36, 21, 0.1); color: var(--ac-brown); }
.acc-stat strong {
  display: block;
  font-family: var(--ac-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ac-brown);
  line-height: 1.1;
}
.acc-stat span { font-size: 0.76rem; color: var(--ac-muted); font-weight: 600; letter-spacing: 0.03em; }

/* quick links row */
.acc-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.acc-quick a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(78, 48, 22, 0.06);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.acc-quick a:hover {
  transform: translateY(-3px);
  border-color: rgba(238, 174, 43, 0.55);
  box-shadow: var(--ac-shadow);
}
.acc-quick a > span { flex: 1 1 auto; min-width: 0; }
.acc-quick a i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5c245, #d79414);
  color: #2f1b0f;
  font-size: 1.05rem;
}
.acc-quick a strong { display: block; font-size: 0.92rem; color: var(--ac-brown); font-weight: 700; }
.acc-quick a span span { display: block; font-size: 0.76rem; color: var(--ac-muted); margin-top: 2px; line-height: 1.5; }
.acc-quick a > i.bi-arrow-right {
  margin-left: auto;
  background: none;
  color: var(--ac-gold-deep);
  flex: 0 0 auto;
  width: auto;
  height: auto;
}

/* ---------------------------------------------------------------------
   Orders list
   --------------------------------------------------------------------- */
.ord-list { display: grid; gap: 16px; }
.ord-card {
  border: 1px solid var(--ac-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fffdf8;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.ord-card:hover { box-shadow: var(--ac-shadow); border-color: rgba(238, 174, 43, 0.45); transform: translateY(-2px); }
.ord-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 20px;
  background: var(--ac-cream-soft);
  border-bottom: 1px solid var(--ac-line);
}
.ord-no {
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ac-brown);
  display: flex;
  align-items: center;
  gap: 9px;
}
.ord-no i { color: var(--ac-gold-deep); }
.ord-date { font-size: 0.78rem; color: var(--ac-muted); font-weight: 600; }
.ord-card-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.ord-thumbs { display: flex; gap: -8px; }
.ord-thumbs img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(78, 48, 22, 0.16);
  margin-right: -12px;
  background: var(--ac-cream);
}
.ord-thumbs img:last-child { margin-right: 0; }
.ord-thumbs .ord-more {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(60, 36, 21, 0.08);
  color: var(--ac-brown);
  font-size: 0.74rem;
  font-weight: 800;
  border: 2px solid #fff;
  margin-right: -12px;
}
.ord-meta { flex: 1 1 220px; min-width: 0; }
.ord-meta strong { display: block; font-size: 0.92rem; color: var(--ac-brown); font-weight: 700; }
.ord-meta span { display: block; font-size: 0.79rem; color: var(--ac-muted); margin-top: 3px; }
.ord-total { text-align: right; }
.ord-total strong {
  display: block;
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ac-brown);
}
.ord-total span { font-size: 0.74rem; color: var(--ac-muted); font-weight: 600; }
.ord-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 20px;
  border-top: 1px dashed rgba(60, 36, 21, 0.14);
  background: #fff;
}

/* status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill i { font-size: 0.8rem; }
.pill-pending    { background: rgba(217, 130, 0, 0.14); color: #a86500; }
.pill-confirmed  { background: rgba(37, 99, 235, 0.13); color: #1d4ed8; }
.pill-packed     { background: rgba(109, 40, 217, 0.13); color: #6d28d9; }
.pill-shipped    { background: rgba(8, 145, 178, 0.15); color: #0e7490; }
.pill-delivered  { background: rgba(31, 157, 85, 0.15); color: #15803d; }
.pill-cancelled  { background: rgba(214, 69, 69, 0.14); color: #b32c2c; }
.pill-paid       { background: rgba(31, 157, 85, 0.15); color: #15803d; }
.pill-pendingpay { background: rgba(217, 130, 0, 0.14); color: #a86500; }
.pill-failed     { background: rgba(214, 69, 69, 0.14); color: #b32c2c; }
.pill-refunded   { background: rgba(109, 40, 217, 0.13); color: #6d28d9; }
.pill-sm { padding: 4px 10px; font-size: 0.68rem; }

/* mini progress used in the list */
.ord-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 260px;
  min-width: 220px;
}
.ord-progress .seg {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(60, 36, 21, 0.1);
  overflow: hidden;
  position: relative;
}
.ord-progress .seg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f5c245, #d79414);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.ord-progress .seg.is-done::after { transform: scaleX(1); }
.ord-progress .seg-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ac-muted);
  white-space: nowrap;
}

/* empty state */
.acc-empty {
  text-align: center;
  padding: 46px 24px;
  border: 2px dashed rgba(60, 36, 21, 0.18);
  border-radius: 18px;
  background: var(--ac-cream-soft);
}
.acc-empty .acc-empty-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(238, 174, 43, 0.18);
  color: var(--ac-gold-deep);
  font-size: 2rem;
}
.acc-empty h3 {
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ac-brown);
  margin: 0 0 7px;
}
.acc-empty p { color: var(--ac-muted); font-size: 0.9rem; margin: 0 0 20px; }

/* ---------------------------------------------------------------------
   Order detail / tracking
   --------------------------------------------------------------------- */
.od-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.od-head .ord-no { font-size: 1.22rem; }
.od-head-meta { font-size: 0.82rem; color: var(--ac-muted); margin-top: 5px; }
.od-head-meta i { color: var(--ac-gold-deep); }

.od-badges { display: flex; gap: 9px; flex-wrap: wrap; }

/* status timeline (vertical) */
.od-timeline { list-style: none; margin: 6px 0 0; padding: 0; }
.od-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  position: relative;
  padding-bottom: 26px;
}
.od-step:last-child { padding-bottom: 0; }
.od-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 3px;
  background: rgba(60, 36, 21, 0.11);
  border-radius: 3px;
}
.od-step:last-child::before { display: none; }
.od-step.is-done::before { background: linear-gradient(180deg, #eeae2b, rgba(238, 174, 43, 0.25)); }
.od-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(60, 36, 21, 0.08);
  color: var(--ac-muted);
  font-size: 1.05rem;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(60, 36, 21, 0.1);
  z-index: 1;
}
.od-step.is-done .od-dot {
  background: linear-gradient(135deg, #f5c245, #d79414);
  color: #2f1b0f;
  box-shadow: 0 0 0 2px rgba(238, 174, 43, 0.55);
}
.od-step.is-current .od-dot { animation: odPulse 1.9s ease-in-out infinite; }
@keyframes odPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(238, 174, 43, 0.55); }
  50%      { box-shadow: 0 0 0 9px rgba(238, 174, 43, 0.18); }
}
.od-step-body strong {
  display: block;
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 0.99rem;
  color: var(--ac-brown);
  line-height: 1.3;
  padding-top: 4px;
}
.od-step:not(.is-done) .od-step-body strong { color: var(--ac-muted); font-weight: 700; }
.od-step-body span { display: block; font-size: 0.8rem; color: var(--ac-muted); margin-top: 3px; line-height: 1.55; }

.od-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.od-mini {
  background: var(--ac-cream-soft);
  border: 1px solid var(--ac-line);
  border-radius: 14px;
  padding: 16px 18px;
}
.od-mini h4 {
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ac-gold-deep);
  margin: 0 0 12px;
}
.od-mini dl { margin: 0; display: grid; gap: 9px; }
.od-mini dt { font-size: 0.74rem; color: var(--ac-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.od-mini dd { margin: 2px 0 0; font-size: 0.9rem; color: var(--ac-brown); font-weight: 600; line-height: 1.5; }

/* order items table */
.od-items { display: grid; gap: 12px; }
.od-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--ac-line);
  border-radius: 14px;
  background: #fffdf8;
}
.od-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 11px;
  background: var(--ac-cream);
  flex: 0 0 58px;
}
.od-item-info { flex: 1; min-width: 0; }
.od-item-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ac-brown);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.od-item-info span { display: block; font-size: 0.77rem; color: var(--ac-muted); margin-top: 3px; }
.od-item-qty {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ac-brown);
  background: rgba(60, 36, 21, 0.07);
  border-radius: 9px;
  padding: 5px 11px;
  white-space: nowrap;
}
.od-item-price { font-weight: 800; font-family: var(--ac-head); color: var(--ac-brown); min-width: 74px; text-align: right; }

/* totals block */
.od-totals { display: grid; gap: 9px; margin-top: 4px; }
.od-totals .trow {
  display: flex;
  justify-content: space-between;
  font-size: 0.89rem;
  color: var(--ac-brown-soft, #5b3f2b);
}
.od-totals .trow.is-muted span { color: var(--ac-muted); }
.od-totals .trow.is-save span:last-child { color: var(--ac-ok); font-weight: 700; }
.od-totals .trow.is-grand {
  border-top: 2px dashed rgba(60, 36, 21, 0.2);
  padding-top: 11px;
  margin-top: 3px;
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 1.14rem;
  color: var(--ac-brown);
}

/* ---------------------------------------------------------------------
   Cart tab
   --------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cart-lines { display: grid; gap: 14px; }
.cart-line {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--ac-line);
  border-radius: 16px;
  background: #fffdf8;
  animation: authRise 0.35s ease both;
}
.cart-line img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 13px;
  background: var(--ac-cream);
  flex: 0 0 76px;
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ac-brown);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-line-info .cl-variant { display: block; font-size: 0.77rem; color: var(--ac-muted); margin-top: 3px; }
.cart-line-info .cl-unit { display: block; font-size: 0.85rem; color: var(--ac-gold-deep); font-weight: 700; margin-top: 5px; }
.cart-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.cl-line-total { font-family: var(--ac-head); font-weight: 800; font-size: 1.05rem; color: var(--ac-brown); }
.cl-remove {
  border: 0;
  background: rgba(214, 69, 69, 0.1);
  color: var(--ac-danger);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s, transform 0.18s;
}
.cl-remove:hover { background: rgba(214, 69, 69, 0.2); transform: scale(1.06); }

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(60, 36, 21, 0.06);
  border: 1.5px solid rgba(60, 36, 21, 0.12);
  border-radius: 11px;
  padding: 3px;
}
.qty-ctrl button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ac-brown);
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(78, 48, 22, 0.12);
  transition: background 0.15s, transform 0.15s;
}
.qty-ctrl button:hover { background: var(--ac-gold); transform: translateY(-1px); }
.qty-ctrl span {
  min-width: 32px;
  text-align: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ac-brown);
}

.cart-summary {
  background: var(--ac-cream-soft);
  border: 1px solid var(--ac-line);
  border-radius: 18px;
  padding: 22px 24px;
  position: sticky;
  top: 96px;
}
.cart-summary h3 {
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ac-brown);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.cart-summary h3 i { color: var(--ac-gold-deep); }
.cart-summary .od-totals { margin-bottom: 18px; }
.cart-hint {
  font-size: 0.79rem;
  color: var(--ac-warn);
  font-weight: 600;
  background: rgba(217, 130, 0, 0.1);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 16px;
  display: none;
}
.cart-hint.is-show { display: block; }
.cart-summary .btn-gold { width: 100%; justify-content: center; margin-bottom: 10px; }
.cart-continue {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ac-brown-soft, #5b3f2b);
  text-decoration: none;
}
.cart-continue:hover { color: var(--ac-gold-deep); }
.cart-loading { text-align: center; padding: 40px 10px; color: var(--ac-muted); font-size: 0.9rem; }
.cart-loading i { display: block; font-size: 1.8rem; color: var(--ac-gold); margin-bottom: 10px; animation: acSpin 1s linear infinite; }

/* ---------------------------------------------------------------------
   Profile tab
   --------------------------------------------------------------------- */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pf-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pf-field-grid .is-full { grid-column: 1 / -1; }
.pf-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(60, 36, 21, 0.18);
  background: #fff;
  color: var(--ac-brown);
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, border-color 0.18s;
}
.btn-soft:hover { background: var(--ac-cream-soft); border-color: rgba(238, 174, 43, 0.5); transform: translateY(-1px); }
.pf-side-card {
  background: linear-gradient(150deg, #4a2c19, #2f1b0f);
  color: #fdf6e7;
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.pf-side-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 194, 69, 0.35), transparent 70%);
}
.pf-side-card h3 {
  font-family: var(--ac-head);
  font-weight: 800;
  font-size: 1.02rem;
  color: #fff;
  margin: 0 0 4px;
  position: relative;
}
.pf-side-card > p { font-size: 0.82rem; color: rgba(253, 246, 231, 0.68); margin: 0 0 16px; position: relative; }
.pf-side-card dl { margin: 0; display: grid; gap: 12px; position: relative; }
.pf-side-card dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(245, 194, 69, 0.8); font-weight: 700; }
.pf-side-card dd { margin: 3px 0 0; font-size: 0.9rem; color: #fdf6e7; font-weight: 600; word-break: break-word; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .od-cols, .cart-layout, .pf-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 940px) {
  .acc-grid { grid-template-columns: 1fr; }
  .acc-side { position: static; }
  .acc-nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .acc-logout { margin-top: 0; }
}
@media (max-width: 640px) {
  .acc-panel { padding: 22px 18px 26px; }
  .acc-welcome { padding: 22px 20px; }
  .pf-field-grid { grid-template-columns: 1fr; }
  .ord-card-body { gap: 12px; }
  .ord-total { text-align: left; }
  .cart-line { flex-wrap: wrap; }
  .cart-line-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .od-item { flex-wrap: wrap; }
  .od-item-price { min-width: 0; }
}
