:root {
  --lux-ink: #07080d;
  --lux-ink-soft: #12141c;
  --lux-ink-muted: #1a1d28;
  --lux-paper: #fafbfc;
  --lux-paper-soft: #f3f5f8;
  --lux-line: rgba(15, 23, 42, 0.08);
  --lux-line-strong: rgba(15, 23, 42, 0.14);
  --lux-text: #0f172a;
  --lux-text-soft: #475569;
  --lux-text-muted: #64748b;
  --lux-accent: #14b8a6;
  --lux-accent-soft: #99f6e4;
  --lux-accent-glow: rgba(20, 184, 166, 0.18);
  --lux-platinum: #e2e8f0;
  --lux-champagne: #d6c7a1;
  --lux-success: #10b981;
  --lux-radius-xl: 2rem;
  --lux-radius-2xl: 2.5rem;
  --lux-shadow-soft: 0 24px 80px -40px rgba(15, 23, 42, 0.28);
  --lux-shadow-dark: 0 40px 120px -60px rgba(0, 0, 0, 0.75);
  --lux-font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --lux-font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body.lux-page {
  font-family: var(--lux-font-body);
  color: var(--lux-text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(214, 199, 161, 0.08), transparent 24%),
    linear-gradient(180deg, #fcfdfe 0%, #f4f7fa 48%, #eef2f6 100%);
  min-height: 100vh;
}

body.lux-admin {
  font-family: var(--lux-font-body);
  color: var(--lux-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.06), transparent 25%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  min-height: 100vh;
}

.lux-display {
  font-family: var(--lux-font-display);
  letter-spacing: -0.03em;
}

.lux-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lux-accent);
}

.lux-kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--lux-accent), transparent);
}

.lux-kicker-light {
  color: var(--lux-accent-soft);
}

.lux-kicker-light::before {
  background: linear-gradient(90deg, var(--lux-accent-soft), transparent);
}

.lux-shell {
  position: relative;
  isolation: isolate;
}

.lux-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.lux-card {
  border-radius: var(--lux-radius-2xl);
  border: 1px solid var(--lux-line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--lux-shadow-soft);
  backdrop-filter: blur(18px);
}

.lux-card-dark {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--lux-radius-2xl) + 0.25rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(214, 199, 161, 0.08), transparent 28%),
    linear-gradient(145deg, #0b0d14 0%, #12151f 52%, #090b11 100%);
  box-shadow: var(--lux-shadow-dark);
  color: white;
}

.lux-card-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.lux-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.lux-input,
.lux-select {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid var(--lux-line-strong);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 1.15rem;
  color: var(--lux-text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.lux-input::placeholder {
  color: #94a3b8;
}

.lux-input:focus,
.lux-select:focus {
  outline: none;
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 0 0 4px var(--lux-accent-glow);
}

.lux-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lux-text-muted);
}

.lux-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.lux-btn:hover {
  transform: translateY(-1px);
}

.lux-btn:active {
  transform: translateY(0);
}

.lux-btn-primary {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #2dd4bf 100%);
  color: white;
  box-shadow: 0 18px 40px -18px rgba(20, 184, 166, 0.65);
}

.lux-btn-primary:hover {
  box-shadow: 0 22px 48px -16px rgba(20, 184, 166, 0.75);
}

.lux-btn-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.55);
}

.lux-btn-ghost {
  border: 1px solid var(--lux-line-strong);
  background: rgba(255, 255, 255, 0.75);
  color: var(--lux-text);
}

.lux-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--lux-line);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lux-text-soft);
}

.lux-chip-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.lux-product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--lux-radius-xl);
  border: 1px solid var(--lux-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  padding: 1rem;
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.lux-product-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--lux-accent), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lux-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -34px rgba(15, 23, 42, 0.35);
}

.lux-product-card.is-selected {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 28px 70px -30px rgba(20, 184, 166, 0.28);
}

.lux-product-card.is-selected::after {
  opacity: 1;
}

.lux-product-card.is-selected .lux-product-badge {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: white;
}

.lux-product-badge {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  transition: background 0.3s ease;
}

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

.lux-step {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid var(--lux-line);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.95rem 1rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.lux-step-number {
  display: inline-flex;
  height: 1.75rem;
  width: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lux-text-soft);
}

.lux-step.is-active {
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.08);
  transform: translateY(-2px);
}

.lux-step.is-active .lux-step-number {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: white;
}

.lux-step.is-complete {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
}

.lux-step.is-complete .lux-step-number {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.lux-summary {
  border-radius: var(--lux-radius-xl);
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(240, 253, 250, 0.88));
  padding: 1.25rem 1.35rem;
}

.lux-bank-tile {
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.15rem 1.2rem;
  backdrop-filter: blur(12px);
}

.lux-upload {
  display: flex;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--lux-radius-xl);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background:
    radial-gradient(circle at center, rgba(20, 184, 166, 0.05), transparent 65%),
    rgba(255, 255, 255, 0.72);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.lux-upload:hover {
  border-color: rgba(20, 184, 166, 0.45);
  background: rgba(240, 253, 250, 0.95);
  transform: translateY(-1px);
}

.lux-upload.has-file {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(236, 253, 245, 0.95);
}

.lux-carousel-dot {
  height: 0.45rem;
  width: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.3s ease, background 0.3s ease;
}

.lux-carousel-dot.is-active {
  width: 1.6rem;
  background: linear-gradient(90deg, #14b8a6, #99f6e4);
}

.lux-alert {
  border-radius: 1.25rem;
  border: 1px solid transparent;
  padding: 0.95rem 1.1rem;
  font-size: 0.92rem;
}

.lux-alert-success {
  border-color: rgba(16, 185, 129, 0.18);
  background: rgba(236, 253, 245, 0.92);
  color: #065f46;
}

.lux-alert-error {
  border-color: rgba(244, 63, 94, 0.18);
  background: rgba(255, 241, 242, 0.92);
  color: #9f1239;
}

.lux-admin-card {
  border-radius: var(--lux-radius-2xl);
  border: 1px solid var(--lux-line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--lux-shadow-soft);
  backdrop-filter: blur(14px);
}

.lux-admin-order {
  border-radius: 1.5rem;
  border: 1px solid var(--lux-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  padding: 1rem;
}

.lux-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lux-status-pending {
  background: rgba(251, 191, 36, 0.14);
  color: #92400e;
}

.lux-status-valid {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.lux-status-refused {
  background: rgba(244, 63, 94, 0.12);
  color: #be123c;
}

.lux-table-wrap {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--lux-line);
}

.lux-table thead {
  background: rgba(248, 250, 252, 0.95);
}

.lux-table th {
  padding: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lux-text-muted);
}

.lux-table td {
  padding: 1rem;
  border-top: 1px solid var(--lux-line);
}

.lux-fade-up {
  animation: luxFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lux-fade-in {
  animation: luxFadeIn 0.55s ease both;
}

@keyframes luxFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes luxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .lux-stepper {
    grid-template-columns: 1fr;
  }
}
