/* ==========================================================================
   Salsarita's local mock — account / rewards / gift card flows
   Brand: blue #090e9f, lime #82bc00, yellow #ffd015, magenta #e81e4f
   Loaded by views/account/_css.php (shared by the gift views too).
   ========================================================================== */

:root {
  --acct-blue: #090e9f;
  --acct-blue-2: #1a24c9;
  --acct-lime: #82bc00;
  --acct-yellow: #ffd015;
  --acct-pink: #e81e4f;
  --acct-ink: #15161d;
  --acct-muted: #6b6f80;
  --acct-line: #e7e8ef;
  --acct-radius: 1.25rem;
}

.mock-main.acct-main { max-width: 1080px; text-shadow: none; }
.acct-main .auth-perks li::before { content: none; display: none; }
.acct-narrow { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- page heading row ---------- */
.acct-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.acct-head .mock-h1 { margin-bottom: .35rem; }
.acct-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.acct-lead { color: var(--acct-muted); line-height: 1.6; margin: 0; max-width: 62ch; }
.acct-eyebrow { font-family: 'Heavitas', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--acct-lime); margin: 0 0 .4rem; }

/* ---------- form bits ---------- */
.acct-form .mock-field:last-of-type { margin-bottom: 1.1rem; }
.mock-input.is-invalid, .mock-select.is-invalid, .mock-textarea.is-invalid { border-color: var(--acct-pink); background: #fff7f9; }
.mock-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(232, 30, 79, .14); }
.field-error { color: #a10f31; font-size: .82rem; font-weight: 700; margin: .35rem 0 0; }
.field-hint { color: var(--acct-muted); font-size: .8rem; margin: .35rem 0 0; }
.req { color: var(--acct-pink); font-weight: 700; }

.acct-form-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin: .25rem 0 1.25rem; }
.acct-link { color: var(--acct-blue); font-weight: 700; font-size: .86rem; text-decoration: underline; }
.acct-link:hover { color: var(--acct-blue-2); }
.acct-alt { text-align: center; color: var(--acct-muted); font-size: .9rem; margin: 1.1rem 0 0; }
.acct-alt a { color: var(--acct-blue); font-weight: 800; }

/* checklist rows (site.css absolutely positions native checkboxes) */
.acct-check { display: flex; align-items: flex-start; gap: .6rem; margin: 0; font-weight: 500; cursor: pointer; }
.acct-check input[type="checkbox"] {
  position: static !important;
  flex: 0 0 auto;
  width: 1.15rem; height: 1.15rem;
  margin: .1rem 0 0;
  border-radius: .3rem;
  left: auto;
}
.acct-check > span { display: block; font-size: .88rem; line-height: 1.45; color: #333; font-weight: 500; }
.acct-check .req { display: inline; font-size: inherit; }
.acct-check span a { color: var(--acct-blue); font-weight: 700; text-decoration: underline; }

/* password reveal */
.pw-wrap { position: relative; }
.pw-wrap .mock-input { padding-right: 4.5rem; }
.pw-toggle {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  border: 0; background: #eef0ff; color: var(--acct-blue);
  font: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 9999px; padding: .3rem .7rem; cursor: pointer;
}
.pw-toggle:hover { background: #dde0ff; }

/* ---------- split auth layout ---------- */
.auth-wrap { display: grid; gap: 1.25rem; }
@media (min-width: 920px) { .auth-wrap { grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; } }

.auth-brand {
  position: relative; overflow: hidden;
  border-radius: 1.5rem; padding: 2.25rem 2rem;
  background: linear-gradient(150deg, #090e9f 0%, #10189f 52%, #1a24c9 100%);
  color: #fff; box-shadow: 0 20px 44px rgba(9, 14, 159, .24);
  margin-bottom: 1.25rem;
}
.auth-brand::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 188, 0, .55), transparent 62%);
}
.auth-brand::after {
  content: ""; position: absolute; left: -70px; bottom: -100px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 208, 21, .32), transparent 65%);
}
.auth-brand > * { position: relative; }
.auth-brand .mock-kicker { color: var(--acct-yellow); }
.auth-brand h2 {
  font-family: 'Heavitas', sans-serif; text-transform: uppercase;
  font-size: 1.85rem; line-height: 1.08; margin: 0 0 .8rem; color: #fff;
}
.auth-brand p { color: #dcdefb; margin: 0 0 1.25rem; line-height: 1.6; }
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.auth-perks li { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: #eef0ff; line-height: 1.45; }
.auth-perks .dot {
  flex: 0 0 auto; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--acct-lime); color: #fff; display: grid; place-items: center;
  font-size: .68rem; font-weight: 800; margin-top: .1rem;
}
.auth-points {
  margin-top: 1.5rem; padding: 1rem 1.1rem;
  border-radius: 1rem; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
}
.auth-points .big { font-family: 'Heavitas', sans-serif; font-size: 1.7rem; color: var(--acct-yellow); line-height: 1; }
.auth-points .small { font-size: .8rem; color: #dfe2ff; margin-top: .35rem; }

/* ---------- dashboard hero ---------- */
.dash-hero {
  position: relative; overflow: hidden;
  display: grid; gap: 1.5rem;
  border-radius: 1.5rem; padding: 1.85rem;
  background: linear-gradient(140deg, #090e9f 0%, #131ca5 55%, #1f2ad0 100%);
  color: #fff; box-shadow: 0 20px 44px rgba(9, 14, 159, .22);
  margin-bottom: 1.25rem;
}
.dash-hero::after {
  content: ""; position: absolute; right: -90px; bottom: -120px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 188, 0, .4), transparent 65%);
}
.dash-hero > * { position: relative; }
@media (min-width: 860px) { .dash-hero { grid-template-columns: 1.35fr .85fr; align-items: center; } }
.dash-hero .mock-kicker { color: var(--acct-yellow); }
.dash-points { font-family: 'Heavitas', sans-serif; font-size: 3.2rem; line-height: 1; color: #fff; margin: 0; }
.dash-points small { font-family: 'Heavitas', sans-serif; font-size: 1rem; color: var(--acct-yellow); margin-left: .4rem; }
.progress { height: .72rem; border-radius: 9999px; background: rgba(255, 255, 255, .22); overflow: hidden; margin: 1rem 0 .6rem; }
.progress > span { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--acct-lime), #b9e35a); }
.progress-meta { display: flex; justify-content: space-between; font-size: .82rem; color: #e3e5ff; gap: 1rem; }
.dash-side { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 1rem; padding: 1.1rem 1.2rem; }
.dash-side .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #dfe2ff; }
.dash-side .value { font-family: 'Heavitas', sans-serif; font-size: 1.35rem; color: #fff; margin: .2rem 0 .35rem; }
.dash-side a { color: var(--acct-yellow); font-weight: 800; font-size: .85rem; text-decoration: underline; }

/* ---------- generic cards / grids ---------- */
.acct-grid { display: grid; gap: 1.25rem; align-items: start; }
.acct-grid.stretch { align-items: stretch; }
@media (min-width: 820px) { .acct-grid.two { grid-template-columns: 1fr 1fr; } }
.acct-grid > .mock-card { margin-bottom: 0; }
.acct-section-title { font-family: 'Heavitas', sans-serif; color: var(--acct-blue); text-transform: uppercase; font-size: 1rem; letter-spacing: .04em; margin: 0 0 .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.acct-section-title a { font-family: 'Manrope', system-ui, sans-serif; font-size: .82rem; text-transform: none; letter-spacing: 0; color: var(--acct-blue); text-decoration: underline; }

.stat-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.stat { border: 1px solid var(--acct-line); border-radius: .9rem; padding: .8rem .9rem; background: #fcfcff; }
.stat .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--acct-muted); font-weight: 800; }
.stat .value { font-weight: 800; color: var(--acct-blue); font-size: 1.1rem; margin-top: .2rem; }

/* reward tiles */
.reward-tile { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed #ececf2; }
.reward-tile:last-child { border-bottom: 0; padding-bottom: 0; }
.reward-value {
  flex: 0 0 auto; width: 4.4rem; height: 3rem; border-radius: .8rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--acct-yellow), #ffb703);
  color: var(--acct-blue); font-family: 'Heavitas', sans-serif; font-size: 1.25rem;
}
.reward-body { flex: 1 1 auto; min-width: 0; }
.reward-body strong { display: block; color: var(--acct-ink); }
.reward-body span { color: var(--acct-muted); font-size: .84rem; }
.reward-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .06em; color: var(--acct-blue); background: #eef0ff; border-radius: .5rem; padding: .15rem .5rem; display: inline-block; }
.reward-used { opacity: .72; }
.reward-used .reward-value { background: #f0f0f4; color: #8a8d99; }

.code-panel {
  border: 2px dashed var(--acct-lime); background: #f4fbe6;
  border-radius: 1rem; padding: 1.1rem 1.25rem; text-align: center; margin-bottom: 1.25rem;
}
.code-panel .label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #4d6f00; font-weight: 800; }
.code-panel .code { font-family: 'Heavitas', sans-serif; font-size: 1.6rem; letter-spacing: .06em; color: #2f4a00; margin: .35rem 0 .25rem; word-break: break-all; }
.code-panel .hint { font-size: .82rem; color: #4d6f00; }

/* ---------- orders ---------- */
.order-card { border: 1px solid var(--acct-line); border-radius: 1rem; padding: 1.1rem 1.2rem; background: #fff; margin-bottom: 1rem; }
.order-card:last-child { margin-bottom: 0; }
.order-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.order-head .num { font-family: 'Heavitas', sans-serif; color: var(--acct-blue); font-size: .95rem; letter-spacing: .04em; }
.order-head .date { color: var(--acct-muted); font-size: .82rem; }
.order-items { margin: .85rem 0 0; }
.order-line { display: flex; gap: 1rem; justify-content: space-between; padding: .42rem 0; border-bottom: 1px dashed #f0f0f5; font-size: .92rem; }
.order-line:last-child { border-bottom: 0; }
.order-line .qty { color: var(--acct-muted); font-weight: 700; flex: 0 0 auto; }
.order-line .name { flex: 1 1 auto; }
.order-line .price { flex: 0 0 auto; font-weight: 700; color: var(--acct-ink); }
.order-foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--acct-line); }
.order-total { font-weight: 800; color: var(--acct-blue); font-size: 1.05rem; }
.order-mini { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px dashed #ececf2; }
.order-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.order-mini .num { font-weight: 800; color: var(--acct-blue); font-size: .88rem; }
.order-mini .date { color: var(--acct-muted); font-size: .8rem; }
.order-mini .total { margin-left: auto; font-weight: 800; }

/* ---------- gift cards ---------- */
.gift-hero {
  position: relative; overflow: hidden; border-radius: 1.5rem; padding: 2rem;
  background: linear-gradient(135deg, #090e9f 0%, #151ea6 58%, #2a34d6 100%);
  color: #fff; margin-bottom: 1.5rem; box-shadow: 0 18px 40px rgba(9, 14, 159, .2);
}
.gift-hero::after {
  content: ""; position: absolute; right: -80px; top: -90px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 208, 21, .35), transparent 64%);
}
.gift-hero > * { position: relative; }
.gift-hero h1 { font-family: 'Heavitas', sans-serif; text-transform: uppercase; font-size: 1.9rem; margin: 0 0 .5rem; color: #fff; }
.gift-hero p { color: #dfe2ff; margin: 0; max-width: 58ch; }
.gift-hero .mock-kicker { color: var(--acct-yellow); }

.amount-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-bottom: .35rem; }
.amount-tile { position: relative; display: block; cursor: pointer; margin: 0; }
.amount-tile input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.amount-body {
  display: block; text-align: center; border: 2px solid #e5e6ee; border-radius: .9rem;
  padding: .8rem .5rem; background: #fff; transition: border-color .15s, background .15s, transform .12s;
}
.amount-body strong { display: block; font-family: 'Heavitas', sans-serif; color: var(--acct-blue); font-size: 1.15rem; }
.amount-body small { display: block; color: var(--acct-muted); font-size: .72rem; margin-top: .15rem; }
.amount-tile:hover .amount-body { border-color: #c9ccef; transform: translateY(-1px); }
.amount-tile input:checked + .amount-body { border-color: var(--acct-blue); background: #eef0ff; box-shadow: 0 0 0 3px rgba(9, 14, 159, .1); }
.amount-tile input:focus-visible + .amount-body { outline: 2px solid var(--acct-blue); outline-offset: 2px; }

.giftcard-visual {
  position: relative; overflow: hidden; border-radius: 1.1rem; padding: 1.35rem 1.4rem;
  min-height: 168px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(140deg, #090e9f 0%, #202bc4 60%, #3a45e0 100%);
  color: #fff; box-shadow: 0 14px 30px rgba(9, 14, 159, .22);
}
.giftcard-visual::before {
  content: ""; position: absolute; left: -40px; bottom: -70px; width: 190px; height: 190px;
  border-radius: 50%; background: radial-gradient(circle, rgba(130, 188, 0, .5), transparent 62%);
}
.giftcard-visual > * { position: relative; }
.gc-brand { font-family: 'Heavitas', sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--acct-yellow); }
.gc-amount { font-family: 'Heavitas', sans-serif; font-size: 2.2rem; line-height: 1; margin: .5rem 0 0; }
.gc-meta { font-size: .8rem; color: #dfe2ff; margin-top: .5rem; }
.gc-meta b { color: #fff; }

.summary .gc-visual-wrap { margin-bottom: 1rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .35rem 0; color: #444; }
.summary-line strong { color: var(--acct-ink); }
.summary-total { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; margin-top: .5rem; border-top: 1px solid var(--acct-line); font-weight: 800; font-size: 1.08rem; color: var(--acct-blue); }

.secure-note { display: flex; gap: .5rem; align-items: center; color: var(--acct-muted); font-size: .8rem; margin: .9rem 0 0; }
.secure-note svg { flex: 0 0 auto; color: var(--acct-lime); }
.demo-hint { background: #eef0ff; border: 1px dashed #c9cef7; border-radius: .8rem; padding: .7rem .9rem; font-size: .82rem; color: #1b238f; margin-bottom: 1rem; }
.demo-hint b { color: var(--acct-blue); }

/* transaction table */
.tx-table { width: 100%; border-collapse: collapse; margin-top: .75rem; }
.tx-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--acct-muted); padding: .45rem .5rem; border-bottom: 2px solid var(--acct-line); }
.tx-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--acct-line); font-size: .9rem; vertical-align: top; }
.tx-table td.amount { text-align: right; font-weight: 800; white-space: nowrap; }
.tx-table td.amount.neg { color: var(--acct-pink); }
.tx-table tr:last-child td { border-bottom: 0; }
.balance-hero { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.balance-figure { font-family: 'Heavitas', sans-serif; font-size: 2.6rem; line-height: 1; color: var(--acct-lime); }
.balance-figure small { font-size: .8rem; letter-spacing: .08em; color: var(--acct-muted); display: block; font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; margin-bottom: .35rem; }
.gift-card-chip { display: inline-flex; align-items: center; gap: .5rem; background: #eef0ff; border-radius: 9999px; padding: .3rem .85rem; font-weight: 800; color: var(--acct-blue); font-size: .86rem; letter-spacing: .05em; }

/* confirmation */
.confirm-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.confirm-badge {
  width: 4rem; height: 4rem; border-radius: 50%; background: #eef9e0; color: #4d7a00;
  display: grid; place-items: center; margin: 0 auto 1rem; font-size: 2rem; font-weight: 800;
}
.confirm-code {
  font-family: 'Heavitas', sans-serif; font-size: 1.75rem; letter-spacing: .08em;
  color: var(--acct-blue); background: #f3f4ff; border: 2px dashed #c9cef7;
  border-radius: .9rem; padding: .9rem 1rem; margin: 1rem 0; word-break: break-all;
}
.confirm-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.25rem; }

/* footer utilities missing from the mirrored Tailwind build */
footer[class*="bg-[#090e9f]"] { background-color: #090e9f; color: #fff; }
footer [class*="bg-[#ffd015]"] { background-color: #ffd015; color: #090e9f; }
footer [class*="bg-[#ffd015]"] * { color: #090e9f; }
footer a { color: inherit; }
footer a[class*="bg-white"] { color: #090e9f; }

/* the mirrored Tailwind build is missing .md:flex, which keeps the header's
   "Sign In"/"My Account" entry hidden on desktop */
@media (min-width: 1024px) {
  header .hidden.md\:flex { display: flex; }
}
footer a[aria-label] {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem;
  border-radius: 9999px; background: #fff; color: #090e9f;
  font-weight: 800; font-size: .7rem; text-decoration: none; line-height: 1;
}

/* the mirrored site.css adds a ::before bullet and table column shading;
   neutralise both inside the account/gift pages */
.acct-main .mock-list li::before { content: none; display: none; }
.acct-main .tx-table td,
.acct-main .tx-table th { background: transparent; }

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .reward-tile { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; align-items: center; }
  .reward-value { width: 3.4rem; height: 2.6rem; font-size: 1.05rem; }
  .reward-body { min-width: 0; }
  .reward-tile form, .reward-tile > .mock-btn { grid-column: 2; justify-self: start; margin: 0; }
}

@media (max-width: 640px) {
  .auth-brand { padding: 1.75rem 1.4rem; }
  .auth-brand h2 { font-size: 1.5rem; }
  .dash-hero { padding: 1.4rem; }
  .dash-points { font-size: 2.5rem; }
  .gift-hero { padding: 1.5rem; }
  .gift-hero h1 { font-size: 1.45rem; }
  .acct-head { align-items: flex-start; }
  .balance-figure { font-size: 2.1rem; }
  .order-line { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .amount-body, .amount-tile:hover .amount-body { transition: none; transform: none; }
}
