/* Account & Auth page styles */
.account-page { min-height: 100vh; background: var(--warm); padding-top: 100px; }
.account-inner { max-width: 960px; margin: 0 auto; padding: 40px 5% 80px; }
.account-hero { background: linear-gradient(135deg, var(--red-deep), var(--red)); border-radius: 24px; padding: 36px; color: #fff; margin-bottom: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.account-hero h1 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; margin-bottom: 4px; }
.account-hero p { font-size: 14px; opacity: 0.75; }
.account-hero .loyalty-badge { font-size: 14px; padding: 8px 20px; }

/* Auth forms */
.auth-card { background: #fff; border-radius: 24px; padding: 40px; max-width: 460px; margin: 60px auto; box-shadow: 0 8px 48px rgba(0,0,0,0.08); border: 1px solid var(--border); }
.auth-logo { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--red); text-align: center; margin-bottom: 4px; }
.auth-tagline { color: var(--muted); font-size: 14px; text-align: center; margin-bottom: 32px; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 28px; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.auth-tab { flex: 1; padding: 12px; background: #fff; border: none; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Outfit', sans-serif; color: var(--muted); transition: all 0.2s; }
.auth-tab.active { background: var(--red); color: #fff; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { color: var(--muted); font-size: 12px; }
.auth-submit { width: 100%; background: var(--red); color: #fff; border: none; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: 'Outfit', sans-serif; transition: all 0.3s; margin-top: 8px; }
.auth-submit:hover { background: var(--red-deep); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-error { background: rgba(200,23,26,0.06); border: 1px solid rgba(200,23,26,0.25); color: var(--red); font-size: 13px; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; display: none; }
.auth-error.show { display: block; }
.auth-success { background: rgba(26,122,58,0.06); border: 1px solid rgba(26,122,58,0.25); color: var(--green); font-size: 13px; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; display: none; }
.auth-success.show { display: block; }

/* Account sections */
.account-sections { display: flex; flex-direction: column; gap: 24px; }
.account-card { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--border); box-shadow: 0 2px 16px rgba(0,0,0,0.04); }
.account-card-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.account-card-title span { font-size: 22px; }

/* Orders */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-row { border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; transition: all 0.2s; }
.order-row:hover { border-color: rgba(200,23,26,0.3); background: var(--warm); }
.order-row-id { font-weight: 700; font-size: 13px; color: var(--muted); }
.order-row-date { font-size: 13px; color: var(--muted); }
.order-row-items { font-weight: 600; font-size: 14px; flex: 1; min-width: 160px; }
.order-row-total { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 900; color: var(--red); }
.order-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
.status-pending { background: rgba(245,180,41,0.15); color: #B8860A; }
.status-confirmed { background: rgba(26,122,58,0.12); color: var(--green); }
.status-preparing { background: rgba(200,23,26,0.1); color: var(--red); }
.status-out_for_delivery { background: rgba(26,122,58,0.12); color: var(--green); }
.status-delivered { background: rgba(26,122,58,0.12); color: var(--green); }
.status-cancelled { background: rgba(0,0,0,0.06); color: var(--muted); }

/* Loyalty points */
.loyalty-card { background: linear-gradient(135deg, var(--charcoal), #2d1f08); border-radius: 20px; padding: 28px; color: #fff; }
.loyalty-points-big { font-family: 'Playfair Display', serif; font-size: 56px; font-weight: 900; color: var(--gold-light); line-height: 1; }
.loyalty-pts-label { color: rgba(255,255,255,0.45); font-size: 13px; margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }
.loyalty-next { background: rgba(255,255,255,0.07); border-radius: 12px; padding: 14px 18px; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.loyalty-next-label { color: rgba(255,255,255,0.6); font-size: 12px; }
.loyalty-next-val { font-weight: 700; font-size: 14px; color: var(--gold-light); }
.loyalty-history { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.loyalty-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.loyalty-row:last-child { border-bottom: none; }
.loyalty-row-desc { font-size: 13px; color: rgba(255,255,255,0.6); }
.loyalty-row-pts { font-weight: 700; font-size: 14px; }
.pts-earned { color: var(--gold-light); }
.pts-redeemed { color: #ff8080; }

/* Profile form */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-save { background: var(--red); color: #fff; border: none; border-radius: 12px; padding: 13px 28px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: 'Outfit', sans-serif; margin-top: 6px; transition: all 0.2s; }
.profile-save:hover { background: var(--red-deep); }

/* Empty state */
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-title { font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.empty-state-sub { color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
  .account-hero { text-align: center; }
  .auth-card { margin: 20px auto; padding: 28px 20px; }
}
