:root {
  color-scheme: light;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 22%),
              linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  color: #0f172a;
}
.login-shell {
  width: min(460px, calc(100% - 32px));
}
.login-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  padding: 32px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  font-size: 1.75rem;
}
h1 { margin: 0; font-size: 1.9rem; letter-spacing: -0.03em; }
.login-card p { margin: 8px 0 0; color: #64748b; font-size: 0.95rem; }
.login-form { display: grid; gap: 18px; }
label { display: grid; gap: 10px; font-weight: 600; color: #475569; }
input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  background: #f8fafc;
}
input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14); }
button {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 16px;
  background: #2563eb;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
button:hover { transform: translateY(-1px); background: #1d4ed8; }
.login-note {
  margin: 20px 0 0;
  color: #64748b;
  font-size: 0.95rem;
}
.login-message {
  min-height: 22px;
  color: #b91c1c;
  font-size: 0.95rem;
}
.account-context {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(191, 219, 254, 0.3));
  color: #1e3a8a;
  font-size: 0.92rem;
  line-height: 1.55;
}
.profile-summary {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.profile-meta p {
  margin: 0 0 8px;
  color: #334155;
}
.profile-meta p:last-child { margin-bottom: 0; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.profile-stat {
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
}
.profile-stat span {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}
.profile-stat small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-section-title {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #0f172a;
}
.order-history-list {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.order-history-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
}
.order-history-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.order-history-id {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}
.order-history-date {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 0.8rem;
}
.order-history-meta {
  text-align: right;
}
.order-history-meta strong {
  display: block;
  color: #0f172a;
}
.order-history-meta span {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 600;
}
.order-history-address {
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.9rem;
}
.order-history-items {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.order-history-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.order-history-item strong {
  display: block;
  color: #0f172a;
}
.order-history-item p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.86rem;
}
.order-history-image {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #e2e8f0;
}
.order-history-image-fallback {
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}
.order-history-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}
.account-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}
code { background: rgba(15, 23, 42, 0.06); padding: 2px 6px; border-radius: 6px; }
@media (max-width: 520px) {
  .login-card { padding: 24px; border-radius: 22px; }
  .profile-stats { grid-template-columns: 1fr; }
  .order-history-header { flex-direction: column; }
  .order-history-meta { text-align: left; }
}

/* Footer styles */
.footer { background: #111827; color: #cbd5e1; text-align: center; padding: 28px 20px; margin-top: 60px; font-size: 0.93rem; }
.footer p { margin: 0 0 16px 0; line-height: 1.8; }
.social-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-icon { transition: 0.2s; padding: 8px; display: inline-flex; align-items: center; justify-content: center; }
.social-icon img { display: block; }
.social-icon.whatsapp:hover img { opacity: 0.8; }
.social-icon.tiktok:hover img { opacity: 0.8; }
.social-icon.instagram:hover img { opacity: 0.8; }
.social-icon.phone:hover img { opacity: 0.8; }
