: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;
}
body.account-page {
  display: block;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #eef4ff 46%, #f8fafc 100%);
}
.account-page-main,
.account-auth-layout,
.account-auth-hero,
.account-auth-panel,
.account-form-card,
.profile-shell,
.profile-hero,
.profile-hero-copy,
.profile-overview-grid,
.profile-panel,
.profile-orders-panel,
.order-history-card {
  min-width: 0;
}
.account-page-main {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(32px, 5vw, 56px) auto 80px;
}
.account-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
}
.account-auth-hero,
.profile-hero,
.profile-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}
.account-auth-hero {
  display: grid;
  gap: 24px;
  align-content: start;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 34px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(37, 99, 235, 0.12));
}
.account-kicker {
  margin: 0;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.account-page-title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.account-page-copy {
  margin: 0;
  max-width: 58ch;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.8;
  text-wrap: pretty;
}
.account-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.account-feature-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(8px);
}
.account-feature-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 1rem;
}
.account-feature-card span {
  display: block;
  color: #64748b;
  font-size: 0.93rem;
  line-height: 1.65;
}
.account-page .account-context {
  margin: 0;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #1e3a8a;
}
.account-auth-panel {
  display: flex;
}
.account-form-card {
  width: 100%;
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: 34px;
  display: grid;
  gap: 22px;
}
.account-form-card .login-brand {
  margin-bottom: 0;
  align-items: flex-start;
}
.account-form-card .login-brand > div {
  min-width: 0;
}
.account-form-card .brand-icon {
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
  color: #1d4ed8;
  font-size: 1.1rem;
  font-weight: 800;
}
.account-page .login-form {
  gap: 16px;
}
.account-page label {
  color: #334155;
}
.account-page input {
  background: #ffffff;
  border-color: #d7dfeb;
}
.account-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.account-toggle-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.account-inline-link,
.profile-hero-link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}
.account-inline-link:hover,
.profile-hero-link:hover {
  text-decoration: underline;
}
.account-page .footer {
  margin-top: 0;
}
.profile-shell {
  display: grid;
  gap: 24px;
}
.profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 34px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9)),
    linear-gradient(135deg, rgba(15, 118, 110, 0.04), rgba(37, 99, 235, 0.1));
}
.profile-hero-copy {
  max-width: 60ch;
}
.profile-hero-title {
  margin: 10px 0 8px;
  font-size: clamp(1.9rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.profile-hero-caption {
  margin: 0;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.75;
  text-wrap: pretty;
}
.profile-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-hero-button {
  width: auto;
  padding: 14px 24px;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.2);
}
.profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: start;
}
.profile-panel {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
}
.profile-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.profile-panel-heading h3 {
  margin: 6px 0 0;
  font-size: 1.2rem;
  color: #0f172a;
}
.profile-panel-label {
  margin: 0;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.profile-detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}
.profile-detail-list div {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #f8fafc;
}
.profile-detail-list dt {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-detail-list dd {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}
.account-page .profile-stats {
  gap: 16px;
}
.account-page .profile-stat {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.profile-address-list {
  display: grid;
  gap: 12px;
}
.profile-address-chip {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #f8fafc;
  color: #334155;
  line-height: 1.65;
}
.profile-orders-panel {
  padding-bottom: 24px;
}
.profile-orders-panel .order-history-list {
  max-height: none;
  padding-right: 0;
}
.account-page .order-history-card {
  background: #fcfdff;
}
code { background: rgba(15, 23, 42, 0.06); padding: 2px 6px; border-radius: 6px; }
@media (max-width: 1080px) {
  .account-auth-layout,
  .profile-overview-grid {
    grid-template-columns: 1fr;
  }
  .account-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .account-page .header {
    position: static;
  }
  .account-page-main {
    width: calc(100% - 20px);
    margin: 16px auto 44px;
  }
  .account-auth-layout,
  .profile-shell {
    gap: 16px;
  }
  .account-auth-hero,
  .account-form-card,
  .profile-hero,
  .profile-panel {
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  }
  .account-auth-hero {
    gap: 18px;
  }
  .account-feature-grid,
  .profile-overview-grid {
    grid-template-columns: 1fr;
  }
  .account-page-title {
    max-width: none;
    font-size: clamp(1.85rem, 8.8vw, 2.7rem);
    line-height: 1.12;
  }
  .account-page-copy,
  .profile-hero-caption {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .account-form-card .login-brand {
    flex-direction: column;
    gap: 12px;
  }
  .account-form-card .brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .account-form-footer,
  .profile-hero,
  .profile-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-form-footer,
  .account-toggle-links,
  .profile-hero-actions {
    width: 100%;
  }
  .account-toggle-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .profile-hero-title {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
    line-height: 1.12;
  }
  .profile-panel-heading {
    margin-bottom: 14px;
  }
  .profile-detail-list div,
  .profile-address-chip,
  .account-page .profile-stat,
  .account-page .order-history-card {
    padding: 14px;
  }
  .profile-orders-panel {
    padding-bottom: 18px;
  }
  .order-history-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }
  .order-history-image {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .profile-hero-button {
    width: 100%;
  }
}
@media (max-width: 520px) {
  .login-card { padding: 18px; border-radius: 18px; }
  .account-page-main {
    width: calc(100% - 16px);
    margin: 12px auto 32px;
  }
  .account-auth-hero,
  .account-form-card,
  .profile-hero,
  .profile-panel {
    padding: 16px;
    border-radius: 18px;
  }
  .account-page-title {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }
  .profile-hero-title {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }
  .account-kicker,
  .profile-panel-label {
    letter-spacing: 0.1em;
  }
  .account-form-footer,
  .profile-hero-actions {
    gap: 10px;
  }
  .account-page input,
  .account-page button {
    padding: 13px 14px;
    border-radius: 14px;
  }
  .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; }
