:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f6f7fb;
  color: #1e1e24;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #f6f7fb 0%, #edf0ff 40%, #f6f7fb 100%);
}

.site-header,
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e0e3eb;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-nav a {
  color: #4361ee;
  font-weight: 600;
  text-decoration: none;
}

.top-nav a:hover {
  text-decoration: underline;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-nav__link {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(67, 97, 238, 0.12);
  color: #2b2d42;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav__link:hover {
  background: rgba(67, 97, 238, 0.18);
}

.admin-nav__link--active {
  background: #4361ee;
  color: #fff;
}

.inline-form {
  display: inline;
  margin-left: 0.5rem;
}

.link-danger {
  background: none;
  border: none;
  color: #d62828;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.link-danger:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid #e0e3eb;
  border-bottom: none;
  margin-top: auto;
}

.tagline {
  margin: 0.25rem 0 0;
  color: #5a6072;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand__link {
  font-size: 1.75rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.brand__link:hover {
  text-decoration: underline;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #8c91a6;
  margin: 0 0 0.5rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.hero--spotlight {
  background: radial-gradient(circle at top right, rgba(22, 28, 70, 0.95), rgba(12, 16, 32, 0.98));
  color: #f6f7ff;
  padding: 3rem;
  border-radius: 28px;
  box-shadow: 0 30px 120px rgba(16, 24, 64, 0.35);
  overflow: hidden;
}

.hero__text h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.1rem;
  color: rgba(243, 245, 255, 0.85);
}

.hero__pills {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__pills li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f6f7ff;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero__visual {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.hero-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-card {
  position: absolute;
  width: min(320px, 85%);
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #131937;
  box-shadow: 0 25px 80px rgba(12, 13, 28, 0.45);
  animation: float 6s ease-in-out infinite;
}

.hero-card--primary {
  top: 28px;
  left: 18px;
  transform: rotate(-3deg);
}

.hero-card--secondary {
  bottom: 28px;
  right: 20px;
  animation-delay: 1.2s;
  transform: rotate(4deg);
}

.hero-card--mini {
  width: 200px;
  bottom: 40%;
  left: 55%;
  animation-delay: 2s;
  transform: rotate(-8deg);
}

.hero-card__title {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #6b6f88;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.hero-card__merchant {
  margin: 0;
  font-weight: 600;
  color: #1c1f33;
}

.hero-card__answer {
  margin: 0.35rem 0 0;
  color: #343a5b;
  font-weight: 600;
}

.hero-ticker {
  position: absolute;
  right: 16px;
  top: 24px;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  width: 200px;
  background: rgba(15, 19, 45, 0.85);
  color: #f6f7ff;
}

.hero-ticker > div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.hero-ticker > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-ticker__value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-ticker__label {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-ticker__caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.hero-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(15, 22, 55, 0.8);
  color: #f6f7ff;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  box-shadow: 0 10px 25px rgba(10, 13, 30, 0.4);
}

.hero-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.4), transparent 60%);
  filter: blur(20px);
  animation: pulse 5s ease-in-out infinite;
}

.hero-orb {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(84, 132, 255, 0.5), rgba(164, 98, 255, 0.4));
  filter: blur(2px);
  animation: drift 8s ease-in-out infinite;
}

.hero-orb--one {
  top: -20px;
  right: 60px;
}

.hero-orb--two {
  bottom: -30px;
  left: 40px;
  animation-delay: 1.8s;
}

.hero-orb--three {
  top: 20%;
  left: -40px;
  width: 160px;
  height: 160px;
  animation-delay: 2.4s;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  text-align: left;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.stat-label {
  margin: 0.15rem 0;
  color: #4a4f63;
}

.stat-caption {
  margin: 0;
  color: #7b8094;
}

.feature-section,
.steps,
.testimonials,
.cta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chat-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.chat-demo__bullets {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: #363a54;
  display: grid;
  gap: 0.4rem;
}

.chat-demo__phone {
  background: #101a2c;
  border-radius: 32px;
  padding: 1.25rem;
  color: #eef2ff;
  box-shadow: 0 40px 80px rgba(10, 14, 34, 0.35);
  position: relative;
  overflow: hidden;
}

.chat-demo__status {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.chat-demo__thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 320px;
}

.chat-bubble {
  max-width: 90%;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  animation: bubbleIn 0.7s ease forwards;
  animation-delay: var(--delay, 0ms);
}

.chat-bubble strong {
  color: #111c5b;
}

.chat-bubble--user {
  margin-left: auto;
  background: #1f2b43;
  color: #f5f7ff;
  border-bottom-right-radius: 4px;
}

.chat-bubble--agent {
  background: #f5f7ff;
  color: #13172f;
  border-bottom-left-radius: 4px;
  box-shadow: 0 12px 24px rgba(10, 14, 34, 0.2);
}

.chat-ev,
.chat-credit {
  font-weight: 700;
  color: #1f6eea;
}

.chat-demo__input {
  margin-top: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.chat-demo__cursor {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: pulseCursor 1.2s infinite;
}

.chat-demo__phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.chat-demo__phone::before {
  content: "";
  position: absolute;
  inset: -50% auto auto -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(71, 108, 255, 0.4), transparent 60%);
  filter: blur(20px);
}
.use-cases {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.use-case {
  position: relative;
  overflow: hidden;
}

.use-case::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(92, 28, 255, 0.06));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.use-case:hover::after {
  opacity: 1;
}

.use-case__accent {
  font-size: 2rem;
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(67, 97, 238, 0.12);
  margin-bottom: 1rem;
}

.pulse {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.pulse__panel {
  display: grid;
  gap: 1.5rem;
}

.pulse__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pulse__form--submitted .button {
  opacity: 0.7;
  pointer-events: none;
}

.pulse__label {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-weight: 600;
}

.pulse__value {
  font-size: 3rem;
  color: #1f2251;
}

.pulse__guide {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6c708c;
}

.pulse__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pulse__status {
  margin: 0;
  font-size: 0.95rem;
  color: #4a4f63;
}

.pulse__notes {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  color: #2f3358;
}

.pulse input[type="range"] {
  width: 100%;
  accent-color: #111c5b;
}

.pulse input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #111c5b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.pulse input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #111c5b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

@media (max-width: 720px) {
  .hero--spotlight {
    padding: 2rem;
  }

  .pulse {
    grid-template-columns: 1fr;
  }

  .pulse__notes {
    grid-template-columns: 1fr;
  }
}

.section-heading {
  max-width: 640px;
}

.section-heading p {
  margin: 0;
  color: #4a4f63;
}

.section-heading h2 {
  margin: 0.15rem 0 0.5rem;
}

.feature-grid,
.step-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card h3 {
  margin-top: 0;
}

.step-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #eef1ff;
  color: #3442d1;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testimonial {
  font-style: normal;
}

.testimonial__quote {
  font-size: 1.05rem;
  color: #2b2f3e;
}

.cta {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pending-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pending-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #3a3f52;
  display: grid;
  gap: 0.5rem;
}

.pending-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.beta-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #eef1ff;
  color: #313659;
  border: 1px solid #cdd5ff;
  font-size: 0.95rem;
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

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

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

@keyframes pulseCursor {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.content {
  flex: 1;
  padding: 2.5rem 1.5rem 3.5rem;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(15, 15, 25, 0.08);
}

.form {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #d4d7e2;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  outline: none;
}

.helper-text {
  color: #767b8c;
  font-size: 0.875rem;
}

.button {
  background: linear-gradient(135deg, #4361ee, #5a8dee);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(67, 97, 238, 0.3);
}

.button:visited {
  color: #fff;
}

.checkbox-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.flash-messages {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.flash {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.flash-success {
  background-color: #f0fff4;
  border: 1px solid #34c38f;
  color: #146c43;
}

.flash-error {
  background-color: #fff4f4;
  border: 1px solid #f46a6a;
  color: #a71d2a;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 1rem;
}

.card-list li {
  background: #f9fafe;
  border: 1px solid #dce1f5;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.card-list .meta {
  color: #5a6072;
  font-size: 0.95rem;
}

.card-list .description {
  color: #3a3f52;
  font-size: 0.95rem;
}

.button-secondary {
  background: #eef1ff;
  color: #3442d1;
  border: 1px solid #c9d0ff;
}

.button-secondary:hover {
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.25);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.table-wrapper {
  overflow-x: auto;
}

.onboarding-card {
  display: grid;
  gap: 1.5rem;
}

.onboarding-header h2 {
  margin: 0 0 0.35rem;
}

.onboarding-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #8a8fab;
  font-weight: 500;
  transition: color 0.2s ease;
}

.stepper-item.is-active {
  color: #1e1e24;
}

.stepper-item.is-complete {
  color: #4361ee;
}

.stepper-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.2));
}

.step-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(67, 97, 238, 0.12);
  color: #4361ee;
  font-weight: 600;
}

.stepper-item.is-active .step-index {
  background: #4361ee;
  color: #fff;
}

.form-step.is-hidden {
  display: none;
}

.wallet-builder {
  display: grid;
  gap: 1.5rem;
}

.wallet-builder-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 720px) {
  .wallet-builder-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.wallet-search input {
  max-width: 360px;
}

.wallet-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #5a6072;
  font-size: 0.95rem;
}

.wallet-summary-count {
  font-weight: 600;
  color: #1e1e24;
}

/* Form actions in header for better mobile UX */
.form-actions-header {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.form-actions-header .button-secondary {
  order: -1;
}

/* Hide bottom form actions on mobile, show header ones */
@media (max-width: 720px) {
  .form-actions-bottom {
    display: none;
  }
  
  .form-actions-header {
    justify-content: stretch;
    width: 100%;
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 -1rem 1rem -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .form-actions-header .button,
  .form-actions-header .button-secondary {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Show bottom form actions on desktop, hide header ones */
@media (min-width: 721px) {
  .form-actions-header {
    display: none;
  }
}

/* Disabled button states */
.button:disabled,
.button-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.wallet-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wallet-tag {
  background: #eef1ff;
  color: #3442d1;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.wallet-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card-option {
  position: relative;
}

.card-option.is-hidden {
  display: none;
}

.card-option label {
  display: block;
}

.card-option-surface {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 24px;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 12px 32px rgba(33, 40, 89, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  min-height: 220px;
}

.card-option label:hover .card-option-surface {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(33, 40, 89, 0.12);
}

.card-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-checkbox:focus-visible + label .card-option-surface {
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
}

.card-checkbox:checked + label .card-option-surface {
  border-color: rgba(255, 120, 72, 0.5);
  background: linear-gradient(180deg, rgba(255, 245, 236, 0.8), rgba(255, 245, 236, 0.95));
}

.card-checkbox:checked + label .card-select-icon {
  background: #ff7848;
  color: #fff;
  box-shadow: 0 10px 20px rgba(255, 120, 72, 0.3);
}

.card-checkbox:checked + label .card-select-icon::before {
  content: "✓";
  transform: scale(1);
}

.card-placeholder {
  font-size: 2rem;
  font-weight: 700;
  color: #3442d1;
}

.card-thumb {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(158, 173, 255, 0.28));
  border-radius: 18px;
  overflow: hidden;
  padding: 1.25rem;
  min-height: 130px;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.card-select-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #ff7848;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 14px rgba(41, 43, 77, 0.15);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card-select-icon::before {
  content: "+";
  font-weight: 600;
  transform: scale(1.2);
}

.card-option label:hover .card-select-icon {
  transform: scale(1.05);
}

.card-info {
  display: grid;
  gap: 0.5rem;
}

.card-title {
  font-size: 1.05rem;
  line-height: 1.35;
  color: #1e1e24;
}

.card-category {
  color: #5a6072;
  font-size: 0.95rem;
  font-weight: 500;
}

.card-meta-line {
  color: #3a3f52;
  font-size: 0.9rem;
}

.card-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(67, 97, 238, 0.1);
  color: #3442d1;
  font-size: 0.85rem;
  font-weight: 600;
}

.wallet-empty-state {
  text-align: center;
  background: #fff5f5;
  border: 1px solid #f7c6c6;
  color: #a71d2a;
  padding: 1rem;
  border-radius: 12px;
}

.wallet-empty-state.is-hidden {
  display: none;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.form-actions .button-secondary {
  order: -1;
}

@media (max-width: 480px) {
  .card-option-surface {
    text-align: center;
    padding: 1.1rem;
    min-height: auto;
  }

  .card-info {
    justify-items: center;
  }

  .card-thumb {
    min-height: 120px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .button,
  .form-actions .button-secondary {
    flex: 1 1 auto;
    text-align: center;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #e4e7f1;
}

.data-table tbody tr:hover {
  background-color: #f4f6ff;
}

.data-table .actions a {
  color: #4361ee;
  text-decoration: none;
  font-weight: 600;
}

.data-table .actions a:hover {
  text-decoration: underline;
}

.subtle {
  color: #5a6072;
  font-size: 0.85rem;
}

.card-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.result-count {
  font-size: 0.95rem;
  color: #5a6072;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pill--active {
  background: rgba(52, 195, 143, 0.15);
  color: #0f5132;
}

.status-pill--inactive {
  background: rgba(244, 106, 106, 0.15);
  color: #842029;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-field label {
  font-size: 0.85rem;
  color: #5a6072;
}

.filter-field input,
.filter-field select {
  padding: 0.65rem 0.85rem;
  border: 1px solid #d4d7e2;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  outline: none;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.catalog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-preview {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e7f7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 15, 25, 0.05);
}

.card-preview__media {
  background: linear-gradient(135deg, #f7faff, #edf1ff);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.card-preview__media img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.card-preview__placeholder {
  font-size: 0.85rem;
  color: #8a90a6;
}

.card-preview__body {
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.card-preview__body h3 {
  margin: 0;
}

.card-preview__body .meta {
  color: #656c80;
  font-size: 0.9rem;
}

.card-preview__body .summary {
  margin: 0;
  color: #23273a;
  font-size: 0.95rem;
}

.card-preview__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button.ghost {
  background: transparent;
  color: #4361ee;
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.button.outline {
  background: transparent;
  color: #1f2a56;
  border: 1px solid #1f2a56;
}

.button.ghost:hover,
.button.outline:hover {
  box-shadow: none;
  transform: none;
  background: rgba(67, 97, 238, 0.08);
}

.wallet-page {
  display: grid;
  gap: 2rem;
}

.wallet-tabs {
  display: none;
  background: #fff;
  padding: 0.5rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(23, 32, 94, 0.12);
  width: fit-content;
  margin: 0 auto 1.25rem;
  gap: 0.5rem;
}

.wallet-tab {
  border: none;
  background: transparent;
  color: #5a6072;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.wallet-tab.is-active {
  background: linear-gradient(135deg, #4361ee, #5a8dee);
  color: #fff;
  box-shadow: 0 8px 18px rgba(67, 97, 238, 0.25);
}

.wallet-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.wallet-main,
.wallet-chat {
  width: 100%;
}

.wallet-layout[data-active-view="agent"] .wallet-main {
  display: none;
}

.wallet-layout[data-active-view="wallet"] .wallet-chat {
  display: none;
}

@media (min-width: 1100px) {
  .wallet-tabs {
    display: none;
  }

  .wallet-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    align-items: start;
  }

  .wallet-main {
    display: grid;
    max-width: 780px;
  }

  .wallet-chat {
    display: flex;
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 5rem);
  }
}

@media (max-width: 1099px) {
  .wallet-tabs {
    display: inline-flex;
  }

  .wallet-layout[data-active-view="wallet"] .wallet-main {
    display: grid;
  }

  .wallet-layout[data-active-view="wallet"] .wallet-chat {
    display: none;
  }

  .wallet-layout[data-active-view="agent"] .wallet-main {
    display: none;
  }

  .wallet-layout[data-active-view="agent"] .wallet-chat {
    display: flex;
  }
}

.wallet-hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.wallet-hero-copy {
  display: grid;
  gap: 0.35rem;
}

.wallet-hero-copy strong {
  font-size: 1.05rem;
}

.wallet-hero-copy p {
  margin: 0;
  color: #5a6072;
  font-size: 0.95rem;
}

.wallet-add {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 12px 32px rgba(23, 32, 94, 0.1);
  display: grid;
  gap: 1.5rem;
  min-height: 0;
}

.wallet-add-empty {
  margin: 0;
  font-size: 0.95rem;
}

.wallet-add-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
}

.wallet-add-modal.is-open {
  display: flex;
}

.wallet-add-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.wallet-add-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 95vw);
  max-height: 90vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #f6f7fb;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.25);
  overflow: hidden;
}

.wallet-add-dialog-header {
  padding: 1.75rem 2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e0e3eb;
}

.wallet-add-dialog-header h3 {
  margin: 0;
  font-size: 1.45rem;
}

.wallet-add-dialog-header p {
  margin: 0.35rem 0 0;
  color: #5a6072;
  font-size: 0.95rem;
}

.wallet-add .wallet-builder {
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
}

.wallet-add .wallet-grid {
  padding-bottom: 2.5rem;
}

.wallet-add .wallet-grid::-webkit-scrollbar {
  width: 8px;
}

.wallet-add .wallet-grid::-webkit-scrollbar-thumb {
  background: rgba(67, 97, 238, 0.35);
  border-radius: 999px;
}

.wallet-add-close {
  border: none;
  background: #eef1ff;
  color: #1e1e24;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.wallet-add-close:hover {
  background: #dbe1ff;
  transform: rotate(90deg);
}

.wallet-add-form {
  padding: 1.5rem 2rem 2rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.5rem;
  overflow: hidden;
}

.wallet-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.wallet-add-actions .button {
  min-width: 160px;
}

body.wallet-add-modal-open {
  overflow: hidden;
}

.wallet-add-dialog,
.wallet-add-form {
  max-width: 100%;
}

@media (max-width: 900px) {
  .wallet-add-dialog {
    width: min(720px, 92vw);
  }
}

@media (max-width: 700px) {
  .wallet-add-dialog {
    width: min(640px, 96vw);
    max-height: 95vh;
  }

  .wallet-add-form {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .wallet-add .wallet-builder {
    padding-right: 0;
  }

  .wallet-add-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .wallet-add-actions .button {
    min-width: 0;
    width: 100%;
  }
}

.wallet-main {
  display: grid;
  gap: 2rem;
  width: 100%;
}

.wallet-chat {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 14px 36px rgba(23, 32, 94, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 5rem);
  width: 100%;
}

@media (max-width: 1099px) {
  .wallet-hero-actions {
    align-items: stretch;
  }

  .wallet-chat {
    position: static;
    max-height: none;
    display: none;
  }
}

.wallet-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.wallet-chat-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.wallet-chat-header p {
  margin: 0.35rem 0 0;
  color: #5a6072;
  font-size: 0.95rem;
}

.wallet-chat-reset {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

.wallet-chat-reset[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.wallet-chat-history {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.wallet-chat-history::-webkit-scrollbar {
  width: 6px;
}

.wallet-chat-history::-webkit-scrollbar-thumb {
  background: rgba(67, 97, 238, 0.35);
  border-radius: 999px;
}

.chat-message {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #f4f6ff;
  color: #1a2142;
  box-shadow: 0 8px 18px rgba(23, 32, 94, 0.08);
}

.chat-message-user {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.85), rgba(90, 141, 238, 0.85));
  color: #fff;
}

.chat-message-user .chat-message-meta {
  color: rgba(255, 255, 255, 0.85);
}

.chat-message-assistant {
  margin-right: auto;
}

.chat-message-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(26, 33, 66, 0.6);
}

.chat-message-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.chat-message.is-pending .chat-message-body {
  opacity: 0.7;
  font-style: italic;
}

.wallet-chat-form {
  display: grid;
  gap: 0.75rem;
}

.wallet-chat-input textarea {
  width: 100%;
  min-height: 80px;
  border-radius: 16px;
  border: 1px solid #d4d7e2;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wallet-chat-input textarea:focus {
  outline: none;
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.18);
}

.wallet-chat-actions {
  display: flex;
  justify-content: flex-end;
}

.chat-error {
  margin: 0;
  font-size: 0.85rem;
  color: #a71d2a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wallet-hero {
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 14px 36px rgba(23, 32, 94, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wallet-hero h2 {
  margin: 0 0 0.35rem;
}

.wallet-hero p {
  margin: 0;
  color: #3a3f52;
  line-height: 1.5;
}

.wallet-hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(67, 97, 238, 0.1);
  color: #3442d1;
  font-weight: 600;
  font-size: 0.9rem;
}

.wallet-hero-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5);
  animation: wallet-pulse 2.4s infinite;
}

@keyframes wallet-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.wallet-stack {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .wallet-stack {
    padding-right: 0.75rem;
  }
}

.wallet-pass {
  --accent-hue: 220;
  --card-column-width: clamp(180px, 42%, 260px);
  background: #fff;
  border-radius: 28px;
  padding: 1.75rem 2rem;
  box-shadow: 0 16px 40px rgba(23, 32, 94, 0.15);
  position: relative;
  margin-top: 0;
  z-index: var(--stack-index, 1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wallet-pass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg, hsla(var(--accent-hue), 85%, 82%, 0.25), hsla(var(--accent-hue), 65%, 70%, 0.15));
  pointer-events: none;
}

.wallet-pass + .wallet-pass {
  margin-top: -2.5rem;
}

.wallet-pass-card {
  position: relative;
  padding: 0.9rem;
  border-radius: 26px;
  background: linear-gradient(135deg, hsla(var(--accent-hue), 100%, 86%, 0.75), hsla(var(--accent-hue), 65%, 72%, 0.45));
  box-shadow: 0 24px 38px rgba(20, 30, 78, 0.25);
  max-width: var(--card-column-width);
}

.wallet-pass-toggle {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: var(--card-column-width) 1fr;
  gap: 1.75rem;
  align-items: center;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.wallet-pass-toggle:focus-visible {
  outline: none;
}

.wallet-pass-card-surface {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1.58;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 65%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-pass-card-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.wallet-pass-toggle:focus-visible .wallet-pass-card-surface::after {
  box-shadow: inset 0 0 0 1.5px rgba(67, 97, 238, 0.45);
}

.wallet-pass-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(20, 30, 78, 0.28);
}

.wallet-pass-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2));
}

.wallet-pass-meta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 1100px) {
  .wallet-tabs {
    display: none;
  }

  .wallet-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .wallet-main {
    display: block;
    flex: 1 1 auto;
    max-width: 760px;
  }

  .wallet-chat {
    display: flex;
    flex: 0 0 360px;
    max-width: 360px;
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 5rem);
  }

  .wallet-layout[data-active-view="wallet"] .wallet-chat,
  .wallet-layout[data-active-view="agent"] .wallet-chat {
    display: flex;
  }

  .wallet-layout[data-active-view="agent"] .wallet-main {
    display: block;
  }
}

@media (max-width: 1099px) {
  .wallet-tabs {
    display: inline-flex;
  }

  .wallet-layout[data-active-view="wallet"] .wallet-chat {
    display: none;
  }

  .wallet-layout[data-active-view="agent"] .wallet-main {
    display: none;
  }

  .wallet-layout[data-active-view="agent"] .wallet-chat {
    display: flex;
  }
}

.wallet-pass-tier {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(30, 30, 36, 0.6);
}

.wallet-pass-title {
  margin: 0;
  font-size: 1.35rem;
  color: #121329;
}

.wallet-pass-issuer {
  margin: 0;
  color: rgba(30, 30, 36, 0.7);
  font-weight: 500;
}

.wallet-pass-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.wallet-pass-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(30, 40, 92, 0.08);
  color: rgba(30, 40, 92, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
}

.wallet-pass-pill--more {
  background: rgba(30, 40, 92, 0.12);
}

.wallet-pass-details {
  margin-top: 1.5rem;
  margin-left: calc(var(--card-column-width) + 1.75rem);
  display: grid;
  gap: 0.9rem;
  font-size: 0.95rem;
  color: rgba(30, 30, 36, 0.86);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.wallet-pass-detail {
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.wallet-pass-credits {
  gap: 0.5rem;
}

.wallet-pass-credit-table {
  display: grid;
  gap: 0.4rem;
}

.wallet-pass-credit-head,
.wallet-pass-credit-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.wallet-pass-credit-head {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(30, 30, 36, 0.5);
  padding: 0 0.25rem;
}

.wallet-pass-credit-row {
  background: rgba(67, 97, 238, 0.05);
  border: 1px solid rgba(67, 97, 238, 0.12);
  border-radius: 14px;
  padding: 0.75rem 1rem;
}

.wallet-pass-credit-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  color: #1f2233;
}

.wallet-pass-credit-name {
  font-weight: 600;
  color: #16172b;
}

.wallet-pass-credit-stats {
  display: flex;
  gap: 0.3rem;
  align-items: baseline;
  color: #5a6072;
}

.wallet-pass-credit-stats strong {
  font-size: 1.05rem;
  color: #16172b;
}

.wallet-pass-credit-meta span {
  display: block;
  color: #5a6072;
  font-size: 0.85rem;
}

.wallet-pass-credit-action details {
  font-size: 0.85rem;
}

.wallet-credit-log summary {
  cursor: pointer;
  color: #4361ee;
  font-weight: 600;
}

.wallet-credit-log-form {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.35rem;
}

.wallet-credit-log-form label {
  display: grid;
  gap: 0.15rem;
  font-size: 0.8rem;
  color: #5a6072;
}

.wallet-credit-log-form input[type="number"],
.wallet-credit-log-form input[type="date"],
.wallet-credit-log-form input[type="text"] {
  border: 1px solid rgba(30, 40, 92, 0.2);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

.wallet-credit-log-form .button-small {
  justify-self: start;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .wallet-pass-credit-head,
  .wallet-pass-credit-row {
    grid-template-columns: 1fr;
  }

  .wallet-pass-credit-head span:nth-child(n+2) {
    display: none;
  }

  .wallet-pass-credit-row {
    gap: 0.35rem;
  }
}

.wallet-pass-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.wallet-pass-remove {
  background: transparent;
  color: #c41e3a;
  border: 1px solid rgba(196, 30, 58, 0.45);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wallet-pass-remove:hover {
  background: rgba(196, 30, 58, 0.08);
  color: #a11a30;
  border-color: rgba(161, 26, 48, 0.55);
  box-shadow: none;
}

.wallet-pass-remove:focus-visible {
  outline: 2px solid rgba(196, 30, 58, 0.35);
  outline-offset: 2px;
}

.wallet-pass-summary {
  margin: 0;
  font-weight: 500;
  color: #1e1e24;
}

.wallet-pass-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(30, 30, 36, 0.55);
}

.wallet-pass.is-expanded {
  box-shadow: 0 28px 56px rgba(20, 30, 78, 0.25);
  transform: translateY(-6px);
  z-index: calc(var(--stack-index, 1) + 20);
}

.wallet-pass.is-expanded::before {
  opacity: 0.75;
}

.wallet-pass.is-expanded + .wallet-pass {
  margin-top: 1.75rem;
}

.wallet-pass.is-expanded .wallet-pass-details {
  max-height: 640px;
  opacity: 1;
  padding-bottom: 0.5rem;
}

.wallet-empty {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(23, 32, 94, 0.1);
}

.wallet-empty a {
  color: #4361ee;
  font-weight: 600;
}

@media (max-width: 720px) {
  .wallet-hero {
    padding: 1.5rem;
  }

  .wallet-pass {
    padding: 0;
    --card-column-width: 100%;
    overflow: hidden;
  }

  .wallet-pass-toggle {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: stretch;
  }

  .wallet-pass-card {
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .wallet-pass-card-surface {
    border-radius: 0;
    aspect-ratio: 1.6;
  }

  .wallet-pass-card img {
    border-radius: 0;
    box-shadow: none;
  }

  .wallet-pass-meta {
    justify-items: flex-start;
    padding: 1.25rem 1.5rem 1.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92) 40%, #fff 100%);
    margin-top: -1.25rem;
  }

  .wallet-pass-details {
    margin-left: 0;
    padding: 0 1.5rem 1.75rem;
  }

  .wallet-pass + .wallet-pass {
    margin-top: -6.5rem;
  }

  .wallet-pass.is-expanded + .wallet-pass {
    margin-top: 2.25rem;
  }

  .wallet-pass.is-expanded .wallet-pass-meta {
    margin-top: 0;
    padding-top: 1.5rem;
  }
}

@media (max-width: 600px) {
  .wallet-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .wallet-hero-actions .button {
    width: 100%;
  }

  .wallet-hero-copy {
    gap: 0.25rem;
  }

  .wallet-hero-copy strong {
    font-size: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .site-header {
    justify-content: center;
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .form-field select {
    min-height: 150px;
  }
}
