:root {
  --pink: #ff6b9d;
  --pink-dark: #e94f86;
  --pink-soft: #fff0f6;
  --mint: #3aafaf;
  --mint-soft: #e9f8f5;
  --ink: #33243d;
  --muted: #7b6c83;
  --line: #ece3ed;
  --surface: #ffffff;
  --canvas: #fbf8fb;
  --danger: #b4233c;
  --shadow: 0 18px 55px rgba(61, 38, 69, 0.09);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.brand { font-size: 1.45rem; font-weight: 900; letter-spacing: -0.05em; }
.simple-header, .account-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(20px, 5vw, 70px); background: rgba(255,255,255,0.92); border-bottom: 1px solid var(--line); }
.simple-header a:last-child, .account-header nav a { color: var(--muted); font-weight: 800; }
.auth-page { min-height: 100vh; background: radial-gradient(circle at 8% 80%, #ffe4ef 0, transparent 34%), radial-gradient(circle at 90% 15%, #ddf4ed 0, transparent 32%); }
.auth-layout { width: min(1080px, calc(100% - 40px)); min-height: calc(100vh - 90px); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(35px, 7vw, 90px); align-items: center; padding: 55px 0; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--pink-dark); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.auth-intro h1 { max-width: 560px; margin: 0 0 18px; font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -0.055em; }
.auth-intro p { max-width: 520px; color: var(--muted); font-size: 1.03rem; line-height: 1.65; }
.auth-intro ul { display: grid; gap: 13px; margin: 28px 0 0; padding: 0; list-style: none; font-weight: 800; }
.auth-intro li::before { content: "✓"; display: inline-grid; width: 25px; height: 25px; margin-right: 10px; place-items: center; border-radius: 50%; color: var(--mint); background: var(--mint-soft); }
.auth-panel { padding: 32px; border: 1px solid var(--line); border-radius: 25px; background: var(--surface); box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 25px; padding: 5px; border-radius: 13px; background: #f6f1f6; }
.auth-tab { padding: 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 900; }
.auth-tab.active { color: var(--pink-dark); background: white; box-shadow: 0 3px 12px rgba(61,38,69,.07); }
.auth-form { display: grid; gap: 16px; }
.auth-form h2 { margin: 0 0 4px; font-size: 1.4rem; letter-spacing: -0.03em; }
label { display: grid; gap: 7px; color: var(--ink); font-size: 0.84rem; font-weight: 800; }
input, select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 11px; color: var(--ink); background: #fffdfd; outline: none; }
input:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,107,157,.11); }
input:disabled { color: var(--muted); background: #f7f3f7; }
.check-label { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-weight: 700; line-height: 1.45; }
.check-label input { width: 17px; min-height: 17px; margin-top: 2px; accent-color: var(--pink); }
.primary-button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; padding: 11px 18px; border: 0; border-radius: 12px; color: white; background: var(--pink); font-weight: 900; transition: .18s ease; }
.primary-button:hover { background: var(--pink-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.primary-button.small { min-height: 39px; padding: 9px 14px; font-size: .86rem; }
.secondary-button { min-height: 40px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; font-weight: 800; }
.text-button { padding: 0; border: 0; color: var(--pink-dark); background: transparent; font-weight: 900; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: #f6f1f6; font-size: 1.3rem; }
.fine-print { margin: 0; color: var(--muted); font-size: .76rem; text-align: center; }
.account-shell { min-height: 100vh; }
.account-header { position: sticky; top: 0; z-index: 20; }
.account-header nav { display: flex; align-items: center; gap: 22px; }
.account-layout { width: min(1320px, calc(100% - 40px)); margin: 34px auto 70px; display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-sidebar { position: sticky; top: 105px; display: grid; gap: 5px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.account-identity { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; padding: 0 5px 17px; border-bottom: 1px solid var(--line); }
.avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; color: white; background: var(--pink); font-weight: 900; }
.account-identity strong, .account-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-identity strong { font-size: .9rem; }
.account-identity small { max-width: 145px; margin-top: 3px; color: var(--muted); font-size: .7rem; }
.side-link { padding: 11px 12px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; text-align: left; font-weight: 800; }
.side-link.active { color: var(--pink-dark); background: var(--pink-soft); }
.account-main { min-width: 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: appear .2s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 27px; }
.page-heading h1 { margin: 0 0 5px; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.045em; }
.page-heading p { margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 32px; }
.metric-card { display: grid; gap: 12px; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.metric-card span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.metric-card strong { font-size: 2rem; letter-spacing: -0.05em; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 28px 0 14px; }
.section-heading h2 { margin: 0; font-size: 1.12rem; }
.order-list { display: grid; gap: 14px; }
.order-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.order-summary { display: grid; grid-template-columns: 1.25fr 1fr auto; gap: 18px; align-items: center; padding: 19px 21px; }
.order-number { display: block; margin-bottom: 5px; font-weight: 900; }
.muted { color: var(--muted); }
.small-text { color: var(--muted); font-size: .79rem; }
.order-total { font-size: 1.08rem; font-weight: 900; text-align: right; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #8a5b13; background: #fff5df; font-size: .72rem; font-weight: 900; }
.status.paid, .status.delivered { color: #157467; background: var(--mint-soft); }
.status.shipped { color: #315aa8; background: #edf3ff; }
.status.failed, .status.canceled, .status.requires_refund, .status.returned { color: var(--danger); background: #fff0f2; }
.order-details { border-top: 1px solid var(--line); }
.order-details summary { padding: 12px 21px; color: var(--muted); cursor: pointer; font-size: .82rem; font-weight: 800; }
.order-detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding: 0 21px 20px; }
.order-items { display: grid; gap: 10px; }
.order-item { display: flex; justify-content: space-between; gap: 15px; font-size: .85rem; }
.order-meta { display: grid; align-content: start; gap: 8px; color: var(--muted); font-size: .82rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.data-card { position: relative; display: grid; gap: 9px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.data-card h3 { margin: 0; font-size: 1rem; }
.data-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.card-badge { position: absolute; top: 16px; right: 16px; padding: 4px 8px; border-radius: 999px; color: var(--mint); background: var(--mint-soft); font-size: .68rem; font-weight: 900; }
.card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 7px; }
.content-card { display: grid; gap: 17px; margin-bottom: 20px; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.content-card h2 { margin: 0; font-size: 1.15rem; }
.content-card p { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full-width { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; }
.info-card { padding: 17px 19px; border: 1px solid #cce9e3; border-radius: 13px; color: #276b62; background: var(--mint-soft); font-size: .84rem; line-height: 1.55; }
.stripe-element { padding: 13px; border: 1.5px solid var(--line); border-radius: 11px; background: #fffdfd; }
.notice { margin-bottom: 18px; padding: 12px 15px; border: 1px solid #cce9e3; border-radius: 11px; color: #276b62; background: var(--mint-soft); font-size: .86rem; font-weight: 800; }
.notice.error { border-color: #ffd2d9; color: var(--danger); background: #fff0f2; }
.empty-state { padding: 35px 20px; border: 1px dashed var(--line); border-radius: 15px; color: var(--muted); background: white; text-align: center; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(37,24,43,.48); backdrop-filter: blur(4px); }
.modal-card { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; display: grid; gap: 14px; padding: 25px; border-radius: 20px; background: white; box-shadow: var(--shadow); }
.modal-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.modal-heading h2 { margin: 0; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 120; max-width: min(390px, calc(100% - 44px)); padding: 13px 17px; border-radius: 12px; color: white; background: var(--ink); box-shadow: var(--shadow); font-weight: 800; }
.toast.error { background: var(--danger); }
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; width: min(600px, calc(100% - 32px)); padding: 35px 0; }
  .auth-intro { text-align: center; }
  .auth-intro h1, .auth-intro p { margin-left: auto; margin-right: auto; }
  .auth-intro ul { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
  .account-layout { grid-template-columns: 1fr; width: min(900px, calc(100% - 28px)); margin-top: 20px; }
  .account-sidebar { position: static; display: flex; overflow-x: auto; padding: 10px; }
  .account-identity { display: none; }
  .side-link { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  .simple-header, .account-header { padding: 17px 18px; }
  .auth-panel { padding: 23px 19px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .card-grid, .form-grid, .order-detail-body { grid-template-columns: 1fr; }
  .order-summary { grid-template-columns: 1fr auto; }
  .order-summary .small-text { grid-column: 1 / -1; grid-row: 2; }
  .content-card { padding: 20px 17px; }
  .account-header nav { gap: 13px; font-size: .84rem; }
}
