/* ============================================================
   MISS MAGNOLIA — Minha Conta (Frontend Account)
   Premium dark/light design | Gold accents | Serif typography
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: #c5a059;
  --primary-rgb: 197, 160, 89;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #888;
  --bg: #f8f7f5;
  --surface: #fff;
  --border: #ebebeb;
  --border-light: #f0f0f0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; }

.flex { display: flex; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: 600;
}

.logo:hover { color: var(--primary); }

.nav-icons {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.nav-icons a { color: var(--text); position: relative; }
.nav-icons a:hover, .nav-icons a.active { color: var(--primary); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.55rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2520 100%);
  color: #fff;
  padding: 52px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 400;
}

.hero p {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  opacity: 0.55;
  font-weight: 400;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.hero-badge.warning {
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

/* ===== ACCOUNT LAYOUT ===== */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 32px 0 60px;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.user-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), rgba(var(--primary-rgb), 0.3));
}

.user-avatar {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.7));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.user-name {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.user-email {
  font-size: 0.7rem;
  color: var(--text-muted);
  word-break: break-all;
}

.user-since {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-light);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.nav-link:last-child { border-bottom: none; }
.nav-link:hover { background: var(--bg); color: var(--text); }

.nav-link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.nav-link i {
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
}

.nav-link .badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 0.55rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.nav-link.logout {
  color: #ef4444;
  margin-top: 8px;
  border: 1px solid #fecaca;
  background: #fff;
}

.nav-link.logout:hover { background: #fef2f2; }

/* ===== MAIN CONTENT ===== */
.main-content {
  min-width: 0;
}

/* ===== PANEL / CARD ===== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.panel:hover { box-shadow: var(--shadow); }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
  flex-wrap: wrap;
}

.panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.panel-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ===== ALERTS ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== STATS GRID (Dashboard) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover::after { opacity: 1; }

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 0.9rem;
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* ===== RECENT ORDERS LIST ===== */
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
  flex-wrap: wrap;
  transition: var(--transition);
  cursor: pointer;
}

.order-row:last-child { border-bottom: none; }
.order-row:hover { background: var(--bg); }

.order-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.order-row-info .order-row-id {
  font-weight: 700;
  font-size: 0.85rem;
}

.order-row-info .order-row-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.order-row-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ===== QUICK ACTIONS ===== */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.action-card {
  border: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: block;
  color: var(--text);
}

.action-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.1rem;
  transition: var(--transition);
}

.action-card:hover .action-icon { transform: scale(1.1); }

.action-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.action-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== ORDER CARDS (Pedidos) ===== */
.order-card {
  position: relative;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  /* ux-toolkit: group card with accent line */
}

.order-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
  transition: var(--transition);
  z-index: 1;
}

.order-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateY(-1px);
}

.order-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 12px;
  flex-wrap: wrap;
  /* ux-toolkit: clickable header area */
}

.order-id {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}

.order-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.order-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-meta-icon {
  font-size: 0.65rem;
  opacity: 0.7;
}

.order-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-card-body {
  padding: 0 24px 20px;
  display: none;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

.order-card.open .order-card-body { display: block; }

.order-card-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.order-card.open .order-card-chevron { transform: rotate(180deg); }

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ux-toolkit: order header left section */
.order-card-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

/* ux-toolkit: order header right section */
.order-card-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ux-toolkit: order icon circle */
.order-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ===== ORDER DETAIL GRID ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section h4 i { color: var(--primary); font-size: 0.9rem; }

/* Order detail header */
.detail-header-info .detail-header-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-header-info .detail-header-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
}

.detail-header-info .detail-header-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  padding-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.timeline-dot.done { background: var(--primary); color: #fff; }

.timeline-dot.current {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}

.timeline-dot.pending { background: var(--border); color: var(--text-muted); }

.timeline-info { flex: 1; }
.timeline-label { font-size: 0.78rem; font-weight: 600; }
.timeline-date { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

/* ===== ITEM ROW ===== */
.item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.item-row:last-child { border-bottom: none; }

.item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.item-info { flex: 1; }
.item-name { font-size: 0.82rem; font-weight: 600; }

.item-name a { color: var(--text); }
.item-name a:hover { color: var(--primary); }

.item-variant {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.item-qty { font-size: 0.75rem; color: var(--text-light); }
.item-price { font-weight: 700; font-size: 0.88rem; white-space: nowrap; }

/* ===== SUMMARY ROWS ===== */
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.82rem;
}

.summary-row.total {
  border-top: 2px solid var(--text);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 800;
  font-size: 1rem;
}

.summary-row.discount { color: #22c55e; }

.panel-summary {
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover { background: var(--primary); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--text); }

.btn-sm {
  padding: 8px 16px;
  font-size: 0.65rem;
}

.btn-danger {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

.btn-danger:hover { background: #fee2e2; }

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-full + .btn-full { margin-top: 10px; }

.btn-lg {
  padding: 15px;
  width: 100%;
  justify-content: center;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover { border-color: var(--primary); color: var(--primary); }

.btn-icon.danger { color: #ef4444; border-color: #fecaca; }
.btn-icon.danger:hover { background: #fef2f2; }

/* ===== FORMS ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 0.84rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.form-control:disabled {
  background: var(--bg);
  opacity: 0.6;
}

/* ===== PASSWORD SECTION ===== */
.password-section {
  border-top: 1px solid var(--border);
  margin: 24px 0;
  padding-top: 24px;
}

.password-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-section-title i { color: var(--primary); }

.password-section-title .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Password strength bar */
.pass-strength {
  font-size: 0.7rem;
  margin-top: -8px;
  margin-bottom: 16px;
  display: none;
}

.pass-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 4px;
}

.pass-strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== ADDRESS CARDS ===== */
.addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.addr-card {
  border: 1px solid var(--border);
  padding: 22px;
  position: relative;
  background: var(--surface);
  transition: var(--transition);
}

.addr-card:hover { box-shadow: var(--shadow); }
.addr-card.default { border-color: var(--primary); }

.addr-default-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.addr-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.addr-text {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.7;
}

.addr-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.addr-add-card {
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 180px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.addr-add-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.02);
}

.addr-add-card-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.addr-add-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ===== FAVORITES GRID ===== */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.fav-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.fav-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.fav-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.fav-body { padding: 14px; }

.fav-title {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.fav-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.fav-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ef4444;
  font-size: 0.8rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.fav-remove:hover {
  background: #fef2f2;
  transform: scale(1.1);
}

/* ===== EMPTY STATES ===== */
.empty-state {
  text-align: center;
  padding: 50px 24px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  color: var(--border);
  opacity: 0.6;
}

.empty-text {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.empty-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ===== TRACKING CODE BOX ===== */
.tracking-box {
  padding: 10px;
  background: rgba(59, 130, 246, 0.06);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.tracking-box-label {
  color: #3b82f6;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tracking-box-code {
  font-size: 0.85rem;
  font-weight: 600;
}

.no-tracking-box {
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-xs);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ===== PAYMENT INFO ===== */
.payment-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.payment-info-icon { font-size: 1.2rem; }
.payment-info-icon.pix { color: #22c55e; }
.payment-info-icon.card { color: #3b82f6; }
.payment-info-icon.other { color: var(--text-muted); }

.payment-info-label { font-size: 0.82rem; font-weight: 600; }

.payment-status {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===== AUTH FORMS (Login/Register) ===== */
.auth-wrap {
  max-width: 480px;
  margin: 40px auto 60px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  margin-bottom: 0;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.auth-tab {
  padding: 16px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: inherit;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--text);
  color: #fff;
}

.auth-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 32px;
  border-radius: 0 0 var(--radius) var(--radius);
  display: none;
}

.auth-panel.active { display: block; }

.auth-footer {
  text-align: center;
  margin-top: 24px;
}

.auth-forgot {
  text-align: center;
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.auth-forgot a {
  color: var(--primary);
  font-weight: 600;
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: var(--transition);
}

.back-link:hover { color: var(--primary); }

/* ===== WHATSAPP FLOAT ===== */
.wpp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: 499;
  transition: var(--transition);
}

.wpp-float:hover {
  transform: scale(1.08);
  color: #fff;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-body { padding: 24px; }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .sidebar { order: 0; }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .addr-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .order-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
