/* =====================================================
   Hz-Sparkle — Vanilla CSS (converted from Tailwind)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ───────────────────────────────── */
:root {
  --radius: 1rem;

  --cream: oklch(0.985 0.008 80);
  --beige: oklch(0.945 0.02 78);
  --caramel: oklch(0.72 0.09 70);
  --caramel-dark: oklch(0.58 0.09 60);
  --gold: oklch(0.78 0.12 80);
  --espresso: oklch(0.24 0.02 50);

  --background: var(--cream);
  --foreground: var(--espresso);
  --card: oklch(1 0 0);
  --card-fg: var(--espresso);
  --border: oklch(0.24 0.02 50 / 0.08);
  --input: oklch(0.24 0.02 50 / 0.12);
  --muted: var(--beige);
  --muted-fg: oklch(0.5 0.02 60);
  --destructive: oklch(0.55 0.18 25);

  --shadow-luxe: 0 30px 60px -30px oklch(0.35 0.05 60 / 0.35), 0 12px 24px -12px oklch(0.3 0.04 60 / 0.15);
  --shadow-soft: 0 2px 8px -2px oklch(0.3 0.04 60 / 0.06), 0 12px 32px -12px oklch(0.3 0.04 60 / 0.08);

  --font-serif: 'Baskervville', ui-serif, Georgia, serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;

  --sidebar-w: 288px;
  --mobile-nav-h: 80px;
}

/* ── Reset ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

/* ── Keyframes ───────────────────────────────────── */
@keyframes counter-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stamp-in {
  0% {
    transform: scale(0.4) rotate(-12deg);
    opacity: 0;
  }

  60% {
    transform: scale(1.15) rotate(4deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ── Utility Classes ─────────────────────────────── */
.animate-counter-in {
  animation: counter-in 0.6s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.animate-stamp-in {
  animation: stamp-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.animate-fade-up {
  animation: fade-up 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hover-lift {
  transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 400ms;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-luxe);
}

.membership-gradient {
  background: linear-gradient(135deg, oklch(0.82 0.12 82) 0%, oklch(0.72 0.09 70) 45%, oklch(0.5 0.08 55) 100%);
}

.silk-texture {
  position: relative;
}

.silk-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, oklch(1 0 0 / 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, oklch(0 0 0 / 0.12) 0%, transparent 50%);
}

.skeleton-shimmer {
  background: linear-gradient(90deg, var(--beige) 0%, oklch(0.97 0.01 80) 50%, var(--beige) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

/* ── App Shell Layout ─────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--cream);
  color: var(--espresso);
}

/* Sidebar */
.sidebar {
  display: none;
  position: sticky;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  flex-shrink: 0;
  flex-direction: column;
  border-right: 1px solid oklch(0.24 0.02 50 / 0.05);
  background-color: oklch(0.985 0.008 80 / 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
  .sidebar {
    display: flex;
  }
}

.sidebar-brand {
  padding: 2rem;
}

.sidebar-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sidebar-brand .brand-sub {
  margin-top: 0.25rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--caramel);
}

.sidebar-nav {
  flex: 1;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.6);
  transition: background-color 0.15s, color 0.15s;
  cursor: pointer;
}

.nav-item:hover {
  background-color: oklch(0.945 0.02 78 / 0.5);
  color: var(--espresso);
}

.nav-item.active {
  background-color: var(--beige);
  font-weight: 500;
  color: var(--caramel);
}

.nav-item .nav-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--caramel);
  display: none;
}

.nav-item.active .nav-dot {
  display: block;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-footer {
  border-top: 1px solid oklch(0.24 0.02 50 / 0.05);
  padding: 1.5rem;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.6);
  transition: color 0.15s;
  cursor: pointer;
  width: 100%;
}

.sidebar-logout:hover {
  color: var(--espresso);
}

.sidebar-logout svg {
  width: 16px;
  height: 16px;
}

.sidebar-user {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: oklch(0.945 0.02 78 / 0.6);
}

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background-color: oklch(0.72 0.09 70 / 0.2);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  color: var(--caramel);
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-tier {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.24 0.02 50 / 0.4);
}

/* Main content */
.app-main {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  padding-bottom: var(--mobile-nav-h);
  animation: fade-up 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@media (min-width: 1024px) {
  .app-main {
    padding-bottom: 0;
  }
}

/* Mobile bottom nav */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  height: var(--mobile-nav-h);
  align-items: stretch;
  border-top: 1px solid oklch(0.24 0.02 50 / 0.05);
  background-color: oklch(0.985 0.008 80 / 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.24 0.02 50 / 0.4);
  transition: color 0.15s;
  cursor: pointer;
}

.mobile-nav-item.active {
  color: var(--caramel);
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-item .nav-bar {
  height: 2px;
  width: 24px;
  border-radius: 9999px;
  background-color: transparent;
  transition: background-color 0.15s;
  margin-top: 4px;
}

.mobile-nav-item.active .nav-bar {
  background-color: var(--caramel);
}

/* ── Page Layout Helpers ─────────────────────────── */
.page-container {
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.25rem;
}

@media (min-width: 640px) {
  .page-container {
    padding: 3rem 2rem;
  }
}

.page-container.narrow {
  max-width: 768px;
}

.page-container.medium {
  max-width: 896px;
}

.page-container.wide {
  max-width: 1024px;
}

.page-container.full {
  max-width: 1152px;
}

/* Page Header */
.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.page-header-text {
  min-width: 0;
}

.page-header-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--caramel);
  margin-bottom: 0.25rem;
}

.page-header-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--espresso);
}

@media (min-width: 640px) {
  .page-header-title {
    font-size: 2.25rem;
  }
}

.page-header-subtitle {
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.5);
  margin-top: 0.25rem;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--espresso);
  color: var(--cream);
  padding: 0.625rem 1.5rem;
}

.btn-primary:hover {
  background-color: oklch(0.24 0.02 50 / 0.9);
}

.btn-caramel {
  background-color: var(--caramel);
  color: var(--espresso);
}

.btn-caramel:hover {
  background-color: var(--caramel-dark);
}

.btn-ghost {
  background-color: transparent;
  color: oklch(0.24 0.02 50 / 0.7);
  border: 1px solid oklch(0.24 0.02 50 / 0.15);
}

.btn-ghost:hover {
  background-color: var(--beige);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 10px;
  width: 100%;
}

/* ── Cards ───────────────────────────────────────── */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
}

/* ── Membership Card ─────────────────────────────── */
.membership-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 2rem;
  color: var(--cream);
  ring: 1px solid oklch(0 0 0 / 0.05);
  box-shadow: var(--shadow-luxe);
  transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 400ms;
}

.membership-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-luxe);
}

.membership-card-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  justify-content: space-between;
}

.membership-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.membership-card-tier-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0.75;
}

.membership-card-tier-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
}

.membership-card-qr {
  border-radius: 0.75rem;
  background-color: oklch(1 0 0 / 0.1);
  padding: 0.75rem;
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.2);
  backdrop-filter: blur(20px);
}

.membership-card-qr-inner {
  width: 64px;
  height: 64px;
  background-color: oklch(1 0 0 / 0.95);
  border-radius: 0.375rem;
  display: grid;
  place-items: center;
  color: var(--espresso);
}

.membership-card-qr-inner svg {
  width: 48px;
  height: 48px;
}

.membership-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.membership-card-name {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.membership-card-id {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.membership-card-hzp-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0.7;
  text-align: right;
}

.membership-card-hzp-value {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  text-align: right;
}

.membership-card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-color: oklch(0 0 0 / 0.15);
}

.membership-card-progress-fill {
  height: 100%;
  background-color: white;
  transition: width 1s ease;
}

/* ── Dashboard Layout ─────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
  }

  .col-8 {
    grid-column: span 8;
  }

  .col-4 {
    grid-column: span 4;
  }

  .col-7 {
    grid-column: span 7;
  }

  .col-5 {
    grid-column: span 5;
  }

  .col-12 {
    grid-column: span 12;
  }
}

/* Dashboard Header */
.dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.dashboard-header-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--caramel);
}

.dashboard-header-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.2;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .dashboard-header-title {
    font-size: 2.25rem;
  }
}

.dashboard-header-sub {
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.5);
  margin-top: 0.25rem;
}

.dashboard-book-btn {
  display: none;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--espresso);
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.dashboard-book-btn:hover {
  background-color: oklch(0.24 0.02 50 / 0.9);
}

@media (min-width: 640px) {
  .dashboard-book-btn {
    display: inline-flex;
  }
}

/* Progress bar below membership card */
.membership-progress-bar-wrapper {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
}

.membership-progress-text {
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.6);
}

.membership-progress-pct {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--caramel);
}

/* Loyalty Stamps */
.stamps-card {
  background-color: var(--beige);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.05);
}

.stamps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stamps-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
}

.stamps-badge {
  border-radius: 9999px;
  background-color: oklch(0.72 0.09 70 / 0.15);
  padding: 0.25rem 0.625rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--caramel-dark);
}

.stamps-desc {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: oklch(0.24 0.02 50 / 0.55);
  max-width: 36ch;
}

.stamps-row {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.stamp {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  transition: all 0.3s;
}

.stamp.filled {
  border: 1px solid oklch(0.72 0.09 70 / 0.4);
  background-color: oklch(0.72 0.09 70 / 0.15);
  color: var(--caramel);
  box-shadow: inset 0 2px 4px oklch(0 0 0 / 0.06);
}

.stamp.empty {
  border: 2px dashed oklch(0.24 0.02 50 / 0.15);
}

.stamp.filled svg {
  width: 24px;
  height: 24px;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid oklch(0.24 0.02 50 / 0.05);
  background-color: var(--card);
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.quick-action:hover {
  border-color: oklch(0.72 0.09 70 / 0.4);
  transform: translateY(-2px);
}

.quick-action svg {
  width: 20px;
  height: 20px;
  color: var(--caramel);
}

.quick-action span {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--espresso);
}

/* Section header */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.section-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--caramel);
  cursor: pointer;
}

.section-link svg {
  width: 12px;
  height: 12px;
}

/* Activity List */
.activity-list {
  overflow: hidden;
  border-radius: 1rem;
  background-color: oklch(1 0 0 / 0.6);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.05);
}

.activity-list-inner {}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-top: 1px solid oklch(0 0 0 / 0.05);
  transition: background-color 0.15s;
}

.activity-item:first-child {
  border-top: none;
}

.activity-item:hover {
  background-color: oklch(0.945 0.02 78 / 0.4);
}

.activity-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.activity-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.activity-avatar.earned {
  background-color: var(--beige);
  color: var(--caramel);
}

.activity-avatar.redeemed {
  background-color: oklch(0.24 0.02 50 / 0.05);
  color: oklch(0.24 0.02 50 / 0.4);
}

.activity-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-meta {
  font-size: 0.75rem;
  color: oklch(0.24 0.02 50 / 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-right {
  flex-shrink: 0;
  text-align: right;
}

.activity-amount {
  font-size: 0.875rem;
  font-weight: 500;
}

.activity-amount.earned {
  color: var(--caramel);
}

.activity-amount.redeemed {
  color: oklch(0.24 0.02 50 / 0.6);
}

.activity-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.24 0.02 50 / 0.4);
  margin-top: 2px;
}

/* Upcoming Card */
.upcoming-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: var(--espresso);
  padding: 1.5rem;
  color: var(--cream);
  box-shadow: var(--shadow-luxe);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.05);
}

.upcoming-deco {
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 160px;
  height: 160px;
  border-radius: 9999px;
  border: 4px solid oklch(1 0 0 / 0.1);
}

.upcoming-inner {
  position: relative;
}

.upcoming-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.upcoming-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  opacity: 0.5;
}

.upcoming-date {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.upcoming-time {
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.upcoming-status {
  border-radius: 9999px;
  background-color: var(--caramel);
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--espresso);
  white-space: nowrap;
}

.upcoming-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.upcoming-service-label {
  font-size: 0.75rem;
  opacity: 0.5;
}

.upcoming-service {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 2px;
}

.upcoming-branch {
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.8;
}

.upcoming-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.upcoming-btn {
  flex: 1;
  border-radius: 0.5rem;
  padding: 0.625rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  font-family: inherit;
}

.upcoming-btn.ghost {
  background-color: oklch(1 0 0 / 0.1);
  color: var(--cream);
  border: 1px solid oklch(1 0 0 / 0.1);
}

.upcoming-btn.ghost:hover {
  background-color: oklch(1 0 0 / 0.2);
}

.upcoming-btn.text {
  background-color: transparent;
  color: oklch(1 0 0 / 0.5);
  border: none;
}

.upcoming-btn.text:hover {
  color: white;
}

/* Promotions Carousel */
.promos-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 0.5rem;
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.promos-scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .promos-scroll {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.promo-card {
  position: relative;
  flex-shrink: 0;
  min-width: 280px;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: var(--cream);
  transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 400ms;
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-luxe);
}

@media (min-width: 640px) {
  .promo-card {
    min-width: 300px;
  }
}

.promo-card svg.promo-icon {
  opacity: 0.7;
  margin-bottom: 2rem;
  width: 24px;
  height: 24px;
}

.promo-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

.promo-subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.promo-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.promo-footer span {
  opacity: 0.6;
}

.promo-footer svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.promo-card:hover .promo-footer svg {
  transform: translateX(4px);
}

/* Promo gradients */
.promo-grad-1 {
  background: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-dark) 100%);
}

.promo-grad-2 {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--caramel-dark) 100%);
}

.promo-grad-3 {
  background: linear-gradient(135deg, var(--gold) 0%, var(--caramel) 100%);
}

.promo-grad-4 {
  background: linear-gradient(135deg, var(--caramel-dark) 0%, var(--espresso) 100%);
}

/* Reward Card Grid */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .rewards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rewards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.reward-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid oklch(0.24 0.02 50 / 0.05);
  background-color: var(--card);
  transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 400ms;
}

.reward-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-luxe);
}

.reward-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.reward-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reward-card-tag {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 9999px;
  background-color: oklch(1 0 0 / 0.9);
  padding: 0.25rem 0.625rem;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--espresso);
}

.reward-card-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  color: oklch(1 0 0 / 0.6);
}

.reward-card-icon svg {
  width: 32px;
  height: 32px;
}

.reward-card-body {
  padding: 1rem;
}

.reward-card-name {
  font-family: var(--font-serif);
  font-size: 1rem;
}

.reward-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.reward-card-cost {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--caramel);
}

.reward-card-btn {
  border-radius: 9999px;
  background-color: var(--espresso);
  padding: 0.375rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.reward-card-btn:hover {
  background-color: var(--caramel-dark);
}

/* ── Auth Pages ──────────────────────────────────── */
.auth-grid {
  display: grid;
  min-height: 100vh;
  background-color: var(--cream);
}

@media (min-width: 1024px) {
  .auth-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-grid.register-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .auth-grid.register-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.auth-panel {
  display: none;
  overflow: hidden;
  padding: 3rem;
  position: relative;
}

@media (min-width: 1024px) {
  .auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.auth-panel.gradient {}

.auth-panel.espresso-bg {
  background-color: var(--espresso);
  color: var(--cream);
}

.auth-panel-brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.auth-panel-brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.auth-panel-brand-sub.caramel {
  color: var(--caramel);
  opacity: 1;
}

.auth-panel-quote {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-style: italic;
  line-height: 1.3;
  max-width: 28rem;
}

.auth-panel-desc {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 1.5rem;
}

.auth-panel-footnote {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0.6;
}

.auth-benefits {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: oklch(1 0 0 / 0.7);
}

.auth-benefit-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--caramel);
  flex-shrink: 0;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .auth-form-panel {
    padding: 3rem;
  }
}

.auth-form {
  width: 100%;
  max-width: 28rem;
  animation: fade-up 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.auth-form.wide {
  max-width: 32rem;
}

.auth-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--caramel);
}

.auth-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.2;
  margin-top: 0.5rem;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.5);
  margin-top: 0.5rem;
}

.auth-fields {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-fields-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .auth-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.auth-fields-grid .full {
  grid-column: 1 / -1;
}

.auth-footer-row {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: oklch(0.24 0.02 50 / 0.7);
}

.auth-remember input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--caramel);
}

.auth-forgot {
  font-weight: 500;
  color: var(--caramel);
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-submit {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border-radius: 9999px;
  background-color: var(--espresso);
  padding: 1rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cream);
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.auth-submit:hover {
  background-color: var(--caramel-dark);
}

.auth-submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.auth-submit:hover svg {
  transform: translateX(4px);
}

.auth-alt {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.6);
}

.auth-alt a {
  font-weight: 500;
  color: var(--caramel);
}

.auth-alt a:hover {
  text-decoration: underline;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.7);
  margin-top: 1rem;
  cursor: pointer;
}

.auth-terms input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--caramel);
  flex-shrink: 0;
}

.auth-terms a {
  font-weight: 500;
  color: var(--caramel);
}

/* Floating Input — Pure CSS, no JS class needed */
.floating-input-wrap {
  width: 100%;
}

.floating-input-inner {
  position: relative;
  border-radius: 1rem;
  border: 1px solid oklch(0.24 0.02 50 / 0.1);
  background-color: oklch(0.985 0.008 80 / 0.6);
  transition: border-color 0.2s;
}

.floating-input-inner:focus-within {
  border-color: var(--caramel);
}

.floating-input-inner.error {
  border-color: oklch(0.55 0.18 25 / 0.6);
}

.floating-input-inner input {
  width: 100%;
  border-radius: 1rem;
  background: transparent;
  padding: 1.5rem 1.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--espresso);
  outline: none;
  border: none;
}

.floating-input-inner input.has-trailing {
  padding-right: 3rem;
}

.floating-input-inner label {
  pointer-events: none;
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.5);
  transition: top 0.2s, font-size 0.2s, letter-spacing 0.2s, text-transform 0.2s, color 0.2s;
}

/* Float label when focused or has value (placeholder hidden = input has value) */
.floating-input-inner input:focus~label,
.floating-input-inner input:not(:placeholder-shown)~label {
  top: 0.375rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--caramel);
}

.floating-input-trailing {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: oklch(0.24 0.02 50 / 0.5);
  display: flex;
  align-items: center;
}

.floating-input-trailing button {
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  display: flex;
}

.floating-input-trailing button:hover {
  color: var(--caramel);
}

/* ── Auth field errors / hints / alerts ──────────── */
.field-error-text {
  min-height: 1rem;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--destructive);
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  color: oklch(0.24 0.02 50 / 0.45);
}

.auth-alert {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.auth-alert-error {
  background-color: oklch(0.55 0.18 25 / 0.1);
  color: var(--destructive);
}

.auth-alert-success {
  background-color: oklch(0.72 0.09 70 / 0.15);
  color: var(--caramel-dark);
}

/* ── Forgot Password ─────────────────────────────── */
.forgot-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--cream);
  padding: 1.5rem;
}

.forgot-inner {
  width: 100%;
  max-width: 28rem;
  animation: fade-up 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.forgot-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.24 0.02 50 / 0.6);
  transition: color 0.2s;
  margin-bottom: 2rem;
  cursor: pointer;
}

.forgot-back:hover {
  color: var(--caramel);
}

.forgot-back svg {
  width: 12px;
  height: 12px;
}

.forgot-card {
  background-color: var(--card);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-luxe);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.05);
}

.forgot-icon {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background-color: oklch(0.72 0.09 70 / 0.15);
  color: var(--caramel);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.forgot-icon svg {
  width: 24px;
  height: 24px;
}

.forgot-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  text-align: center;
}

.forgot-desc {
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.6);
  text-align: center;
  margin-top: 0.5rem;
}

.forgot-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.forgot-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background-color: oklch(0.72 0.09 70 / 0.15);
  color: var(--caramel);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
}

.forgot-success-icon svg {
  width: 28px;
  height: 28px;
}

.forgot-back-btn {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid oklch(0.24 0.02 50 / 0.15);
  padding: 0.75rem 1.5rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--espresso);
  cursor: pointer;
  margin-top: 1.5rem;
  background: none;
  font-family: inherit;
}

.forgot-back-btn:hover {
  background-color: var(--beige);
}

/* ── Appointments ─────────────────────────────────── */
.appt-upcoming {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: var(--espresso);
  padding: 2rem;
  color: var(--cream);
  box-shadow: var(--shadow-luxe);
}

.appt-deco {
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 224px;
  height: 224px;
  border-radius: 9999px;
  border: 6px solid oklch(1 0 0 / 0.1);
}

.appt-grid {
  display: grid;
  gap: 1.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .appt-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.appt-date {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  margin-top: 0.5rem;
}

.appt-time {
  font-family: var(--font-serif);
  font-size: 1.875rem;
}

.appt-confirmed {
  display: inline-block;
  margin-top: 1rem;
  border-radius: 9999px;
  background-color: var(--caramel);
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

.appt-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.appt-row-icon {
  margin-top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background-color: oklch(1 0 0 / 0.1);
  color: var(--caramel);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.appt-row-icon svg {
  width: 16px;
  height: 16px;
}

.appt-row-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.appt-row-value {
  font-weight: 500;
  margin-top: 2px;
}

.appt-actions {
  position: relative;
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
}

.appt-btn {
  flex: 1;
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  font-family: inherit;
}

.appt-btn.ghost-white {
  background-color: oklch(1 0 0 / 0.1);
  color: var(--cream);
  border: 1px solid oklch(1 0 0 / 0.1);
}

.appt-btn.ghost-white:hover {
  background-color: oklch(1 0 0 / 0.2);
}

.appt-btn.text-fade {
  background: transparent;
  color: oklch(1 0 0 / 0.5);
  border: none;
}

.appt-btn.text-fade:hover {
  color: white;
}

.appt-btn.caramel-btn {
  background-color: var(--caramel);
  color: var(--espresso);
  border: none;
}

.appt-btn.caramel-btn:hover {
  background-color: oklch(0.72 0.09 70 / 0.9);
}

.appt-empty {
  border-radius: 1.5rem;
  border: 1px dashed oklch(0.24 0.02 50 / 0.1);
  background-color: oklch(0.945 0.02 78 / 0.3);
  padding: 4rem;
  text-align: center;
}

.appt-empty-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.appt-empty-desc {
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.5);
  margin-top: 0.5rem;
}

/* ── History ──────────────────────────────────────── */
.table-card {
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--card);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.05);
}

.table-header {
  display: none;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid oklch(0.24 0.02 50 / 0.05);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.24 0.02 50 / 0.4);
}

@media (min-width: 768px) {
  .table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr 1fr 1fr;
    gap: 1rem;
  }

  .table-header span:last-child {
    text-align: right;
  }
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1.25rem;
  border-top: 1px solid oklch(0 0 0 / 0.05);
  font-size: 0.875rem;
  transition: background-color 0.15s;
}

.table-row:first-child {
  border-top: none;
}

.table-row:hover {
  background-color: oklch(0.945 0.02 78 / 0.4);
}

@media (min-width: 768px) {
  .table-row {
    grid-template-columns: 1fr 1fr 1fr 1.5fr 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
}

.table-row .col-treatment {
  grid-column: 1 / -1;
  font-weight: 500;
}

@media (min-width: 768px) {
  .table-row .col-treatment {
    grid-column: auto;
  }
}

.table-row .col-muted {
  color: oklch(0.24 0.02 50 / 0.6);
}

.table-row .col-hzp {
  text-align: right;
  font-weight: 500;
  color: var(--caramel);
}

@media (min-width: 768px) {
  .table-header.cols-4,
  .table-row.cols-4 {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .table-header.cols-5,
  .table-row.cols-5 {
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1fr;
  }
}

/* ── Stats Row (summary tiles above a table) ─────────── */
.stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-row .stat-card {
  flex: 1;
}

/* ── Pagination Bar ───────────────────────────────────── */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.pagination-bar .pagination-info {
  color: oklch(0.24 0.02 50 / 0.5);
}

.pagination-bar .pagination-btn {
  color: var(--caramel);
  font-weight: 500;
  text-decoration: none;
}

.pagination-bar .pagination-btn.disabled {
  color: oklch(0.24 0.02 50 / 0.3);
  pointer-events: none;
}

/* ── Rewards Page ─────────────────────────────────── */
.voucher-tabs {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid oklch(0.24 0.02 50 / 0.1);
  background-color: oklch(0.945 0.02 78 / 0.5);
  padding: 4px;
}

.voucher-tab {
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.24 0.02 50 / 0.5);
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.voucher-tab.active {
  background-color: var(--espresso);
  color: var(--cream);
}

.voucher-tab:hover:not(.active) {
  color: var(--espresso);
}

.voucher-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .voucher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .voucher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.voucher-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--card);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.05);
  display: flex;
  transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 400ms;
}

.voucher-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-luxe);
}

.voucher-qr {
  width: 96px;
  flex-shrink: 0;
  border-right: 1px dashed oklch(0.24 0.02 50 / 0.1);
  background-color: oklch(0.945 0.02 78 / 0.5);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.voucher-qr svg {
  width: 56px;
  height: 56px;
  color: oklch(0.24 0.02 50 / 0.7);
}

.voucher-body {
  flex: 1;
  padding: 1.25rem;
}

.voucher-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.3;
}

.voucher-expires {
  font-size: 0.75rem;
  color: oklch(0.24 0.02 50 / 0.5);
  margin-top: 0.25rem;
}

.voucher-code {
  font-size: 10px;
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.24 0.02 50 / 0.4);
  margin-top: 0.75rem;
}

.voucher-status {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.voucher-status.active {
  background-color: oklch(0.72 0.09 70 / 0.2);
  color: var(--caramel-dark);
}

.voucher-status.used {
  background-color: oklch(0.24 0.02 50 / 0.1);
  color: oklch(0.24 0.02 50 / 0.5);
}

.voucher-status.expired {
  background-color: oklch(0.55 0.18 25 / 0.1);
  color: var(--destructive);
}

.empty-state {
  border-radius: 1.5rem;
  border: 1px dashed oklch(0.24 0.02 50 / 0.1);
  background-color: oklch(0.945 0.02 78 / 0.3);
  padding: 4rem;
  text-align: center;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background-color: oklch(0.72 0.09 70 / 0.1);
  color: var(--caramel);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.empty-state-icon svg {
  width: 24px;
  height: 24px;
}

.empty-state-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.empty-state-desc {
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.5);
  margin-top: 0.5rem;
}

/* ── Notifications ────────────────────────────────── */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid oklch(0.24 0.02 50 / 0.05);
  padding: 1.25rem;
  background-color: oklch(0.985 0.008 80 / 0.6);
  transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 400ms;
}

.notif-item.unread {
  border-color: oklch(0.72 0.09 70 / 0.3);
  background-color: var(--card);
}

.notif-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-luxe);
}

.notif-icon {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background-color: oklch(0.72 0.09 70 / 0.1);
  color: var(--caramel);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.notif-icon svg {
  width: 20px;
  height: 20px;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.notif-title {
  font-weight: 500;
}

.notif-time {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.24 0.02 50 / 0.4);
  flex-shrink: 0;
}

.notif-text {
  font-size: 0.875rem;
  color: oklch(0.24 0.02 50 / 0.6);
  margin-top: 0.25rem;
}

.notif-dot {
  margin-top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--caramel);
  flex-shrink: 0;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── Profile ──────────────────────────────────────── */
.profile-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .profile-grid {
    grid-template-columns: 320px 1fr;
  }
}

.profile-card {
  overflow: hidden;
  border-radius: 1.5rem;
  background-color: var(--card);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.05);
  transition: transform 400ms cubic-bezier(0.19, 1, 0.22, 1), box-shadow 400ms;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-luxe);
}

.profile-card-banner {
  height: 112px;
  position: relative;
}

.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -56px;
  padding: 0 1.5rem 2rem;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 9999px;
  background-color: var(--beige);
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--caramel);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px var(--cream);
  z-index: 1;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-top: 1rem;
}

.profile-tier-badge {
  margin-top: 0.5rem;
  border-radius: 9999px;
  background-color: oklch(0.72 0.09 70 / 0.15);
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--caramel-dark);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid oklch(0.24 0.02 50 / 0.05);
  background-color: var(--card);
  padding: 1rem;
  transition: border-color 0.2s;
  cursor: pointer;
  width: 100%;
}

.action-row:hover {
  border-color: oklch(0.72 0.09 70 / 0.3);
}

.action-row:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.action-row:disabled:hover {
  border-color: oklch(0.24 0.02 50 / 0.05);
}

.action-row.destructive {
  color: var(--destructive);
}

.action-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.action-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background-color: var(--beige);
  color: var(--caramel);
  display: grid;
  place-items: center;
}

.action-row.destructive .action-row-icon {
  background-color: oklch(0.55 0.18 25 / 0.1);
  color: var(--destructive);
}

.action-row-icon svg {
  width: 16px;
  height: 16px;
}

.action-row-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.action-row-chevron {
  color: oklch(0.24 0.02 50 / 0.3);
  font-size: 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stat-card {
  border-radius: 1rem;
  border: 1px solid oklch(0.24 0.02 50 / 0.05);
  background-color: var(--card);
  padding: 1rem;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.24 0.02 50 / 0.4);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.info-list {
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--card);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.05);
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-top: 1px solid oklch(0 0 0 / 0.05);
}

.info-row:first-child {
  border-top: none;
}

.info-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background-color: var(--beige);
  color: var(--caramel);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-row-icon svg {
  width: 16px;
  height: 16px;
}

.info-row-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(0.24 0.02 50 / 0.4);
}

.info-row-value {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── HZP Balance badge ───────────────────────────── */
.hzp-badge {
  border-radius: 9999px;
  background-color: var(--espresso);
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
}

/* ── Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: oklch(0.24 0.02 50 / 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background-color: var(--card);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-luxe);
  padding: 1.75rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  color: oklch(0.24 0.02 50 / 0.5);
  font-size: 1.25rem;
  line-height: 1;
}

.modal-close:hover {
  background-color: var(--beige);
  color: var(--espresso);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Form fields (settings-style, static label) ──── */
.form-field {
  margin-bottom: 1.1rem;
}

.form-field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: oklch(0.24 0.02 50 / 0.5);
  margin-bottom: 0.5rem;
}

.form-field-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid oklch(0.24 0.02 50 / 0.1);
  background-color: oklch(0.985 0.008 80 / 0.6);
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--espresso);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-field-input:focus {
  border-color: var(--caramel);
}

.form-field-input.error {
  border-color: oklch(0.55 0.18 25 / 0.6);
}

.form-field-input:disabled {
  color: oklch(0.24 0.02 50 / 0.45);
  background-color: var(--beige);
  cursor: not-allowed;
}

select.form-field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23392e26' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}