/* NEXARC — customer account page */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.acct { padding: 48px 0 80px; min-height: calc(100vh - 69px); }
.empty-state { padding: 28px 8px; text-align: center; color: var(--muted); }

/* auth */
.auth-card { max-width: 440px; margin: 20px auto; padding: 36px 32px; border-radius: 20px; text-align: center;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: var(--shadow); }
.auth-card img { margin: 0 auto 14px; }
.auth-card h1 { font-size: 28px; }
.auth-card form { text-align: left; }
.google-btn { width: 100%; background: #fff; color: #1f1f1f; margin-top: 18px; }
.google-btn svg { width: 20px; height: 20px; }
.google-btn:hover { box-shadow: 0 6px 24px -8px rgba(255,255,255,.4); }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wide { width: 100%; margin-top: 14px; }
.code-in { font-family: var(--head) !important; font-size: 26px !important; letter-spacing: .5em; text-align: center; }
.link-btn { background: none; border: 0; color: var(--cyan); font: 600 14px var(--body); margin-top: 12px; cursor: pointer; padding: 0; }
.auth-card .small { font-size: 12px; margin: 18px 0 0; }

/* logged in */
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.acct-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.acct-head p { margin: 4px 0 0; }
.acct-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 800px) { .acct-grid { grid-template-columns: 1fr; } }
.acct .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.acct-grid .panel { margin-bottom: 0; }
.acct .panel h2 { font-size: 20px; margin: 0 0 4px; }
.small-t { font-size: 14px; margin: 0 0 14px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.acct .field { margin-bottom: 14px; }
.saved { margin-left: 12px; color: var(--ok); font-weight: 600; font-size: 14px; }

.loyalty { background: radial-gradient(80% 120% at 0% 0%, rgba(0,229,255,.14), transparent), radial-gradient(80% 120% at 100% 100%, rgba(255,43,214,.16), transparent), var(--panel) !important; }
.loyalty .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.loyalty .big { font-family: var(--head); font-size: 56px; font-weight: 700; line-height: 1.1; margin: 6px 0 12px; }
.loyalty .big small { font-size: 20px; color: var(--muted); }
.bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.loyalty p { margin: 12px 0 0; }
.tiny { font-size: 12px; }

/* booking rows */
.b-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.b-row:last-child { border-bottom: 0; }
.b-when { font-family: var(--head); font-size: 17px; font-weight: 600; }
.b-meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.b-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-pending, .p-claimed { color: var(--warn); background: rgba(255,176,32,.1); }
.p-confirmed, .p-checked_in { color: #5aa8ff; background: rgba(90,168,255,.1); }
.p-completed, .p-verified { color: var(--ok); background: rgba(46,229,157,.1); }
.p-cancelled, .p-no_show, .p-not_received { color: var(--err); background: rgba(255,77,109,.1); }
.p-plain { color: var(--muted); background: rgba(255,255,255,.05); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sub-h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 560px) { .b-row { grid-template-columns: 1fr; } .b-side { align-items: flex-start; } .pills { justify-content: flex-start; } }

table.visits { width: 100%; border-collapse: collapse; font-size: 14px; }
table.visits th, table.visits td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.visits th { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
table.visits td.r, table.visits th.r { text-align: right; }
.visits-wrap { overflow-x: auto; }

/* receipt */
.receipt-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(4,4,8,.92); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.receipt { width: min(420px, 100%); background: #fff; color: #111; border-radius: 14px; padding: 28px; font: 14px/1.5 var(--body); }
.receipt .r-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px dashed #ddd; }
.receipt .r-head img { width: 44px; height: 44px; background: #07070d; border-radius: 10px; padding: 4px; }
.receipt .r-head b { font-family: var(--head); font-size: 18px; display: block; }
.receipt .r-head span { font-size: 12px; color: #666; }
.receipt h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #666; margin: 16px 0 8px; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.receipt dt { color: #666; }
.receipt dd { margin: 0; text-align: right; font-weight: 500; word-break: break-all; }
.receipt .r-total { display: flex; justify-content: space-between; font-family: var(--head); font-size: 22px; font-weight: 700; border-top: 2px dashed #ddd; margin-top: 14px; padding-top: 12px; }
.receipt .r-status { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.receipt .r-ok { background: #dcfce7; color: #166534; }
.receipt .r-wait { background: #fef3c7; color: #92400e; }
.receipt .r-foot { font-size: 11px; color: #888; margin-top: 16px; text-align: center; }
.receipt-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

@media print {
  body * { visibility: hidden !important; }
  .receipt, .receipt * { visibility: visible !important; }
  .receipt { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
  .receipt-wrap { background: #fff; }
}
