.auth-page,
.account-page,
.result-page {
  min-height: 100svh;
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Fredoka Pelangi", sans-serif;
}

.account-brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 24px rgba(28, 31, 52, .16);
  transform: rotate(-5deg);
}

.account-brand-mark i {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 7px solid var(--primary);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  transform: translateY(12px);
}

.account-brand-mark i:nth-child(2) { width: 24px; height: 24px; border-color: var(--accent); transform: translateY(15px); }
.account-brand-mark i:nth-child(3) { width: 14px; height: 14px; border-color: var(--secondary); transform: translateY(18px); }
.account-brand span:last-child { display: grid; line-height: 1.04; }
.account-brand small { color: var(--muted); font: 800 9px/1.2 "Nunito Pelangi", sans-serif; letter-spacing: .18em; }
.account-brand strong { color: var(--ink); font-size: 21px; letter-spacing: -.02em; }

.auth-shell {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  min-height: min(760px, calc(100svh - 48px));
  margin: 24px auto;
  grid-template-columns: minmax(0, .92fr) minmax(470px, 1.08fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 38px;
  background: var(--surface);
  box-shadow: 0 30px 80px color-mix(in srgb, var(--footer) 16%, transparent);
}

.auth-story {
  position: relative;
  display: flex;
  min-width: 0;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 84% 14%, rgba(255,255,255,.2) 0 8%, transparent 8.4%),
    radial-gradient(circle at 15% 78%, rgba(255,255,255,.12) 0 12%, transparent 12.4%),
    linear-gradient(145deg, var(--hero-start), var(--hero-end));
}

.auth-story .account-brand { position: relative; z-index: 2; }
.auth-story .account-brand small { color: rgba(255,255,255,.72); }
.auth-story .account-brand strong { color: #fff; }
.auth-story-copy { position: relative; z-index: 2; margin: auto 0 40px; }
.auth-kicker { display: block; color: var(--secondary); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.auth-story .auth-kicker { color: var(--accent); }
.auth-story h1 { max-width: 520px; margin: 17px 0 18px; font: 650 clamp(39px, 5vw, 66px)/.98 "Fredoka Pelangi", sans-serif; letter-spacing: -.045em; }
.auth-story h1 em { color: var(--accent); font-style: normal; }
.auth-story-copy p { max-width: 500px; margin: 0; color: rgba(255,255,255,.82); font-size: 17px; }

.auth-benefits { position: relative; z-index: 2; display: grid; gap: 10px; }
.auth-benefits article { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.auth-benefits b { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: var(--hero-start); background: var(--accent); font-size: 12px; }
.auth-benefits span { display: grid; }
.auth-benefits strong { font-size: 14px; }
.auth-benefits small { color: rgba(255,255,255,.7); font-size: 12px; }
.auth-orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.orbit-one { width: 340px; height: 340px; right: -190px; top: 100px; }
.orbit-two { width: 520px; height: 520px; left: -370px; bottom: -300px; }

.auth-card { display: flex; min-width: 0; padding: clamp(28px, 5vw, 62px); flex-direction: column; justify-content: center; background: color-mix(in srgb, var(--surface) 94%, var(--surface-soft)); }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.back-catalog { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.back-catalog:hover { color: var(--primary); }
.back-catalog.centered { justify-content: center; margin-top: 20px; }
.auth-theme { display: inline-flex; min-height: 40px; padding: 8px 13px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); font-weight: 800; }
.auth-theme span { width: 16px; height: 16px; border: 4px solid var(--primary); border-radius: 50%; box-shadow: 7px 0 0 -3px var(--accent); }
.auth-heading h2 { margin: 8px 0 4px; color: var(--ink); font: 650 clamp(31px, 4vw, 45px)/1 "Fredoka Pelangi", sans-serif; letter-spacing: -.035em; }
.auth-heading p { margin: 0; color: var(--muted); }
.auth-tabs { display: grid; padding: 5px; margin: 28px 0 24px; grid-template-columns: 1fr 1fr; border-radius: 16px; background: var(--surface-soft); }
.auth-tabs button { min-height: 44px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; font-weight: 900; }
.auth-tabs button.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 28%, transparent); }

.auth-form { display: grid; gap: 16px; }
.auth-form label,
.profile-form label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 850; }
.auth-form label > small,
.profile-form label > small { color: var(--muted); font-size: 11px; font-weight: 700; }
.auth-form input,
.auth-form textarea,
.profile-form input,
.profile-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: var(--surface);
  font: 750 15px/1.4 "Nunito Pelangi", sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.auth-form textarea,
.profile-form textarea { min-height: 88px; resize: vertical; }
.auth-form input:focus,
.auth-form textarea:focus,
.profile-form input:focus,
.profile-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 13%, transparent); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 65px; }
.password-field button { position: absolute; right: 7px; top: 7px; min-height: 34px; padding: 0 9px; border: 0; border-radius: 9px; color: var(--primary-strong); background: var(--surface-soft); font-size: 11px; font-weight: 900; }
.form-grid { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; }
.auth-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.remember-check { display: flex !important; align-items: flex-start; gap: 9px !important; color: var(--muted) !important; font-size: 12px !important; }
.remember-check input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--primary); }
.consent-check { padding: 12px; border-radius: 13px; background: var(--surface-soft); }
.consent-check a { color: var(--primary-strong); font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.forgot-link { padding: 4px; border: 0; color: var(--primary-strong); background: none; font-size: 12px; font-weight: 900; }
.auth-submit,
.profile-submit { display: flex; min-height: 52px; padding: 11px 16px; align-items: center; justify-content: space-between; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 24%, transparent); font-weight: 900; }
.auth-submit b { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 11px; color: var(--primary-strong); background: #fff; }
.auth-submit[disabled], .profile-submit[disabled] { cursor: wait; opacity: .65; }
.legacy-note { display: grid; padding: 13px 15px; gap: 3px; border-left: 4px solid var(--accent); border-radius: 5px 13px 13px 5px; color: var(--muted); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-size: 12px; }
.legacy-note strong { color: var(--ink); }
.legacy-note code { padding: 1px 4px; border-radius: 5px; color: var(--primary-strong); background: var(--surface); font-weight: 900; }
.form-message,
.account-message { padding: 12px 15px; margin-bottom: 14px; border-radius: 13px; color: #17633d; background: #e4f7ed; font-weight: 800; }
.form-message.is-error,
.account-message.is-error { color: #912d3f; background: #ffe8ed; }

dialog.account-dialog,
dialog.account-theme-dialog { width: min(520px, calc(100% - 28px)); max-height: min(780px, calc(100svh - 28px)); padding: 28px; overflow: auto; border: 0; border-radius: 26px; color: var(--ink); background: var(--surface); box-shadow: 0 28px 80px rgba(18, 25, 42, .28); }
dialog::backdrop { background: rgba(13, 28, 42, .68); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; right: 17px; top: 17px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 13px; color: var(--ink); background: var(--surface-soft); font-size: 24px; }
.forgot-dialog h2,
.crop-dialog h2 { margin: 8px 45px 6px 0; font: 650 31px/1 "Fredoka Pelangi", sans-serif; }
.forgot-dialog > p,
.crop-dialog > p { margin: 0 25px 22px 0; color: var(--muted); }
.theme-options { display: grid; gap: 10px; }
.theme-options button { display: flex; min-height: 58px; padding: 10px 13px; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--surface); text-align: left; }
.theme-options button > i { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.theme-options button span { display: grid; }
.theme-options button small { color: var(--muted); }
.theme-options button.active { border-color: var(--primary); background: var(--surface-soft); }

.result-page { display: grid; padding: 22px; place-items: center; }
.result-card { width: min(520px, 100%); padding: clamp(28px, 7vw, 54px); border: 1px solid var(--line); border-radius: 32px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.result-icon { display: grid; width: 72px; height: 72px; margin: 0 auto 22px; place-items: center; border-radius: 25px; color: #fff; background: var(--secondary); font: 700 36px/1 "Fredoka Pelangi", sans-serif; transform: rotate(-4deg); }
.result-card.is-error .result-icon { background: var(--primary); }
.result-card h1 { margin: 10px 0; font: 650 clamp(31px, 7vw, 43px)/1.04 "Fredoka Pelangi", sans-serif; }
.result-card > p { color: var(--muted); }
.result-link { margin-top: 24px; }
.result-card > small { display: block; margin-top: 18px; color: var(--muted); }
.reset-card { text-align: left; }
.reset-card .auth-kicker { text-align: center; }
.reset-card h1, .reset-card > p { text-align: center; }
.privacy-card { width: min(760px, 100%); padding: clamp(25px, 6vw, 52px); border: 1px solid var(--line); border-radius: 32px; background: var(--surface); box-shadow: var(--shadow); }
.privacy-card header { padding: 38px 0 22px; border-bottom: 1px solid var(--line); }
.privacy-card h1 { margin: 8px 0; font: 650 clamp(36px, 7vw, 54px)/1 "Fredoka Pelangi", sans-serif; }
.privacy-card header p, .privacy-card section p { color: var(--muted); }
.privacy-card section { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.privacy-card section h2 { margin: 0 0 5px; font: 650 22px/1.2 "Fredoka Pelangi", sans-serif; }
.privacy-card section p { margin: 0; }
.privacy-card footer { padding-top: 25px; }
.privacy-card footer > small { display: block; color: var(--muted); }
.privacy-card footer .result-link { width: min(320px, 100%); }

.account-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--paper-2) 90%, transparent); backdrop-filter: blur(18px); }
.account-header-shell { display: flex; width: var(--shell); min-height: 76px; margin: auto; align-items: center; gap: 26px; }
.account-desktop-nav { display: flex; margin-left: auto; gap: 4px; }
.account-desktop-nav button,
.account-catalog-link { display: inline-flex; min-height: 40px; padding: 8px 15px; align-items: center; border: 0; border-radius: 13px; color: var(--muted); background: transparent; font-weight: 900; text-decoration: none; }
.account-catalog-link { color: var(--primary-strong); background: var(--surface-soft); }
.account-desktop-nav button.active { color: var(--primary-strong); background: var(--surface-soft); }
.account-header-actions { display: flex; align-items: center; gap: 8px; }
.logout-button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--ink); background: var(--surface); font-weight: 900; }
.logout-button svg { width: 20px; fill: none; stroke: var(--secondary); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.account-main { width: var(--shell); padding: 30px 0 110px; margin: auto; }
.account-hero { position: relative; display: grid; min-height: 190px; padding: clamp(24px, 4vw, 42px); grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; overflow: hidden; border-radius: 30px; color: #fff; background: linear-gradient(130deg, var(--hero-start), var(--hero-end)); box-shadow: 0 20px 45px color-mix(in srgb, var(--hero-start) 20%, transparent); }
.account-hero::after { position: absolute; width: 310px; height: 310px; right: -110px; top: -150px; border: 35px solid rgba(255,255,255,.09); border-radius: 50%; content: ""; }
.account-avatar,
.profile-photo-large { display: grid; flex: none; overflow: hidden; place-items: center; border-radius: 50%; color: var(--primary-strong); background: var(--accent); font: 700 34px/1 "Fredoka Pelangi", sans-serif; }
.account-avatar { width: 90px; height: 90px; border: 5px solid rgba(255,255,255,.32); }
.account-avatar img,
.profile-photo-large img { width: 100%; height: 100%; object-fit: cover; }
.account-welcome { position: relative; z-index: 1; }
.account-welcome .auth-kicker { color: var(--accent); }
.account-welcome h1 { margin: 8px 0 4px; font: 650 clamp(30px, 5vw, 48px)/1 "Fredoka Pelangi", sans-serif; }
.account-welcome h1 em { color: var(--accent); font-style: normal; }
.account-welcome p { margin: 0; color: rgba(255,255,255,.75); }
.account-hero-badge { position: relative; z-index: 1; display: grid; min-width: 155px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.11); backdrop-filter: blur(12px); }
.account-hero-badge small { color: rgba(255,255,255,.65); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.account-hero-badge strong { color: var(--accent); font: 650 22px/1.2 "Fredoka Pelangi", sans-serif; }
.account-hero-badge span { color: rgba(255,255,255,.74); font-size: 11px; }
.force-password { display: flex; padding: 17px 20px; margin-top: 18px; align-items: center; gap: 14px; border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--accent) 15%, var(--surface)); }
.force-password > span { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 13px; color: #fff; background: #c87910; font-weight: 900; }
.force-password div { flex: 1; }
.force-password strong { display: block; color: var(--ink); }
.force-password p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.force-password button { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 12px; color: #fff; background: var(--primary-strong); font-weight: 900; }
.account-message { position: sticky; z-index: 50; top: 88px; margin-top: 16px; box-shadow: var(--shadow-small); }
.account-view { padding-top: 26px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.summary-card { display: flex; min-width: 0; padding: 19px; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-small); }
.summary-icon { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 16px; color: var(--tone-d); background: color-mix(in srgb, var(--tone-d) 13%, var(--surface)); font: 700 18px/1 "Fredoka Pelangi", sans-serif; }
.points-card .summary-icon { color: #9a6700; background: color-mix(in srgb, var(--accent) 26%, var(--surface)); }
.summary-card div { min-width: 0; }
.summary-card small { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.summary-card strong { display: block; overflow: hidden; color: var(--ink); font: 650 clamp(21px, 2.5vw, 29px)/1.15 "Fredoka Pelangi", sans-serif; text-overflow: ellipsis; }
.summary-card p { margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-feature-grid { display: grid; margin-top: 18px; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.account-feature { position: relative; min-height: 260px; padding: clamp(25px, 4vw, 38px); overflow: hidden; border-radius: 25px; background: var(--surface); box-shadow: var(--shadow-small); }
.account-feature h2 { max-width: 520px; margin: 9px 0; color: var(--ink); font: 650 clamp(27px, 4vw, 40px)/1.04 "Fredoka Pelangi", sans-serif; }
.account-feature p { position: relative; z-index: 2; max-width: 540px; color: var(--muted); }
.account-feature button { position: absolute; z-index: 2; left: 38px; bottom: 30px; padding: 0; border: 0; color: var(--primary-strong); background: none; font-weight: 900; }
.feature-history { background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent-2) 12%, var(--surface))); }
.feature-loyalty { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, var(--surface)), var(--surface)); }
.feature-shape { position: absolute; width: 190px; height: 190px; right: -55px; bottom: -60px; border: 30px solid color-mix(in srgb, var(--accent-2) 16%, transparent); border-radius: 50%; }
.feature-coin { position: absolute; right: 28px; bottom: 25px; display: grid; width: 80px; height: 80px; place-items: center; border: 8px double color-mix(in srgb, #a66b00 60%, var(--accent)); border-radius: 50%; color: #9a6700; background: var(--accent); box-shadow: 0 12px 24px rgba(131,83,0,.2); font: 700 35px/1 "Fredoka Pelangi", sans-serif; transform: rotate(9deg); }
.view-heading { display: flex; padding: 7px 2px 20px; align-items: end; justify-content: space-between; gap: 18px; }
.view-heading h2 { margin: 7px 0 2px; font: 650 clamp(30px, 4vw, 43px)/1 "Fredoka Pelangi", sans-serif; }
.view-heading p { margin: 0; color: var(--muted); }
.view-count { padding: 8px 12px; border-radius: 12px; color: var(--primary-strong); background: var(--surface-soft); font-size: 12px; font-weight: 900; }
.account-list { display: grid; gap: 10px; }
.transaction-row,
.point-row,
.redemption-row { display: grid; padding: 17px 18px; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); background: var(--surface); box-shadow: 0 6px 18px color-mix(in srgb, var(--footer) 6%, transparent); }
.transaction-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; text-align: left; cursor: pointer; }
.transaction-row:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); transform: translateY(-1px); }
.list-badge { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; color: var(--secondary); background: color-mix(in srgb, var(--secondary) 13%, var(--surface)); font: 700 18px/1 "Fredoka Pelangi", sans-serif; }
.transaction-main { min-width: 0; }
.transaction-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-main p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-main small { display: block; margin-top: 5px; color: var(--muted); }
.transaction-value { text-align: right; }
.transaction-value strong { display: block; color: var(--primary-strong); font: 650 19px/1.2 "Fredoka Pelangi", sans-serif; }
.transaction-value small { color: var(--muted); font-size: 10px; }
.account-loading { display: grid; gap: 10px; }
.account-loading i { display: block; height: 82px; border-radius: 19px; background: linear-gradient(90deg, var(--surface-soft), var(--surface), var(--surface-soft)); background-size: 220% 100%; animation: account-loading 1.2s infinite linear; }
@keyframes account-loading { to { background-position: -220% 0; } }
.account-empty { padding: 45px 20px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); background: var(--surface); text-align: center; }
.account-empty strong { display: block; color: var(--ink); font: 650 24px/1.2 "Fredoka Pelangi", sans-serif; }
.account-pagination { display: flex; margin-top: 18px; justify-content: center; gap: 7px; }
.account-pagination button { min-width: 40px; min-height: 40px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); font-weight: 900; }
.account-pagination button.active { border-color: var(--primary); color: #fff; background: var(--primary); }
.account-pagination button:disabled { opacity: .45; }
.loyalty-account-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 16px; }
.points-wallet { grid-row: span 3; min-height: 290px; padding: 28px; border-radius: 25px; color: #553b00; background: linear-gradient(155deg, #ffe37b, var(--accent)); box-shadow: 0 18px 35px color-mix(in srgb, var(--accent) 26%, transparent); }
.points-wallet small { font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.points-wallet strong { display: block; margin-top: 25px; font: 700 58px/1 "Fredoka Pelangi", sans-serif; }
.points-wallet span { font-weight: 900; }
.points-wallet p { margin-top: 40px; font-size: 13px; }
.points-tabs { display: flex; padding: 4px; justify-self: start; border-radius: 14px; background: var(--surface-soft); }
.points-tabs button { min-height: 39px; padding: 7px 15px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-weight: 900; }
.points-tabs button.active { color: #fff; background: var(--primary); }
.point-row,
.redemption-row { grid-template-columns: minmax(0,1fr) auto; gap: 14px; }
.point-row strong,
.redemption-row strong { display: block; }
.point-row small,
.redemption-row small { color: var(--muted); }
.point-row b { color: var(--secondary); font: 650 20px/1.2 "Fredoka Pelangi", sans-serif; }
.point-row.redeemed b { color: var(--muted); text-decoration: line-through; }
.redemption-row b { color: var(--primary-strong); }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); align-items: start; gap: 18px; }
.profile-photo-card { position: sticky; top: 98px; padding: 27px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-small); text-align: center; }
.profile-photo-large { width: 132px; height: 132px; margin: 0 auto 16px; border: 7px solid var(--surface-soft); font-size: 50px; }
.profile-photo-card h3 { margin: 0; font: 650 25px/1.1 "Fredoka Pelangi", sans-serif; }
.profile-photo-card p { color: var(--muted); font-size: 12px; }
.photo-picker { display: block !important; padding: 11px; border-radius: 13px; color: #fff !important; background: var(--primary); cursor: pointer; font-weight: 900 !important; }
.profile-forms { display: grid; gap: 16px; }
.profile-form { display: grid; padding: clamp(20px, 4vw, 30px); gap: 15px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-small); }
.profile-form-head { display: flex; margin-bottom: 5px; align-items: end; justify-content: space-between; gap: 15px; }
.profile-form-head span { color: var(--secondary); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.profile-form-head h3 { margin: 3px 0 0; font: 650 25px/1.1 "Fredoka Pelangi", sans-serif; }
.profile-form-head > small { max-width: 200px; color: var(--muted); text-align: right; }
.profile-submit { justify-content: center; gap: 10px; justify-self: end; min-width: 180px; }
.transaction-dialog { width: min(680px, calc(100% - 24px)) !important; }
.receipt-head { padding: 0 45px 18px 0; border-bottom: 1px dashed var(--line); }
.receipt-head h2 { margin: 7px 0 3px; font: 650 31px/1 "Fredoka Pelangi", sans-serif; }
.receipt-head p { margin: 0; color: var(--muted); }
.receipt-items { display: grid; padding: 12px 0; gap: 4px; border-bottom: 1px dashed var(--line); }
.receipt-item { display: grid; padding: 10px 0; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
.receipt-item strong { display: block; }
.receipt-item small { color: var(--muted); }
.receipt-item b { text-align: right; }
.receipt-totals { display: grid; padding: 14px 0; gap: 7px; }
.receipt-totals div { display: flex; justify-content: space-between; }
.receipt-totals .grand-total { padding-top: 10px; border-top: 2px solid var(--ink); font-size: 18px; font-weight: 900; }
.receipt-payments { padding: 14px; border-radius: 16px; background: var(--surface-soft); }
.receipt-payments strong { display: block; margin-bottom: 6px; }
.receipt-payments div { display: flex; padding: 4px 0; justify-content: space-between; }
.receipt-points { margin: 15px 0 0; color: #7a5700; font-weight: 900; text-align: center; }
.crop-stage { width: min(100%, 430px); aspect-ratio: 1; margin: 18px auto; overflow: hidden; border: 6px solid var(--surface-soft); border-radius: 50%; background: #dfe7ea; touch-action: none; }
.crop-stage canvas { width: 100%; height: 100%; cursor: grab; touch-action: none; }
.zoom-control { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 900; }
.zoom-control input { width: 100%; accent-color: var(--primary); }
.crop-actions { display: flex; margin-top: 20px; justify-content: end; gap: 9px; }
.crop-actions button { min-height: 44px; padding: 9px 16px; border: 0; border-radius: 13px; color: var(--ink); background: var(--surface-soft); font-weight: 900; }
.crop-actions button:last-child { color: #fff; background: var(--primary); }
.account-mobile-nav { display: none; }

@media (max-width: 920px) {
  .auth-shell { width: min(720px, calc(100% - 28px)); grid-template-columns: 1fr; }
  .auth-story { min-height: 300px; }
  .auth-story-copy { margin: 55px 0 20px; }
  .auth-benefits { grid-template-columns: repeat(3, 1fr); }
  .auth-benefits article { align-items: flex-start; flex-direction: column; }
  .account-desktop-nav { display: none; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .profile-layout { grid-template-columns: 230px minmax(0,1fr); }
}

@media (max-width: 680px) {
  .auth-page { background: var(--surface); }
  .auth-shell { width: 100%; min-height: 100svh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .auth-story { min-height: 245px; padding: 22px 20px; border-radius: 0 0 30px 30px; }
  .auth-story-copy { margin: 38px 0 0; }
  .auth-story h1 { margin: 10px 0 8px; font-size: 37px; }
  .auth-story-copy p { font-size: 14px; }
  .auth-benefits { display: none; }
  .auth-card { padding: 25px 20px calc(35px + env(safe-area-inset-bottom)); justify-content: start; }
  .auth-card-top { margin-bottom: 25px; }
  .auth-heading h2 { font-size: 35px; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-form-row { align-items: flex-start; }
  dialog.account-dialog,
  dialog.account-theme-dialog { width: 100%; max-width: none; max-height: calc(100svh - 14px); padding: 25px 20px calc(25px + env(safe-area-inset-bottom)); margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .account-header-shell { width: calc(100% - 28px); min-height: 68px; }
  .account-brand-mark { width: 39px; height: 39px; border-radius: 14px; }
  .account-brand strong { font-size: 18px; }
  .account-header .auth-theme { width: 40px; padding: 8px; font-size: 0; }
  .logout-button { width: 40px; padding: 8px; }
  .logout-button span { display: none; }
  .account-main { width: calc(100% - 24px); padding-top: 13px; padding-bottom: 100px; }
  .account-hero { min-height: 165px; padding: 22px 19px; grid-template-columns: 65px minmax(0,1fr); gap: 13px; border-radius: 23px; }
  .account-avatar { width: 65px; height: 65px; border-width: 4px; font-size: 26px; }
  .account-welcome h1 { font-size: 29px; }
  .account-welcome p { font-size: 12px; }
  .account-hero-badge { display: none; }
  .force-password { align-items: flex-start; flex-wrap: wrap; }
  .force-password div { min-width: calc(100% - 58px); }
  .force-password button { width: 100%; }
  .summary-grid { gap: 9px; }
  .summary-card { padding: 14px 12px; align-items: flex-start; flex-direction: column; gap: 8px; border-radius: 17px; }
  .summary-icon { width: 39px; height: 39px; border-radius: 13px; }
  .summary-card strong { font-size: 22px; }
  .account-feature-grid { grid-template-columns: 1fr; }
  .account-feature { min-height: 245px; padding: 25px 22px; border-radius: 21px; }
  .account-feature button { left: 22px; bottom: 24px; }
  .view-heading { align-items: flex-start; flex-direction: column; }
  .transaction-row { padding: 14px; grid-template-columns: 43px minmax(0,1fr); gap: 11px; }
  .list-badge { width: 43px; height: 43px; border-radius: 14px; }
  .transaction-value { grid-column: 2; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .transaction-value strong { font-size: 17px; }
  .loyalty-account-layout { grid-template-columns: 1fr; }
  .points-wallet { grid-row: auto; min-height: 230px; }
  .points-tabs { width: 100%; }
  .points-tabs button { flex: 1; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-photo-card { position: static; }
  .profile-form-head { align-items: flex-start; flex-direction: column; }
  .profile-form-head > small { text-align: left; }
  .profile-submit { width: 100%; justify-self: stretch; }
  .account-mobile-nav { position: fixed; z-index: 110; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; display: grid; padding: 7px; grid-template-columns: repeat(5, 1fr); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 19px; background: color-mix(in srgb, var(--footer) 94%, transparent); box-shadow: 0 18px 40px rgba(16,26,38,.32); backdrop-filter: blur(16px); }
  .account-mobile-nav button,
  .account-mobile-nav a { display: grid; min-height: 52px; padding: 5px; place-items: center; gap: 1px; border: 0; border-radius: 13px; color: rgba(255,255,255,.63); background: transparent; text-decoration: none; }
  .account-mobile-nav button span,
  .account-mobile-nav a span { font: 700 17px/1 "Fredoka Pelangi", sans-serif; }
  .account-mobile-nav button small,
  .account-mobile-nav a small { font-size: 10px; font-weight: 800; }
  .account-mobile-nav a { color: #fff; background: color-mix(in srgb, var(--primary) 45%, transparent); }
  .account-mobile-nav button.active { color: #fff; background: var(--primary); }
  .crop-dialog { min-height: min(690px, calc(100svh - 14px)); }
}

@media (max-width: 380px) {
  .auth-card { padding-inline: 15px; }
  .auth-story { padding-inline: 16px; }
  .auth-story h1 { font-size: 33px; }
  .account-main { width: calc(100% - 16px); }
  .summary-card p { display: none; }
}

@media (orientation: landscape) and (max-height: 520px) and (min-width: 681px) {
  .auth-shell {
    width: 100%;
    min-height: 100svh;
    margin: 0;
    grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr);
    border: 0;
    border-radius: 0;
  }
  .auth-story { min-height: 100svh; padding: 24px 30px; }
  .auth-story-copy { margin: auto 0; }
  .auth-story h1 { margin-block: 10px; font-size: clamp(34px, 5vw, 48px); }
  .auth-story-copy p { font-size: 13px; }
  .auth-benefits { display: none; }
  .auth-card { max-height: 100svh; padding: 24px 34px; overflow-y: auto; justify-content: start; }
  .auth-card-top { margin-bottom: 18px; }
  .auth-heading h2 { font-size: 32px; }
  .auth-tabs { margin: 17px 0; }
  .account-main { padding-top: 16px; }
  .account-hero { min-height: 145px; padding-block: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
