/* ==========================================================================
   HYGIENETIC — MY ACCOUNT (exact design)
   Based on the original HTML/CSS mockup
   ========================================================================== */

/* ─── RESET & ROOT ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #1a3a2a;
  --green-mid: #2c5c40;
  --green-light: #3d7a57;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f5f0e8;
  --cream-dark: #ede6d6;
  --white: #ffffff;
  --text: #1a2318;
  --muted: #6b7c6b;
  --danger: #c0392b;
  --success: #2a7a42;
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--green-mid);
  border-radius: 99px;
}

/* ─── PAGE HERO ─────────────────────────────────────────────────────── */
.page-hero {
  background: var(--green);
  padding: 52px 24px 44px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--green-light);
  opacity: 0.1;
  top: -200px;
  right: -100px;
  filter: blur(60px);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.06;
  bottom: -100px;
  left: 5%;
  filter: blur(50px);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-hero-left {
  flex: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.5);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: rgba(245, 240, 232, 0.5);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb span {
  opacity: 0.4;
}

.breadcrumb .current {
  color: var(--gold-light);
}

.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.15;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.page-hero-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 8px 18px 8px 8px;
  backdrop-filter: blur(10px);
}

.hero-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
}

.hero-user-type {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.55);
}

/* ─── MAIN LAYOUT ─────────────────────────────────────────────────── */
.account-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(26, 58, 42, 0.07);
  overflow: hidden;
}

.sidebar-profile {
  padding: 24px;
  background: var(--green);
  text-align: center;
  position: relative;
}

.sidebar-profile::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--green-light);
  opacity: 0.15;
  top: -80px;
  right: -60px;
}

.sidebar-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.sidebar-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.sidebar-email {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.55);
  position: relative;
  z-index: 1;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.sidebar-nav {
  padding: 10px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  border: none;
  width: 100%;
  text-align: left;
  background: none;
}

.sidebar-nav-item:hover {
  background: var(--cream);
  color: var(--green);
}

.sidebar-nav-item.active {
  background: var(--green);
  color: var(--cream);
}

.sidebar-nav-item .sni-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background var(--transition);
}

.sidebar-nav-item.active .sni-icon {
  background: rgba(255, 255, 255, 0.15);
}

.sidebar-nav-item:hover:not(.active) .sni-icon {
  background: var(--cream-dark);
}

.sni-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav-item.active .sni-badge {
  background: var(--gold-light);
}

.sidebar-divider {
  height: 1px;
  background: rgba(26, 58, 42, 0.06);
  margin: 6px 0;
}

.sidebar-quick {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(26, 58, 42, 0.07);
  padding: 18px;
}

.sidebar-quick-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 14px;
}

.quick-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 58, 42, 0.05);
}

.quick-stat:last-child {
  border-bottom: none;
}

.quick-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.quick-stat-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
}

/* ─── MAIN CONTENT ────────────────────────────────────────────────── */
.account-main {
  min-width: 0;
}

.account-panel {
  display: none;
}

.account-panel.active {
  display: block;
  animation: panelFadeIn 0.35s ease;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--green);
  line-height: 1.2;
}

.panel-title em {
  font-style: italic;
}

.panel-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── CARDS ─────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(26, 58, 42, 0.07);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-head {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
}

.card-head-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-head-title span {
  font-size: 1.1rem;
  color: var(--gold-light);
}

.card-body {
  padding: 24px;
}

/* ─── DASHBOARD ─────────────────────────────────────────────────── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(26, 58, 42, 0.07);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(26, 58, 42, 0.1);
}

.dash-stat-card::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: -20px;
  right: -20px;
  opacity: 0.07;
}

.dsc-1::after {
  background: var(--green);
}

.dsc-2::after {
  background: var(--gold);
}

.dsc-3::after {
  background: #2a7a42;
}

.dsc-4::after {
  background: #3d7a57;
}

.dsc-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.dsc-1 .dsc-icon {
  background: rgba(26, 58, 42, 0.08);
}

.dsc-2 .dsc-icon {
  background: rgba(201, 168, 76, 0.12);
}

.dsc-3 .dsc-icon {
  background: rgba(42, 122, 66, 0.1);
}

.dsc-4 .dsc-icon {
  background: rgba(61, 122, 87, 0.1);
}

.dsc-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}

.dsc-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.dsc-trend {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 3px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(26, 58, 42, 0.05);
}

.order-row:last-child {
  border-bottom: none;
}

.order-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.order-info {
  flex: 1;
}

.order-id {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
}

.order-date {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.order-amount {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  margin-right: 10px;
}

.order-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-delivered {
  background: #e8f5ed;
  color: #2a7a42;
}

.status-processing {
  background: #fef9ec;
  color: #b8860b;
}

.status-shipped {
  background: #e8f0fe;
  color: #1a56a0;
}

.status-cancelled {
  background: #fdecea;
  color: var(--danger);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(26, 58, 42, 0.1);
  background: transparent;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.quick-action-btn:hover {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.qa-icon {
  font-size: 1.1rem;
}

.promo-card {
  background: var(--green);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.promo-card::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--green-light);
  opacity: 0.2;
  top: -60px;
  right: -40px;
  filter: blur(30px);
}

.promo-card::after {
  content: "🌿";
  position: absolute;
  font-size: 5rem;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.12;
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.promo-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.promo-title em {
  font-style: italic;
  color: var(--gold-light);
}

.promo-sub {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.65);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.btn-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--green);
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.btn-promo:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ─── ORDERS ─────────────────────────────────────────────────────── */
.orders-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.orders-filter .filter-btn {
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green);
  border: 1.5px solid rgba(26, 58, 42, 0.2);
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.orders-filter .filter-btn:hover,
.orders-filter .filter-btn.active {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.order-full-row {
  background: var(--white);
  border: 1px solid rgba(26, 58, 42, 0.07);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all var(--transition);
  cursor: pointer;
}

.order-full-row:hover {
  box-shadow: 0 8px 32px rgba(26, 58, 42, 0.1);
  transform: translateY(-2px);
}

.order-full-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.order-full-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
}

.order-date-full {
  font-size: 0.8rem;
  color: var(--muted);
}

.order-full-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order-total {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green);
}

.order-full-items {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.order-item-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--cream);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}

.order-actions-bar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 58, 42, 0.05);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
}

.btn-sm-primary {
  background: var(--green);
  color: var(--cream);
}

.btn-sm-primary:hover {
  background: var(--green-mid);
}

.btn-sm-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid rgba(26, 58, 42, 0.2);
}

.btn-sm-outline:hover {
  background: var(--cream);
}

.btn-sm-danger {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid rgba(192, 57, 43, 0.2);
}

.btn-sm-danger:hover {
  background: #fdecea;
}

/* ─── FORMS ──────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .required {
  color: var(--danger);
  font-size: 0.7rem;
}

.form-control {
  padding: 12px 15px;
  border: 1.5px solid rgba(26, 58, 42, 0.15);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 58, 42, 0.08);
}

.form-control::placeholder {
  color: rgba(107, 124, 107, 0.6);
}

select.form-control {
  cursor: pointer;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary-form {
  background: var(--green);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary-form:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.btn-secondary-form {
  background: transparent;
  color: var(--green);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(26, 58, 42, 0.2);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-secondary-form:hover {
  background: var(--cream);
}

.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
  background: none;
  border: none;
  padding: 0;
}

.password-toggle:hover {
  opacity: 1;
}

.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  background: rgba(26, 58, 42, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 99px;
  transition: all 0.4s;
}

.strength-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── ADDRESSES ──────────────────────────────────────────────────── */
.addresses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.address-card {
  background: var(--white);
  border: 1.5px solid rgba(26, 58, 42, 0.1);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  transition: all var(--transition);
}

.address-card.default {
  border-color: var(--gold);
}

.address-card:hover {
  box-shadow: 0 8px 32px rgba(26, 58, 42, 0.08);
}

.address-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.address-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--cream);
  color: var(--green);
}

.address-card.default .address-type-tag {
  background: rgba(201, 168, 76, 0.15);
  color: #9a7020;
}

.address-default-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.address-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 6px;
}

.address-line {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

.address-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 58, 42, 0.06);
}

.address-add-card {
  background: var(--cream);
  border: 2px dashed rgba(26, 58, 42, 0.15);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 180px;
}

.address-add-card:hover {
  border-color: var(--green);
  background: rgba(26, 58, 42, 0.04);
}

.add-icon {
  font-size: 2rem;
  opacity: 0.3;
}

.add-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  opacity: 0.6;
}

/* ─── WISHLIST ───────────────────────────────────────────────────── */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.wishlist-card {
  background: var(--white);
  border: 1px solid rgba(26, 58, 42, 0.07);
  border-radius: 18px;
  overflow: hidden;
  transition: all var(--transition);
}

.wishlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 58, 42, 0.1);
}

.wl-img {
  background: var(--cream);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.wl-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition);
  border: none;
  color: var(--danger);
}

.wishlist-card:hover .wl-remove {
  opacity: 1;
}

.wl-remove:hover {
  background: #fdecea;
}

.wl-body {
  padding: 14px;
}

.wl-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-light);
  font-weight: 700;
  margin-bottom: 5px;
}

.wl-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 2.4em;
}

.wl-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 10px;
}

.btn-wl-cart {
  width: 100%;
  background: var(--green);
  color: var(--cream);
  padding: 9px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
}

.btn-wl-cart:hover {
  background: var(--green-mid);
}

/* ─── NOTIFICATIONS ──────────────────────────────────────────────── */
.notif-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(26, 58, 42, 0.06);
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 6px;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item.unread {
  background: rgba(26, 58, 42, 0.03);
  border: 1px solid rgba(26, 58, 42, 0.06);
}

.notif-item:hover {
  background: var(--cream);
}

.notif-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ni-order {
  background: rgba(26, 58, 42, 0.08);
}

.ni-promo {
  background: rgba(201, 168, 76, 0.12);
}

.ni-system {
  background: rgba(42, 122, 66, 0.1);
}

.ni-delivery {
  background: rgba(30, 86, 160, 0.08);
}

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.notif-item.unread .notif-title {
  color: var(--green);
}

.notif-body {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 6px;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}

/* toggle switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 58, 42, 0.06);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-info {
  flex: 1;
}

.toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.toggle-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  border-radius: 99px;
  background: rgba(26, 58, 42, 0.15);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
  border: none;
}

.toggle-switch.on {
  background: var(--green);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  top: 3px;
  left: 3px;
  transition: transform var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toggle-switch.on::after {
  transform: translateX(22px);
}

/* ─── LOYALTY / REWARDS ──────────────────────────────────────────── */
.loyalty-hero {
  background: var(--green);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.loyalty-hero::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.07;
  bottom: -80px;
  right: -60px;
  filter: blur(40px);
}

.loyalty-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.loyalty-points-display {
  flex: 1;
}

.lp-label {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.lp-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.lp-sub {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.55);
  margin-top: 4px;
}

.loyalty-tier {
  text-align: right;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 12px;
  padding: 10px 18px;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.tier-label {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.5);
}

.loyalty-progress {
  margin-top: 20px;
}

.lp-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lp-bar-label span {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.55);
}

.lp-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.lp-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  width: 0;
  animation: fillAnim 1.2s ease-out forwards;
}

@keyframes fillAnim {
  from {
    width: 0;
  }
}

.reward-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.reward-card {
  background: var(--white);
  border: 1.5px solid rgba(26, 58, 42, 0.08);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.reward-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26, 58, 42, 0.1);
  border-color: var(--green);
}

.reward-card.locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.reward-card.locked:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(26, 58, 42, 0.08);
}

.rc-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.rc-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}

.rc-points {
  font-size: 0.72rem;
  color: var(--muted);
}

.rc-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.8rem;
  opacity: 0.4;
}

/* ─── TOAST ──────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green);
  color: var(--cream);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(26, 58, 42, 0.35);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  max-width: 90vw;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast .t-icon {
  color: var(--gold);
}

/* ─── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
}

/* ─── LOGIN PAGE (within my-account) ────────────────────────────── */
#view-login {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-tab-bar {
  display: flex;
  background: var(--white);
  border-radius: 14px;
  padding: 5px;
  border: 1px solid rgba(26, 58, 42, 0.1);
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(26, 58, 42, 0.06);
}

.auth-tab {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
}

.auth-tab.active {
  background: var(--green);
  color: var(--cream);
}

.auth-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid rgba(26, 58, 42, 0.08);
  box-shadow: 0 12px 60px rgba(26, 58, 42, 0.1);
  overflow: hidden;
}

.auth-card-head {
  padding: 28px 28px 0;
  text-align: center;
}

.auth-logo {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.auth-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 6px;
}

.auth-title em {
  font-style: italic;
}

.auth-sub {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.auth-body {
  padding: 0 28px 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(26, 58, 42, 0.1);
}

.auth-divider span {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(26, 58, 42, 0.15);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}

.btn-social:hover {
  background: var(--cream);
  border-color: var(--green);
}

.auth-footer-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 20px;
}

.auth-footer-text a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
}

.auth-form-panel {
  display: none;
}

.auth-form-panel.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.forgot-link {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
  text-align: right;
  display: block;
  margin-top: -8px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--green);
}

.checkbox-row label {
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-row label a {
  color: var(--green);
  font-weight: 600;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .reward-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
  }
  .sidebar-card:first-child {
    display: none;
  }
  .sidebar-quick {
    display: none;
  }
  .sidebar-nav {
    display: flex;
    padding: 12px 16px;
    gap: 4px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(26, 58, 42, 0.07);
    min-width: 100%;
    width: max-content;
    max-width: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .sidebar-nav > li {
    list-style: none;
    flex-shrink: 0;
  }
  .sidebar-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sidebar-divider {
    display: none;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .addresses-grid {
    grid-template-columns: 1fr;
  }
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .reward-cards {
    grid-template-columns: 1fr 1fr;
  }
  .page-hero-right {
    display: none;
  }
  .wishlist-grid {
    grid-template-columns: 1fr 1fr;
  }
  .order-full-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  #view-login {
    padding: 24px 16px;
  }
}

@media (max-width: 400px) {
  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }
  .reward-cards {
    grid-template-columns: 1fr;
  }
  .wishlist-grid {
    grid-template-columns: 1fr;
  }
}