:root {
  --background: #080915;
  --background-2: #0e0a1d;
  --surface: #0f1224;
  --text-primary: #f6f7fb;
  --text-secondary: #b2bdd8;
  --accent: #c084fc;
  --accent-rgb: 192, 132, 252;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(1200px 700px at 16% 12%, rgba(var(--accent-rgb, 192, 132, 252), 0.2), transparent 58%),
    radial-gradient(900px 560px at 78% 10%, rgba(var(--accent-rgb, 192, 132, 252), 0.14), transparent 55%),
    radial-gradient(1400px 820px at 50% 110%, rgba(var(--accent-rgb, 192, 132, 252), 0.12), transparent 55%),
    linear-gradient(125deg, rgba(var(--accent-rgb, 192, 132, 252), 0.12), rgba(var(--accent-rgb, 192, 132, 252), 0.02) 38%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(135deg, #090814 0%, #0c0a1a 35%, #0b1228 70%, #0a0b18 100%);
  color: var(--text-primary);
  transition: background 0.4s ease, color 0.3s ease;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 900px at 50% 20%, rgba(255, 255, 255, 0.04), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 4px);
  mix-blend-mode: soft-light;
  opacity: 0.65;
  z-index: -1;
}

header,
main {
  position: relative;
  z-index: 2;
}

body.dark-theme {
  --background: #02060f;
  --background-2: #060a14;
  --surface: #0b0f1b;
  --text-primary: #eef2ff;
  --text-secondary: #94a3b8;
  --accent: #7dd3fc;
  --accent-rgb: 125, 211, 252;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.7);
}

header {
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 clamp(1rem, 4vw, 4rem);
  margin-bottom: 1.25rem;
}

.tab {
  background: rgba(var(--accent-rgb, 192, 132, 252), 0.14);
  color: var(--text-primary);
  border: 1px solid rgba(var(--accent-rgb, 192, 132, 252), 0.28);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.tab.active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 192, 132, 252), 0.96), rgba(129, 140, 248, 0.9));
  color: #0b0a12;
  border-color: transparent;
}

.tab:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb, 124, 58, 237), 0.35);
  outline-offset: 2px;
}

.tab-panel {
  padding: 0;
}

.tab-panel--active {
  display: block;
}

.admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  min-height: calc(100vh - 180px);
}

.admin-login__card {
  background: linear-gradient(160deg, rgba(16, 18, 26, 0.94), rgba(12, 15, 23, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: clamp(2.25rem, 4vw, 2.85rem);
  box-shadow:
    0 40px 90px -50px rgba(0, 0, 0, 0.65),
    0 12px 28px -22px rgba(0, 0, 0, 0.55);
  max-width: 1080px;
  width: min(100%, 1080px);
  display: grid;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  margin: 0 auto;
}

.admin-login__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.admin-login__back {
  align-self: flex-start;
  background: #171c27;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-login__back:hover {
  border-color: rgba(34, 197, 94, 0.7);
  color: #cde8d6;
}

.admin-login__form {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 820px;
}

.admin-login__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-login__field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.admin-login__field input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #11141e;
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.admin-login__field input::placeholder {
  color: rgba(241, 243, 247, 0.38);
}

.admin-login__submit {
  width: 100%;
  background: #1db957;
  color: #031107;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 999px;
  padding: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 14px 32px -18px rgba(29, 185, 87, 0.75);
}

.admin-login__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px -18px rgba(29, 185, 87, 0.82);
}

.admin-login__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-login__helper {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.admin-login__success {
  margin: 0;
  color: #22c55e;
  min-height: 1.2rem;
}

.admin-login__error {
  margin: 0;
  color: #f87171;
  min-height: 1.2rem;
}

.admin-login__button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 192, 132, 252), 0.95), rgba(129, 140, 248, 0.9));
  color: #0b0a12;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px -16px var(--shadow);
}

.admin-login__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.55);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}

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

.search-input {
  flex: 1 1 220px;
  min-width: 180px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.05);
  color: var(--text-primary);
  transition: border 0.2s ease, background 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.12);
}

button {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px -10px var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px var(--accent);
}

#themeButton,
.floating-theme-button {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: auto;
  top: auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -18px var(--accent);
  padding: 0;
  font-size: 0;
  z-index: 1200;
}

#themeButton::before,
.floating-theme-button::before {
  content: '⚙';
  font-size: 24px;
  line-height: 1;
}

main {
  padding: 0 clamp(1rem, 4vw, 4rem) 3rem;
  display: grid;
  gap: 2.5rem;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

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

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

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 18px 32px -28px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

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

.category-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.category button.clear {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: none;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 16px 30px -26px var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card--admin-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.product-card--admin-placeholder:hover {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -30px var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.product-thumb {
  width: 100%;
  height: 100%;
  display: block;
}

.product-media img.product-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.card-hidden {
  display: none !important;
}

.category-hidden {
  display: none;
}

.catalog-empty-state {
  margin: 0 auto;
  padding: 1rem 1.5rem;
  max-width: 720px;
  border-radius: 1rem;
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.08);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
}

.product-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.product-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.limited-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: -0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.limited-badge.sold-out {
  background: rgba(239, 68, 68, 0.25);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.quantity-control--disabled {
  opacity: 0.6;
  pointer-events: none;
}

.quantity-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.product-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    135deg,
    rgba(var(--accent-rgb, 124, 58, 237), 0.12),
    rgba(var(--accent-rgb, 124, 58, 237), 0.12) 16px,
    rgba(var(--accent-rgb, 124, 58, 237), 0.04) 16px,
    rgba(var(--accent-rgb, 124, 58, 237), 0.04) 32px
  );
}

.product-thumb-initials {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.quantity-input {
  width: 100%;
  max-width: 90px;
  padding: 0.45rem 0.6rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.08);
  color: var(--text-primary);
  font-weight: 600;
  transition: border 0.2s ease;
  text-align: center;
}

.quantity-input:focus {
  outline: none;
  border-color: var(--accent);
}

.quantity-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 18px 32px -28px var(--shadow);
  position: sticky;
  top: 2rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.summary-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.summary-empty {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.category-summary {
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.category-empty-note {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.08);
  color: var(--text-secondary);
  font-weight: 600;
}

.category-summary h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.category-summary ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.summary-line .line-label {
  flex: 1 1 auto;
}

.summary-line .line-total,
.category-subtotal .line-total {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.category-subtotal {
  margin-top: 0.55rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.amount-stack {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.money-original {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-weight: 600;
}

.money-current {
  font-weight: 800;
}

.totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.discount-row {
  color: var(--text-secondary);
  font-weight: 600;
}

.discount-row span:last-child {
  color: #16a34a;
}

.grand-total-row {
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.summary-actions__info {
  display: none;
}

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

.summary-actions button {
  flex: 1 1 140px;
}

.totals--compact {
  margin: 0;
  border-top: none;
  padding-top: 0;
}

.muted {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.order-overlay[hidden] {
  display: none !important;
}

.order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 7, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.order-modal {
  width: min(480px, 100%);
  background: var(--surface);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.8);
}

.order-modal h3 {
  margin: 0 0 0.35rem;
}

.order-modal form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 1rem;
}

.order-modal label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
}

.order-modal input,
.order-modal textarea {
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.04);
  color: var(--text-primary);
  font-weight: 500;
}

.order-modal textarea {
  resize: vertical;
  min-height: 96px;
}

.order-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.order-feedback {
  min-height: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.order-feedback.error {
  color: #dc2626;
}

.order-feedback.success {
  color: #16a34a;
}

@media (max-width: 640px) {
  body {
    padding-top: 7rem;
    padding-bottom: 4.5rem;
  }

  .summary-actions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-top: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 0.65rem clamp(1rem, 6vw, 1.5rem) 0.85rem;
    background: var(--surface);
    gap: 0.65rem;
    box-shadow: 0 24px 46px -32px rgba(0, 0, 0, 0.55);
    z-index: 900;
  }

  .summary-actions__info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .summary-actions__info h2 {
    margin: 0;
    font-size: 1rem;
  }

  .summary-actions__info .totals--compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.5rem;
  }

  .summary-actions__buttons {
    display: flex;
    gap: 0.5rem;
  }

  .summary-actions button {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    border-radius: 0.8rem;
    font-size: 0.85rem;
  }

  #themeButton,
  .floating-theme-button {
    position: fixed;
    right: 18px;
    bottom: 20px;
    left: auto;
    top: auto;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent);
    border: none;
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    padding: 0;
    z-index: 950;
  }

  #themeButton::before,
  .floating-theme-button::before {
    content: '⚙';
    font-size: 22px;
    line-height: 1;
  }
}

.secondary-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.copied {
  background: #22c55e !important;
  box-shadow: 0 12px 22px -12px rgba(34, 197, 94, 0.7) !important;
}

.theme-overlay {
  position: fixed;
  inset: 0;
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.32);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.theme-overlay.visible {
  display: flex;
}

.theme-panel {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 1.75rem;
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: 0 24px 42px -24px var(--shadow);
  transform: scale(0.6) rotate(-120deg);
  opacity: 0;
}

.theme-panel.open {
  animation: spinIn 0.65s ease forwards;
}

@keyframes spinIn {
  0% {
    transform: scale(0.55) rotate(-160deg);
    opacity: 0;
  }
  55% {
    transform: scale(1.05) rotate(12deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.theme-panel h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

.theme-section {
  margin-bottom: 1.5rem;
}

.theme-section:last-of-type {
  margin-bottom: 0;
}

.theme-section label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

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

.accent-swatch {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.accent-swatch.selected {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.color-picker {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.08);
}

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

.mode-toggle button {
  flex: 1;
}

.close-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: none;
}

footer {
  padding: 1.5rem clamp(1rem, 4vw, 4rem) 3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.footer-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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

.order-lookup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 16px 30px -28px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-lookup__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.order-lookup__eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.order-lookup__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, auto));
  gap: 0.75rem;
  align-items: end;
}

.order-lookup__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

.order-lookup__form input {
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.05);
}

.order-lookup__form input:focus {
  outline: 2px solid rgba(var(--accent-rgb, 124, 58, 237), 0.2);
  border-color: var(--accent);
}

.order-lookup__form button {
  justify-self: start;
}

.order-lookup__status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.order-lookup__status.error {
  color: #b91c1c;
}

.order-lookup__status.muted {
  color: var(--text-secondary);
}

.order-lookup__results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.order-lookup__list {
  display: grid;
  gap: 0.75rem;
}

.order-lookup__card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(192, 132, 252, 0.05));
  box-shadow: 0 12px 28px -26px var(--shadow);
  backdrop-filter: blur(6px);
}

.order-lookup__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.order-lookup__code {
  font-weight: 700;
  font-size: 1.05rem;
}

.order-lookup__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.order-lookup__items {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.order-lookup__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-primary);
}

.order-lookup__item span:last-child {
  font-weight: 700;
}

.order-lookup__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.order-lookup__status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  background: rgba(var(--accent-rgb, 124, 58, 237), 0.16);
  color: var(--accent);
}

.order-lookup__status-pill.status-pending {
  background: rgba(251, 191, 36, 0.16);
  color: #b45309;
}

.order-lookup__status-pill.status-fulfilled {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
}

.order-lookup__status-pill.status-cancelled {
  background: rgba(248, 113, 113, 0.16);
  color: #b91c1c;
}

@media (max-width: 768px) {
  .order-lookup__intro {
    flex-direction: column;
    align-items: stretch;
  }

  .order-lookup__form {
    grid-template-columns: 1fr;
  }

  .order-lookup__form button {
    width: 100%;
  }
}

