:root {
  --uh-orange: #ff6a00;
  --uh-pink: #e11d8f;
  --uh-purple: #6d28d9;
  --uh-indigo: #4c1d95;
  --uh-deep: #12051c;
  --uh-select-bg: #1a0830;
  --uh-select-fg: #ffffff;
  --bg1: #ff6a00;
  --bg2: #e11d8f;
  --bg3: #7c3aed;
  --select-option-bg: #1a0830;
  --select-option-fg: #ffffff;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  color-scheme: dark;
}

body {
  font-family: Outfit, Sora, system-ui, -apple-system, Segoe UI, sans-serif;
  background: #12051c;
  overflow-x: hidden;
  max-width: 100%;
  color-scheme: dark;
  color: #fff;
}

h1, h2, h3, h4, h5, .display-5, .navbar-brand, .brand-wordmark {
  font-family: Sora, Outfit, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

@keyframes uh-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes uh-soft-pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(255, 61, 122, 0.28); }
  50% { box-shadow: 0 14px 32px rgba(255, 106, 0, 0.38); }
}

.container.py-4,
.container.pb-5 {
  animation: uh-fade-up 0.45s ease both;
}

.glass {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.glass:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.app-shell {
  min-height: 100vh;
  min-width: 0;
  background:
    radial-gradient(1100px 560px at 12% 8%, rgba(255, 106, 0, 0.32), transparent 58%),
    radial-gradient(900px 520px at 88% 12%, rgba(225, 29, 143, 0.28), transparent 55%),
    radial-gradient(800px 480px at 50% 100%, rgba(109, 40, 217, 0.28), transparent 52%),
    linear-gradient(180deg, #16061f 0%, #0d0414 100%);
}

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(109, 40, 217, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(8, 2, 18, 0.28);
}

.hero {
  border-radius: 24px;
  overflow: hidden;
}

.hero-grad {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.55), rgba(225, 29, 143, 0.38) 48%, rgba(109, 40, 217, 0.42));
}

.btn-grad {
  background: linear-gradient(135deg, #ff8a1f, #ff3d7a 48%, #7c3aed);
  border: 0;
  box-shadow: 0 10px 24px rgba(255, 61, 122, 0.28);
  animation: uh-soft-pulse 3.6s ease-in-out infinite;
}

.btn-grad:hover {
  filter: brightness(1.06);
  color: #fff;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn-grad,
  .container.py-4,
  .container.pb-5,
  .card-tpl {
    animation: none !important;
    transition: none !important;
  }
}

.btn-outline-glass {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline-glass:hover {
  background: rgba(255, 106, 0, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.card-tpl {
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-tpl:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(225, 29, 143, 0.18);
}

.badge-soft {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
}

.nav-link.active {
  color: #fff !important;
  text-shadow: 0 0 18px rgba(255, 106, 0, 0.45);
}

.muted {
  color: rgba(255, 255, 255, 0.75);
}

.navbar.navbar-dark {
  background: rgba(12, 4, 20, 0.35);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-control,
.form-select {
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.18), rgba(225, 29, 143, 0.16) 50%, rgba(109, 40, 217, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-control:focus,
.form-select:focus {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.28), rgba(225, 29, 143, 0.22) 50%, rgba(109, 40, 217, 0.22));
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.28);
}

select.form-select,
select.form-control {
  color-scheme: dark;
}

.form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba(255,255,255,0.75)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

select.form-select option,
select.form-control option,
select option {
  background-color: var(--uh-select-bg) !important;
  background: var(--uh-select-bg) !important;
  color: var(--uh-select-fg) !important;
}

select.form-select option:checked,
select.form-control option:checked,
select option:checked,
select option:hover {
  background: #6d28d9 !important;
  color: #fff !important;
}

select.form-select optgroup,
select.form-control optgroup {
  background-color: #12061d !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
}

input.form-control:-webkit-autofill,
textarea.form-control:-webkit-autofill,
select.form-select:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  transition: background-color 99999s ease-out;
  box-shadow: 0 0 0 1000px rgba(109, 40, 217, 0.45) inset;
}

textarea.form-control {
  min-height: 2.75rem;
}

.form-control:disabled,
.form-select:disabled {
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.1), rgba(109, 40, 217, 0.1));
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

input[type="file"].form-control,
input[type="file"]:not(.form-control) {
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.16), rgba(225, 29, 143, 0.12) 55%, rgba(109, 40, 217, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.4rem 0.65rem;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.375rem;
  background: linear-gradient(135deg, #ff6a00, #e11d8f);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.form-check-input {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(109, 40, 217, 0.35);
}

.form-check-input:checked {
  background-color: var(--uh-orange);
  border-color: rgba(255, 255, 255, 0.5);
}

.form-label {
  color: rgba(255, 255, 255, 0.88);
}

.navbar-brand {
  max-width: min(280px, 62vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-brand img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.brand-wordmark {
  background: linear-gradient(90deg, #ff6a00, #e11d8f 55%, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.row {
  min-width: 0;
}

[class*="col-"] {
  min-width: 0;
}

.table-responsive,
.data-scroll-panel {
  -webkit-overflow-scrolling: touch;
  overflow: auto;
  max-width: 100%;
  max-height: min(58vh, 640px);
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(8, 2, 16, 0.28);
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 29, 143, 0.55) rgba(255, 255, 255, 0.06);
}

.table-responsive::-webkit-scrollbar,
.data-scroll-panel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb,
.data-scroll-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6a00, #e11d8f 55%, #7c3aed);
  border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-track,
.data-scroll-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.table-responsive .table-responsive,
.data-scroll-panel .table-responsive {
  max-height: min(32vh, 280px);
}

.table-responsive thead th,
.data-scroll-panel thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, #3a0d4a, #2a0838);
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.panel-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(18, 5, 28, 0.92), rgba(18, 5, 28, 0.72));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: -0.25rem -0.25rem 1rem;
  padding: 0.75rem 0.25rem;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: #fff;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(255, 106, 0, 0.08);
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

.list-filter-bar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.list-filter-bar input {
  max-width: 280px;
}

pre, code {
  overflow-x: auto;
  max-width: 100%;
  word-break: break-word;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

.card .d-flex.justify-content-between.align-items-center,
.card .d-flex.justify-content-between.align-items-end {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.uh-select {
  position: relative;
}

.uh-select-btn {
  width: 100%;
  text-align: left;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.2), rgba(225, 29, 143, 0.16) 50%, rgba(109, 40, 217, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.375rem;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  position: relative;
}

.uh-select-btn::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  transform: translateY(-70%) rotate(45deg);
}

.uh-select-btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.28);
}

.uh-select-menu {
  display: none;
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  background: #1a0830;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 0.35rem;
}

.uh-select.open .uh-select-menu {
  display: block;
}

.uh-select-option {
  padding: 0.45rem 0.65rem;
  border-radius: 0.4rem;
  cursor: pointer;
  color: #fff;
  background: transparent;
}

.uh-select-option:hover,
.uh-select-option.is-active {
  background: linear-gradient(135deg, #ff6a00, #e11d8f 60%, #7c3aed);
  color: #fff;
}

.uh-select-option.is-selected {
  font-weight: 600;
}

select.uh-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0 0 0 0) !important;
}

@supports (padding: max(0px)) {
  .container {
    padding-left: max(calc(var(--bs-gutter-x) * .5), env(safe-area-inset-left));
    padding-right: max(calc(var(--bs-gutter-x) * .5), env(safe-area-inset-right));
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse .d-flex.gap-2 {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.75rem;
    padding-bottom: .5rem;
  }
  .navbar-collapse .d-flex.gap-2 .btn {
    width: 100%;
  }
  .container > .d-flex.justify-content-between.align-items-center.mb-4,
  .container > .d-flex.justify-content-between.align-items-center.mb-3,
  .container.py-4 > .d-flex.justify-content-between.align-items-center {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem;
  }
  .container .d-flex.justify-content-between.align-items-center.mb-4 > .d-flex.gap-2,
  .container .d-flex.justify-content-between.align-items-center.mb-3 > .d-flex.gap-2,
  .container.py-4 .d-flex.justify-content-between.align-items-center > .d-flex.gap-2 {
    flex-wrap: wrap !important;
    width: 100%;
    justify-content: flex-start !important;
  }
  .container .d-flex.justify-content-between.align-items-center .d-flex.gap-2 .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .container .d-flex.justify-content-between.align-items-center .d-flex.gap-2 .btn {
    flex: 1 1 100%;
  }
  h1.text-white.fw-bold {
    font-size: 1.45rem;
  }
  .display-5 {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
  }
  .modal-dialog {
    margin: 0.45rem;
    max-width: calc(100% - 0.9rem);
  }
  .glass.rounded-4.p-4.p-lg-5, .glass.rounded-4.p-4 {
    padding: 1rem !important;
  }
  .hero.hero-grad.p-4.p-lg-5, .hero.hero-grad.p-4 {
    padding: 1rem !important;
  }
  footer .glass.p-4 {
    padding: 1rem !important;
  }
  .list-filter-bar input {
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .container .d-flex.justify-content-between.align-items-end.mb-3,
  .container .d-flex.justify-content-between.align-items-end {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }
}

/* Staff notifications + order filters */
.uh-notif {
  position: relative;
}

.uh-notif-btn {
  position: relative;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.uh-notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a00, #e11d8f);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

.uh-notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(340px, 86vw);
  z-index: 50;
  padding: 0.85rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.uh-notif-item {
  display: block;
  padding: 0.65rem 0.7rem;
  border-radius: 0.6rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  margin-bottom: 0.35rem;
}

.uh-notif-item:hover {
  background: rgba(255, 106, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.uh-notif-unread {
  background: rgba(225, 29, 143, 0.14);
  border-color: rgba(225, 29, 143, 0.28);
}

.uh-toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.uh-toast {
  padding: 0.85rem 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.uh-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.uh-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.uh-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.uh-filter-chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 106, 0, 0.14);
}

.uh-filter-chip.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.35), rgba(225, 29, 143, 0.28) 55%, rgba(124, 58, 237, 0.3));
  border-color: rgba(255, 255, 255, 0.35);
}

.uh-filter-count {
  min-width: 1.3rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.75rem;
  text-align: center;
}
