/* THE BUBBLE WASH - Mi cuenta (login + account workspace).
   Loaded after apple-motion.css. Visual layer only: customer.js keeps owning
   state through [hidden], .active, .filled and data-auth-view. */
:root {
  --acc-ease: cubic-bezier(.16, 1, .3, 1);
  --acc-ink: #071d38;
  --acc-muted: #5d6f84;
  --acc-line: #e3e9f0;
  --acc-field: #f3f6fa;
  --acc-blue: #0879c9;
  --acc-cyan: #3ecdf7;
}

/* ---------- Signed out: aurora stage with floating bubbles ---------- */
body.tbw-gallery.profile-locked .profile-main { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 56px); padding: 0 !important; background: #041429; }
body.tbw-gallery.profile-locked .profile-main::before,
body.tbw-gallery.profile-locked .profile-main::after { content: ""; position: absolute; z-index: -2; border-radius: 50%; filter: blur(70px); pointer-events: none; }
body.tbw-gallery.profile-locked .profile-main::before { width: 62vmax; height: 62vmax; top: -24vmax; left: -18vmax; background: radial-gradient(circle, rgba(8, 121, 201, .55), transparent 65%); }
body.tbw-gallery.profile-locked .profile-main::after { width: 54vmax; height: 54vmax; right: -20vmax; bottom: -26vmax; background: radial-gradient(circle, rgba(62, 205, 247, .32), transparent 65%); }

.auth-bubbles { display: none; }
body.tbw-gallery.profile-locked .auth-bubbles { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
body.tbw-gallery.profile-locked .auth-bubbles span { position: absolute; bottom: -140px; width: var(--size, 60px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0 6%, rgba(160, 225, 255, .35) 14%, rgba(62, 205, 247, .12) 42%, rgba(8, 121, 201, .08) 62%, transparent 72%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset -6px -10px 22px rgba(62, 205, 247, .18); opacity: .8; }
.auth-bubbles span:nth-child(1) { --size: 92px; left: 6%; --dur: 19s; --delay: -4s; }
.auth-bubbles span:nth-child(2) { --size: 46px; left: 18%; --dur: 14s; --delay: -9s; }
.auth-bubbles span:nth-child(3) { --size: 130px; left: 31%; --dur: 24s; --delay: -14s; }
.auth-bubbles span:nth-child(4) { --size: 34px; left: 44%; --dur: 12s; --delay: -2s; }
.auth-bubbles span:nth-child(5) { --size: 70px; left: 57%; --dur: 17s; --delay: -11s; }
.auth-bubbles span:nth-child(6) { --size: 24px; left: 66%; --dur: 11s; --delay: -6s; }
.auth-bubbles span:nth-child(7) { --size: 108px; left: 76%; --dur: 22s; --delay: -17s; }
.auth-bubbles span:nth-child(8) { --size: 52px; left: 88%; --dur: 15s; --delay: -1s; }
.auth-bubbles span:nth-child(9) { --size: 38px; left: 95%; --dur: 13s; --delay: -8s; }

body.tbw-gallery.profile-locked .profile-grid.section { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 440px) !important; gap: clamp(40px, 7vw, 110px) !important; align-items: center; width: min(1120px, calc(100% - 48px)) !important; max-width: 1120px !important; min-height: calc(100svh - 56px); margin: 0 auto; padding: 64px 0 !important; }

/* Showcase copy (desktop). */
body.tbw-gallery .auth-showcase { grid-column: 1; grid-row: 1; color: #fff; }
body.tbw-gallery .auth-showcase-eyebrow { margin: 0 0 18px; color: var(--acc-cyan); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
body.tbw-gallery .auth-showcase h2 { margin: 0; color: #fff; font-size: clamp(42px, 4.6vw, 64px); font-weight: 600; line-height: 1.02; letter-spacing: -.055em; }
body.tbw-gallery .auth-showcase ul { display: grid; gap: 22px; margin: 44px 0 0; padding: 0; list-style: none; }
body.tbw-gallery .auth-showcase li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; }
body.tbw-gallery .auth-showcase li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--acc-cyan); font-size: 18px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
body.tbw-gallery .auth-showcase strong { display: block; color: #fff; font-size: 16px; font-weight: 600; }
body.tbw-gallery .auth-showcase li p { margin: 3px 0 0; color: #a9bdd2; font-size: 14px; line-height: 1.45; }

/* The card. */
body.tbw-gallery.profile-locked .profile-main .auth-card[data-auth-guest] { grid-column: 2 !important; grid-row: 1; display: block; min-height: 0 !important; width: 100%; margin: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .6) !important; border-radius: 28px !important; background: rgba(255, 255, 255, .97) !important; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .04) !important; overflow: hidden; }
body.tbw-gallery.profile-locked .profile-main .auth-card[data-auth-guest] .auth-form-panel { display: block; min-height: 0; padding: 36px 36px 30px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body.tbw-gallery .profile-main .auth-lockup { display: inline-flex; padding: 9px 14px; border-radius: 12px; background: var(--acc-ink); }
body.tbw-gallery .profile-main .auth-lockup img { width: 62px; height: auto; }
body.tbw-gallery .profile-main .auth-form-head { margin: 24px 0 22px; }
body.tbw-gallery .profile-main .auth-form-brand { display: block; margin-bottom: 8px; color: var(--acc-blue); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
body.tbw-gallery .profile-main .auth-form-head h1 { margin: 0; color: var(--acc-ink); font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
body.tbw-gallery .profile-main .auth-form-head p { margin: 10px 0 0; color: var(--acc-muted); font-size: 15px; line-height: 1.5; }

/* Segmented control with a sliding pill. */
body.tbw-gallery .profile-main .auth-mode-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 22px; padding: 4px; border: 0; border-radius: 14px; background: #edf1f6; }
body.tbw-gallery .profile-main .auth-mode-tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(7, 29, 56, .08), 0 6px 16px -6px rgba(7, 29, 56, .18); transition: transform .5s var(--acc-ease); }
body.tbw-gallery .profile-main .auth-card[data-auth-view="signup"] .auth-mode-tabs::before { transform: translateX(100%); }
body.tbw-gallery .profile-main .auth-mode-tabs button { position: relative; z-index: 1; min-height: 40px; border: 0 !important; border-radius: 10px; background: transparent !important; box-shadow: none !important; color: var(--acc-muted); font-size: 14px; font-weight: 600; transition: color .3s ease; }
body.tbw-gallery .profile-main .auth-mode-tabs button.active { color: var(--acc-ink); }

/* ---------- Fields (login and account) ---------- */
body.tbw-gallery .profile-main .profile-form-group { gap: 7px; }
body.tbw-gallery .profile-main .profile-form-group > label,
body.tbw-gallery .profile-main .profile-form-group > :is(label) { color: var(--acc-muted); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.tbw-gallery .profile-main .profile-input { min-height: 50px; padding: 13px 16px; border: 1px solid transparent !important; border-radius: 14px !important; background: var(--acc-field) !important; box-shadow: none !important; color: var(--acc-ink); font-size: 16px; transition: background-color .25s ease, border-color .25s ease, box-shadow .35s var(--acc-ease); }
body.tbw-gallery .profile-main .profile-input::placeholder { color: #98a7b8; }
body.tbw-gallery .profile-main .profile-input:hover { background: #edf2f7 !important; }
body.tbw-gallery .profile-main .profile-input:focus,
body.tbw-gallery .profile-main .profile-input:focus-visible { outline: none; border-color: var(--acc-blue) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(8, 121, 201, .14) !important; }
body.tbw-gallery .profile-main .profile-textarea { min-height: 96px; }
body.tbw-gallery .profile-main .auth-fields { display: grid; gap: 16px; }
body.tbw-gallery .profile-main .password-field { position: relative; }
body.tbw-gallery .profile-main .password-field button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--acc-blue); font-size: 13px; font-weight: 600; }
body.tbw-gallery .profile-main .password-field button:hover { background: rgba(8, 121, 201, .08); }

/* Primary actions: deep blue with a light sweep on hover. */
body.tbw-gallery .profile-main .auth-actions { margin-top: 22px; }
body.tbw-gallery .profile-main :is(.auth-actions, .phone-code-step, .account-actions-row, .profile-save-bar, .profile-side-card .profile-actions) .button-primary { position: relative; overflow: hidden; min-height: 50px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #0d4f94 0%, #071d38 100%) !important; color: #fff !important; font-size: 16px; font-weight: 600; box-shadow: 0 12px 26px -14px rgba(7, 29, 56, .7); transition: transform .2s ease, box-shadow .3s ease; }
body.tbw-gallery .profile-main :is(.auth-actions, .phone-code-step, .account-actions-row, .profile-save-bar, .profile-side-card .profile-actions) .button-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--acc-ease); }
@media (hover: hover) and (pointer: fine) {
  body.tbw-gallery .profile-main :is(.auth-actions, .phone-code-step, .account-actions-row, .profile-save-bar, .profile-side-card .profile-actions) .button-primary:hover { box-shadow: 0 18px 34px -14px rgba(7, 29, 56, .75); }
  body.tbw-gallery .profile-main :is(.auth-actions, .phone-code-step, .account-actions-row, .profile-save-bar, .profile-side-card .profile-actions) .button-primary:hover::after { transform: translateX(120%); }
}
body.tbw-gallery .profile-main :is(.auth-legal-note, .auth-privacy-note) { color: var(--acc-muted); font-size: 12.5px; line-height: 1.5; }
body.tbw-gallery .profile-main :is(.auth-legal-note, .auth-privacy-note) a { color: var(--acc-blue); }
body.tbw-gallery .profile-main .auth-privacy-note { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--acc-line); }
body.tbw-gallery .profile-main .auth-status:not(:empty) { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #eef6fd; color: var(--acc-ink); font-size: 14px; }
body.tbw-gallery .profile-main .auth-status[data-type="error"]:not(:empty) { background: #fdeff0; color: #a1232f; }
body.tbw-gallery .profile-main .auth-status[data-type="success"]:not(:empty) { background: #eaf8f1; color: #156b45; }

/* Email confirmation: replaces the form (the card switches to data-auth-verifying) until the link is opened. */
body.tbw-gallery .profile-main .email-verification-panel { display: grid; gap: 16px; padding: 4px 0 0; text-align: left; }
body.tbw-gallery .profile-main .email-verification-panel[hidden] { display: none; }
body.tbw-gallery .profile-main .auth-card[data-auth-verifying="true"] .auth-legal-note { display: none; }
body.tbw-gallery .profile-main .email-step-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e5f6fd; color: var(--acc-blue); }
body.tbw-gallery .profile-main .email-step-head h2 { margin: 0; color: var(--acc-ink); font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
body.tbw-gallery .profile-main .email-step-head p { margin: 8px 0 0; color: var(--acc-muted); font-size: 15px; line-height: 1.5; }
body.tbw-gallery .profile-main .email-step-head strong { color: var(--acc-ink); font-weight: 600; word-break: break-word; }
body.tbw-gallery .profile-main .email-step-actions { display: grid; gap: 10px; margin-top: 4px; }
body.tbw-gallery .profile-main .email-step-secondary { min-height: 48px; border: 1px solid var(--acc-line); border-radius: 9999px; background: #fff; color: var(--acc-ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
body.tbw-gallery .profile-main .email-step-secondary:disabled,
body.tbw-gallery .profile-main .email-step-actions .button-primary:disabled { opacity: .6; cursor: progress; }
body.tbw-gallery .profile-main .email-step-hint { margin: 0; color: var(--acc-muted); font-size: 12px; line-height: 1.5; }
body.tbw-gallery .profile-main .email-step-switch { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--acc-blue); font: inherit; font-size: 14px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  body.tbw-gallery .profile-main .email-step-secondary:hover:not(:disabled) { border-color: var(--acc-blue); background: #f6f9fc; }
  body.tbw-gallery .profile-main .email-step-switch:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* Phone verification and code digits. */
body.tbw-gallery .profile-main .phone-verification-panel { margin-top: 20px; padding: 20px; border-radius: 18px; background: #f6f9fc; box-shadow: inset 0 0 0 1px var(--acc-line); }
body.tbw-gallery .profile-main .phone-channel-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.tbw-gallery .profile-main .phone-channel { min-height: 44px; border: 1px solid var(--acc-line); border-radius: 12px; background: #fff; color: var(--acc-muted); font-weight: 600; transition: border-color .25s ease, color .25s ease, box-shadow .3s ease; }
body.tbw-gallery .profile-main .phone-channel.active { border-color: var(--acc-blue); color: var(--acc-ink); box-shadow: 0 0 0 3px rgba(8, 121, 201, .12); }
body.tbw-gallery .profile-main .otp-root { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
body.tbw-gallery .profile-main .otp-digit { aspect-ratio: 4 / 5; min-height: 0; border: 1px solid transparent; border-radius: 14px; background: var(--acc-field); font-size: 22px; font-weight: 600; color: var(--acc-ink); transition: border-color .2s ease, background-color .2s ease, box-shadow .3s var(--acc-ease); }
body.tbw-gallery .profile-main .otp-digit.active { border-color: var(--acc-blue); background: #fff; box-shadow: 0 0 0 4px rgba(8, 121, 201, .14); }
body.tbw-gallery .profile-main .otp-digit.filled { background: #fff; border-color: var(--acc-line); }

/* ---------- Signed in: account workspace ---------- */
body.tbw-gallery.customer-logged-in .profile-main { background: radial-gradient(90% 60% at 50% -10%, #e4f1fb 0%, #f5f7f9 55%) !important; }

/* Membership header. */
body.tbw-gallery.customer-logged-in .profile-account-overview { position: relative; overflow: hidden; isolation: isolate; padding: 36px 40px !important; border: 0 !important; border-radius: 28px !important; background: linear-gradient(135deg, #0d3b6e 0%, #071d38 55%, #041429 100%) !important; color: #fff !important; box-shadow: 0 30px 60px -36px rgba(7, 29, 56, .8) !important; }
body.tbw-gallery.customer-logged-in .profile-account-overview::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; top: -220px; right: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(62, 205, 247, .35), transparent 65%); filter: blur(10px); }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-shell { display: flex; align-items: center; gap: 18px; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-avatar { position: relative; display: grid; place-items: center; width: 68px !important; height: 68px !important; border-radius: 50%; background: #0b2c55 !important; color: #fff !important; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-avatar::before { content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 50%; background: conic-gradient(from var(--ring-angle, 0deg), #3ecdf7, #0879c9, #7fd8ff, #3ecdf7); }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-avatar::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 50%; background: #0b2c55; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-main { display: grid; gap: 3px; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-main span { justify-self: start; padding: 4px 10px; border-radius: 999px; background: rgba(62, 205, 247, .14); color: #7fd8ff; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-main strong { color: #fff; font-size: clamp(24px, 2.6vw, 32px) !important; font-weight: 600; letter-spacing: -.035em; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-main small { color: #a9bdd2; font-size: 14px; }
body.tbw-gallery.customer-logged-in .profile-account-overview .profile-completion { border-top-color: rgba(255, 255, 255, .12) !important; color: #c8d7e6; }
body.tbw-gallery.customer-logged-in .profile-account-overview .profile-completion > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
body.tbw-gallery.customer-logged-in .profile-account-overview .profile-completion span { color: #c8d7e6; }
body.tbw-gallery.customer-logged-in .profile-account-overview .profile-completion strong { color: #fff; font-size: 20px; }
body.tbw-gallery.customer-logged-in .profile-account-overview .profile-completion-track { height: 8px; margin: 12px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
body.tbw-gallery.customer-logged-in .profile-account-overview .profile-completion-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0879c9, #3ecdf7); box-shadow: 0 0 16px rgba(62, 205, 247, .7); transition: width 1.2s var(--acc-ease); }
body.tbw-gallery.customer-logged-in .profile-account-overview .profile-completion p { margin: 0; color: #a9bdd2; font-size: 13px; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-metrics-grid { gap: 10px; border-top: 0 !important; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-metrics-grid div,
body.tbw-gallery.customer-logged-in .profile-account-overview .account-metrics-grid div:first-child { padding: 16px 18px !important; border: 0 !important; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-metrics-grid span { color: #8fa7bf; font-size: 12px; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-metrics-grid strong { color: #fff; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-actions-row .button { min-height: 44px; border-radius: 999px; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-actions-row .button-primary { background: #fff !important; color: var(--acc-ink) !important; box-shadow: none; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-actions-row .button-primary::after { display: none; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-actions-row .button-ghost-danger { border: 1px solid rgba(255, 255, 255, .25) !important; background: transparent !important; color: #fff !important; }
body.tbw-gallery.customer-logged-in .profile-account-overview .account-actions-row .button-ghost-danger:hover { border-color: #ff8a93 !important; color: #ffb3b9 !important; }

/* Section nav: glass pills with an active marker (scroll spy in apple-motion.js). */
body.tbw-gallery.customer-logged-in .profile-local-nav { display: flex; gap: 6px !important; width: max-content; max-width: 100%; margin: 0 auto; padding: 6px !important; border: 0 !important; border-radius: 999px; background: rgba(255, 255, 255, .92) !important; -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 10px 30px -18px rgba(7, 29, 56, .35), inset 0 0 0 1px rgba(7, 29, 56, .06); }
body.tbw-gallery.customer-logged-in .profile-local-nav a { padding: 9px 16px; border-radius: 999px; color: var(--acc-muted) !important; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .3s ease, color .3s ease; }
body.tbw-gallery.customer-logged-in .profile-local-nav a:hover { color: var(--acc-ink) !important; }
body.tbw-gallery.customer-logged-in .profile-local-nav a.is-current { background: var(--acc-ink); color: #fff !important; }

/* Cards. */
body.tbw-gallery.customer-logged-in .profile-content-grid { perspective: 1600px; }
body.tbw-gallery.customer-logged-in :is(.profile-details-card, .profile-side-card) { border: 0 !important; border-radius: 24px !important; background: #fff !important; box-shadow: 0 1px 2px rgba(7, 29, 56, .04), 0 20px 40px -32px rgba(7, 29, 56, .35) !important; }
body.tbw-gallery.customer-logged-in .profile-card-head > span { color: var(--acc-blue); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
body.tbw-gallery.customer-logged-in .profile-card-head h2 { color: var(--acc-ink); font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
body.tbw-gallery.customer-logged-in .profile-fieldset { counter-increment: acc-step; margin: 0; padding: 26px 0 4px; border: 0; border-top: 1px solid var(--acc-line); }
body.tbw-gallery.customer-logged-in .profile-details-card { counter-reset: acc-step; }
body.tbw-gallery.customer-logged-in .profile-fieldset legend { display: flex; align-items: center; gap: 10px; padding: 0 0 14px; color: var(--acc-ink); font-size: 17px; font-weight: 600; }
body.tbw-gallery.customer-logged-in .profile-fieldset legend::before { content: counter(acc-step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e8f3fc; color: var(--acc-blue); font-size: 13px; }

/* Preference chips: a check pops in when selected. */
body.tbw-gallery.customer-logged-in .pref-chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
body.tbw-gallery.customer-logged-in .pref-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--acc-line) !important; border-radius: 999px !important; background: #fff !important; color: var(--acc-ink) !important; font-size: 14px; font-weight: 500; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease; }
body.tbw-gallery.customer-logged-in .pref-chip::before { content: "✓"; display: inline-grid; place-items: center; width: 0; overflow: hidden; font-size: 12px; opacity: 0; transform: scale(.4); transition: width .35s var(--acc-ease), opacity .25s ease, transform .35s var(--acc-ease); }
body.tbw-gallery.customer-logged-in .pref-chip.active { border-color: transparent !important; background: linear-gradient(135deg, #0d4f94, #071d38) !important; color: #fff !important; }
body.tbw-gallery.customer-logged-in .pref-chip.active::before { width: 14px; opacity: 1; transform: scale(1); }
body.tbw-gallery.customer-logged-in .pref-chip:active { transform: scale(.96); }

/* Floating save bar. */
body.tbw-gallery.customer-logged-in .profile-save-bar { position: sticky; bottom: 16px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 24px -14px -14px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 16px 40px -20px rgba(7, 29, 56, .45), inset 0 0 0 1px rgba(7, 29, 56, .06); }
body.tbw-gallery.customer-logged-in .profile-save-bar .profile-save-status { margin-right: auto; color: var(--acc-muted); font-size: 13px; }
body.tbw-gallery.customer-logged-in .profile-save-bar .button { min-height: 44px; border-radius: 12px; }

/* Bubble Rewards: a wallet card that tilts toward the pointer. */
body.tbw-gallery.customer-logged-in .profile-rewards-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px !important; background: linear-gradient(145deg, #1a64ad 0%, #0b3a72 38%, #071d38 78%) !important; box-shadow: 0 34px 60px -30px rgba(7, 29, 56, .85), inset 0 1px 0 rgba(255, 255, 255, .18) !important; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--acc-ease), box-shadow .6s var(--acc-ease); }
body.tbw-gallery.customer-logged-in .profile-rewards-card.am-tilting { transition-duration: .12s, .6s; }
body.tbw-gallery.customer-logged-in .profile-rewards-card::before { content: ""; position: absolute; z-index: -1; width: 260px !important; height: 260px !important; top: -120px !important; right: -90px !important; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .45) 0 4%, rgba(62, 205, 247, .3) 16%, rgba(62, 205, 247, .06) 55%, transparent 70%) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
body.tbw-gallery.customer-logged-in .profile-rewards-card::after { content: ""; position: absolute; z-index: -1; width: 120px; height: 120px; bottom: -40px; left: -30px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .35) 0 4%, rgba(62, 205, 247, .2) 18%, transparent 68%); }
body.tbw-gallery .rewards-card-shine { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 80%) var(--my, 0%), rgba(255, 255, 255, .18), transparent 45%); }
body.tbw-gallery.customer-logged-in .profile-rewards-card > :not(.rewards-card-shine) { position: relative; z-index: 1; }
body.tbw-gallery.customer-logged-in .rewards-card-kicker { color: #7fd8ff; }
body.tbw-gallery.customer-logged-in .rewards-card-balance strong { color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.04em; text-shadow: 0 0 30px rgba(62, 205, 247, .35); }

/* Orders and security. */
body.tbw-gallery.customer-logged-in .profile-empty-order { padding: 22px; border-radius: 18px; background: linear-gradient(180deg, #f3f8fd, #fff); box-shadow: inset 0 0 0 1px var(--acc-line); text-align: left; }
body.tbw-gallery.customer-logged-in .account-security-list > div { padding: 12px 0; border-bottom: 1px solid var(--acc-line); }
body.tbw-gallery.customer-logged-in .account-security-list > div:last-child { border-bottom: 0; }

/* ---------- Motion ---------- */
@property --ring-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  body.tbw-gallery.profile-locked .auth-bubbles span { animation: accBubble var(--dur, 16s) linear var(--delay, 0s) infinite; }
  body.tbw-gallery.profile-locked .profile-main::before { animation: accAurora 18s ease-in-out infinite alternate; }
  body.tbw-gallery.profile-locked .profile-main::after { animation: accAurora 22s ease-in-out -6s infinite alternate-reverse; }
  body.tbw-gallery.profile-locked .auth-showcase > * { animation: amRise 1.1s var(--acc-ease) both; }
  body.tbw-gallery.profile-locked .auth-showcase > h2 { animation-delay: 120ms; }
  body.tbw-gallery.profile-locked .auth-showcase > ul { animation-delay: 300ms; }
  body.tbw-gallery.profile-locked .profile-main .auth-card[data-auth-guest] { animation: accCardIn 1.2s var(--acc-ease) 150ms both; }
  body.tbw-gallery .profile-main .auth-form-head h1 { animation: none; }

  body.tbw-gallery.customer-logged-in .profile-account-overview .account-avatar::before { animation: accRing 6s linear infinite; }
  body.tbw-gallery.customer-logged-in :is(.profile-account-overview, .profile-local-nav, .profile-details-card, .profile-rewards-card, .profile-side-card):not([hidden]) { animation: amRise 1s var(--acc-ease) both; }
  body.tbw-gallery.customer-logged-in .profile-local-nav:not([hidden]) { animation-delay: 120ms; }
  body.tbw-gallery.customer-logged-in .profile-details-card:not([hidden]) { animation-delay: 220ms; }
  body.tbw-gallery.customer-logged-in .profile-rewards-card:not([hidden]) { animation-name: accCardIn; animation-delay: 320ms; }
  body.tbw-gallery.customer-logged-in .profile-side-card:not([hidden]) { animation-delay: 420ms; }
  body.tbw-gallery .profile-main .otp-digit.filled span { animation: accPop .35s var(--acc-ease); }
}
@keyframes accBubble {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .8; }
  50% { transform: translate3d(28px, -55vh, 0); }
  90% { opacity: .7; }
  100% { transform: translate3d(-12px, -115vh, 0); opacity: 0; }
}
@keyframes accAurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.15); } }
@keyframes accCardIn { from { opacity: 0; transform: perspective(1400px) translateY(40px) rotateX(14deg) scale(.96); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes accRing { to { --ring-angle: 360deg; } }
@keyframes accPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  body.tbw-gallery.profile-locked .profile-grid.section { grid-template-columns: 1fr !important; width: min(480px, calc(100% - 32px)) !important; gap: 28px !important; padding: 40px 0 56px !important; align-content: start; }
  body.tbw-gallery.profile-locked .profile-main .auth-card[data-auth-guest] { grid-column: 1 !important; grid-row: 2; }
  body.tbw-gallery .auth-showcase ul { display: none; }
  body.tbw-gallery .auth-showcase { text-align: center; }
  body.tbw-gallery .auth-showcase h2 { font-size: 34px; }
  body.tbw-gallery.profile-locked .profile-main .auth-card[data-auth-guest] .auth-form-panel { padding: 28px 22px 24px !important; }
}
@media (max-width: 833px) {
  body.tbw-gallery.customer-logged-in .profile-account-overview { padding: 26px 22px !important; border-radius: 22px !important; }
  body.tbw-gallery.customer-logged-in .profile-local-nav { width: 100%; justify-content: flex-start; overflow-x: auto; }
  body.tbw-gallery.customer-logged-in .profile-save-bar { margin-inline: -8px; }
}
