:root {
  --bg: #02050d;
  --panel: rgba(8, 16, 30, 0.78);
  --panel-strong: rgba(10, 21, 39, 0.9);
  --text: #e8f1ff;
  --muted: #92a6c7;
  --line: #1e3454;
  --accent: #1b7dff;
  --accent-2: #00a9d8;
  --ok: #1aa26b;
  --warn: #ea8f08;
  --bad: #d94242;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 15%, rgba(23, 71, 151, 0.36) 0%, transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(15, 90, 140, 0.3) 0%, transparent 28%),
    linear-gradient(160deg, #000000 0%, #07142f 54%, #020712 100%);
}

.hidden {
  display: none !important;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.42;
  animation: drift 14s ease-in-out infinite;
}

.blob-a {
  background: #1c58b8;
  top: -72px;
  right: -60px;
}

.blob-b {
  background: #0f3e7e;
  bottom: 8%;
  left: -95px;
  animation-delay: -4s;
}

.blob-c {
  background: #0f7cb0;
  top: 38%;
  right: 28%;
  animation-delay: -7s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(16px, -22px) scale(1.08);
  }
}

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

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: authFade 0.35s ease both;
}

.auth-card {
  width: min(460px, 100%);
  border-radius: 20px;
  border: 1px solid #28476f;
  background: linear-gradient(170deg, rgba(9, 22, 41, 0.95), rgba(4, 13, 25, 0.96));
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  animation: rise 0.45s ease both;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -25%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(35, 132, 255, 0.24) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card:hover {
  transform: translateY(-2px);
  border-color: #3d6ca8;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.52);
}

.auth-brand {
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.auth-title {
  margin: 8px 0 4px;
  font-family: "Space Grotesk", sans-serif;
  position: relative;
  z-index: 1;
}

.auth-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.auth-tab {
  border: 1px solid #2a486f;
  border-radius: 11px;
  padding: 10px;
  color: #bcd1ee;
  background: rgba(7, 20, 38, 0.8);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.24s ease, background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.auth-tab::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #58a7ff, #5ee0ff);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.auth-tab:hover {
  transform: translateY(-1px);
  border-color: #3c679f;
}

.auth-tab.active {
  border-color: #4a82c4;
  background: rgba(20, 59, 108, 0.74);
  color: #d9ecff;
}

.auth-tab.active::after {
  transform: scaleX(1);
}

.auth-forms {
  position: relative;
  z-index: 1;
  transition: height 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.auth-form {
  display: grid;
  gap: 11px;
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.auth-form.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  position: relative;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: #adc0de;
}

.auth-form input {
  border: 1px solid #2b4c75;
  border-radius: 11px;
  padding: 11px;
  font: inherit;
  color: var(--text);
  background: rgba(6, 18, 35, 0.95);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.auth-form input:hover {
  border-color: #3e6aa1;
  background: rgba(8, 23, 43, 0.96);
}

.auth-form input:focus {
  outline: none;
  border-color: #4c8fd8;
  box-shadow: 0 0 0 3px rgba(27, 125, 255, 0.18);
  transform: translateY(-1px);
}

.auth-submit {
  margin-top: 4px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 76, 155, 0.35);
}

.auth-submit:active {
  transform: translateY(0);
}

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

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 284px 1fr;
  min-height: 100vh;
  align-items: start;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3, 10, 21, 0.9) 0%, rgba(4, 12, 26, 0.92) 100%);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  height: 100vh;
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.brand h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.menu {
  display: grid;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #2f4f79;
  border-radius: 12px;
  background: rgba(8, 22, 41, 0.92);
  color: #d7e7ff;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.mobile-menu-btn:hover {
  border-color: #4a82c4;
  background: rgba(18, 49, 89, 0.9);
}

.mobile-menu-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 125, 255, 0.22);
}

.mobile-menu-icon {
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-line {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu-btn[aria-expanded="true"] {
  border-color: #4a82c4;
  background: rgba(20, 59, 108, 0.74);
}

.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;
}

.mobile-currency-wrap {
  display: none;
}

.mobile-currency-wrap select {
  border: 1px solid #2f4f79;
  border-radius: 12px;
  padding: 10px 11px;
  min-height: 44px;
  font: inherit;
  font-size: 0.83rem;
  color: #d9e9ff;
  background: rgba(8, 22, 41, 0.92);
}

.mobile-currency-wrap select:focus {
  outline: none;
  border-color: #4c8fd8;
  box-shadow: 0 0 0 3px rgba(27, 125, 255, 0.2);
}

.menu-item {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 44px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-item:hover {
  border-color: #2d4f7a;
  background: rgba(15, 37, 66, 0.75);
}

.menu-item.active {
  background: rgba(20, 59, 108, 0.74);
  border-color: #4a82c4;
  color: #cfe5ff;
}

.menu-logout-item {
  display: none;
}

.wallet-card {
  margin-top: auto;
  border-radius: 18px;
  border: 1px solid #2f4f79;
  padding: 16px;
  background: linear-gradient(150deg, rgba(8, 27, 52, 0.82) 0%, rgba(5, 18, 35, 0.86) 100%);
}

.wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-card h2 {
  margin: 0;
  font-size: 0.95rem;
  color: #9eb6d8;
}

.wallet-user {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fc1ff;
  white-space: nowrap;
}

.wallet-amount {
  margin: 8px 0 14px;
  font-size: 1.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.logout-btn {
  margin-top: 2px;
}

.main-content {
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.topbar h2 {
  margin: 4px 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.topbar-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-field input {
  width: 320px;
  border: 1px solid #2b4c75;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: rgba(5, 17, 34, 0.9);
}

.search-field input:focus {
  outline: none;
  border-color: #4c8fd8;
  box-shadow: 0 0 0 3px rgba(27, 125, 255, 0.18);
}

input::placeholder,
textarea::placeholder {
  color: #7e93b5;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn-dark {
  color: #fff;
  background: #070f1f;
}

.route-page {
  margin-top: 14px;
  display: none;
}

.route-page.active {
  display: block;
  animation: rise 0.32s ease both;
}

.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.stat-card {
  background: var(--panel-strong);
  border: 1px solid #29476f;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  animation: rise 0.45s ease both;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.stat-card h3 {
  margin: 8px 0 6px;
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.trend {
  font-size: 0.78rem;
  font-weight: 600;
}

.trend.up {
  color: var(--ok);
}

.trend.down {
  color: var(--warn);
}

.trend.flat {
  color: #95aaca;
}

.content-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 1fr;
  min-width: 0;
}

.new-order-grid {
  align-items: start;
}

.order-search-preview {
  margin-top: 14px;
  border: 1px solid #2d4f7b;
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(150deg, rgba(8, 24, 46, 0.92), rgba(6, 18, 35, 0.9));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 10px;
}

.order-search-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.order-search-preview-head h3 {
  margin: 0;
  font-size: 0.96rem;
  font-family: "Space Grotesk", sans-serif;
}

.order-search-preview-head p {
  margin: 0;
  color: #94acd0;
  font-size: 0.78rem;
}

.order-search-preview-list {
  display: grid;
  gap: 8px;
}

.order-search-preview-item {
  border: 1px solid #2a486f;
  border-radius: 12px;
  background: rgba(8, 22, 41, 0.88);
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.order-search-preview-main {
  min-width: 0;
}

.order-search-preview-main strong {
  display: block;
  font-size: 0.9rem;
  color: #e8f2ff;
}

.order-search-preview-main p {
  margin: 4px 0 0;
  color: #9cb3d5;
  font-size: 0.78rem;
}

.order-search-preview-empty {
  margin: 0;
  color: #afc3e0;
  font-size: 0.84rem;
}

.dashboard-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.dashboard-grid .feed-list {
  max-height: 286px;
  overflow: auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 18px;
  animation: rise 0.5s ease both;
  min-width: 0;
}

.panel-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.order-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.order-form label,
.generic-form label {
  display: grid;
  gap: 7px;
  font-size: 0.87rem;
  color: #adc0de;
  min-width: 0;
}

.order-form select,
.order-form input[type="text"],
.order-form input[type="number"],
.generic-form input,
.generic-form select,
.generic-form textarea {
  border: 1px solid #2b4c75;
  border-radius: 11px;
  padding: 11px;
  font: inherit;
  color: var(--text);
  background: rgba(6, 18, 35, 0.95);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.order-form select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-form select:focus,
.order-form input[type="text"]:focus,
.order-form input[type="number"]:focus,
.generic-form input:focus,
.generic-form select:focus,
.generic-form textarea:focus {
  outline: none;
  border-color: #4c8fd8;
  box-shadow: 0 0 0 3px rgba(27, 125, 255, 0.18);
}

.order-form input[readonly] {
  color: #9fb7da;
  background: rgba(8, 23, 45, 0.88);
}

.category-picker {
  position: relative;
}

.category-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  inset: auto;
}

.category-picker-button {
  width: 100%;
  border: 1px solid #2b4c75;
  border-radius: 11px;
  padding: 11px 13px;
  font: inherit;
  color: var(--text);
  background: rgba(6, 18, 35, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.category-picker-button:hover {
  border-color: #4a7fb8;
}

.category-picker-button:focus-visible {
  outline: none;
  border-color: #4c8fd8;
  box-shadow: 0 0 0 3px rgba(27, 125, 255, 0.18);
}

.category-picker-button-content,
.category-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.category-picker-button-content span:last-child,
.category-picker-option span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-picker-caret {
  width: 18px;
  height: 18px;
  color: #a8c4ea;
  flex: 0 0 auto;
}

.category-picker-caret svg {
  width: 18px;
  height: 18px;
  display: block;
}

.category-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 32;
  max-height: 250px;
  overflow: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #29476f;
  border-radius: 14px;
  background: rgba(5, 17, 33, 0.98);
  box-shadow: 0 18px 34px rgba(1, 10, 24, 0.46);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4a9fff rgba(5, 17, 33, 0.92);
}

.category-picker-menu::-webkit-scrollbar {
  width: 10px;
}

.category-picker-menu::-webkit-scrollbar-track {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(6, 18, 35, 0.98), rgba(10, 28, 52, 0.94));
  border: 1px solid rgba(34, 61, 96, 0.9);
}

.category-picker-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(5, 17, 33, 0.95);
  background: linear-gradient(180deg, #2d7ef3 0%, #16a7dc 100%);
}

.category-picker-option {
  width: 100%;
  border: 1px solid #223b5f;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: #d9ebff;
  background: rgba(10, 28, 52, 0.88);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.category-picker-option:hover,
.category-picker-option.active {
  border-color: #5d9af2;
  background: linear-gradient(135deg, rgba(35, 105, 204, 0.9), rgba(21, 78, 158, 0.9));
}

.category-picker-option:hover {
  transform: translateY(-1px);
}

.generic-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.toggle-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #2b4c75;
  border-radius: 11px;
  padding: 11px;
  background: rgba(6, 18, 35, 0.95);
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1b7dff;
}

.generic-form textarea {
  resize: vertical;
  min-height: 110px;
}

#fundAmountInput::-webkit-outer-spin-button,
#fundAmountInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#fundAmountInput[type="number"] {
  -moz-appearance: textfield;
}

.range-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  min-width: 0;
}

.quote-box {
  border-radius: 14px;
  border: 1px solid #2b4c76;
  background: linear-gradient(135deg, rgba(9, 31, 58, 0.92), rgba(5, 17, 33, 0.92));
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.quote-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.quote-box strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
}

.chip-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid #2a476d;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(7, 22, 42, 0.82);
  color: #afc2df;
  font-size: 0.8rem;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

.platform-chip {
  width: 50px;
  height: 50px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(89, 160, 255, 0.18), transparent 55%),
    rgba(7, 22, 42, 0.9);
  box-shadow: inset 0 1px 0 rgba(157, 206, 255, 0.12);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.platform-chip:hover {
  border-color: #4c80bc;
  transform: translateY(-1px);
}

.platform-chip:focus-visible {
  outline: none;
  border-color: #71afff;
  box-shadow: 0 0 0 3px rgba(38, 134, 255, 0.2);
}

.chip.active {
  background: rgba(19, 59, 110, 0.8);
  border-color: #4a80c4;
  color: #d3e6ff;
}

.platform-chip.active {
  background:
    radial-gradient(circle at 30% 20%, rgba(115, 189, 255, 0.26), transparent 55%),
    linear-gradient(135deg, rgba(28, 91, 174, 0.88), rgba(12, 54, 108, 0.92));
  border-color: #70aefc;
  color: #f3f8ff;
  box-shadow:
    inset 0 1px 0 rgba(197, 229, 255, 0.16),
    0 12px 26px rgba(5, 25, 60, 0.32);
}

.platform-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbe9ff;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(34, 86, 156, 0.92), rgba(15, 48, 95, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(210, 234, 255, 0.22),
    0 6px 14px rgba(2, 20, 45, 0.26);
  padding: 4px;
}

.platform-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.platform-icon img {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(98%) sepia(6%) saturate(1325%) hue-rotate(179deg) brightness(111%) contrast(101%);
}

.platform-icon.instagram {
  background: linear-gradient(145deg, rgba(214, 41, 118, 0.95), rgba(84, 74, 216, 0.95));
}

.platform-icon.facebook {
  background: linear-gradient(145deg, rgba(24, 119, 242, 0.96), rgba(12, 74, 170, 0.96));
}

.platform-icon.tiktok {
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.96), rgba(46, 46, 46, 0.96));
}

.platform-icon.youtube {
  background: linear-gradient(145deg, rgba(255, 0, 0, 0.96), rgba(179, 0, 0, 0.96));
}

.platform-icon.twitter {
  background: linear-gradient(145deg, rgba(37, 37, 37, 0.96), rgba(9, 9, 9, 0.96));
}

.platform-icon.general {
  background: linear-gradient(145deg, rgba(50, 105, 180, 0.92), rgba(20, 59, 116, 0.96));
}

.platform-chip .platform-icon {
  width: 24px;
  height: 24px;
}

.platform-chip .platform-icon svg,
.platform-chip .platform-icon img {
  width: 14px;
  height: 14px;
}

.category-picker-button .platform-icon,
.category-picker-option .platform-icon {
  width: 28px;
  height: 28px;
  padding: 5px;
}

.category-picker-button .platform-icon svg,
.category-picker-button .platform-icon img,
.category-picker-option .platform-icon svg,
.category-picker-option .platform-icon img {
  width: 16px;
  height: 16px;
}

.services-list {
  margin-top: 14px;
  display: grid;
  gap: 9px;
  max-height: 362px;
  overflow: auto;
  padding-right: 8px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4a9fff rgba(5, 17, 33, 0.92);
}

.services-list::-webkit-scrollbar {
  width: 12px;
}

.services-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(6, 18, 35, 0.98), rgba(10, 28, 52, 0.94));
  border: 1px solid rgba(34, 61, 96, 0.9);
}

.services-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(5, 17, 33, 0.95);
  background: linear-gradient(180deg, #2d7ef3 0%, #16a7dc 100%);
  box-shadow: inset 0 1px 0 rgba(228, 244, 255, 0.18);
}

.services-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4690f5 0%, #27b2e6 100%);
}

.service-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #29476f;
  border-radius: 13px;
  padding: 12px 14px;
  background: rgba(8, 21, 39, 0.9);
  position: relative;
}

.service-item h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.service-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.service-platform-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-platform-meta .platform-icon {
  margin-top: 1px;
}

.service-price {
  text-align: right;
  font-family: "Space Grotesk", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 78px;
}

.service-order-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid #67a8ff;
  border-radius: 10px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #1f6fe0, #0f95d8);
  color: #eef6ff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -44%);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(7, 52, 118, 0.44);
}

.service-item:hover .service-order-btn,
.service-item:focus-within .service-order-btn {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.service-order-btn:hover {
  border-color: #86baff;
  background: linear-gradient(135deg, #2a83f4, #18a6e0);
}

.service-order-btn:focus-visible {
  outline: none;
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  box-shadow: 0 0 0 3px rgba(27, 125, 255, 0.25);
}

.orders-panel,
.feed-panel {
  grid-column: span 2;
}

.orders-page-grid,
.funds-grid,
.tickets-grid,
.settings-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 0.8fr;
}

.stat-stack h3 {
  margin: 0 0 12px;
}

.mini-stat {
  border: 1px solid #29476f;
  border-radius: 12px;
  padding: 11px;
  background: rgba(7, 22, 42, 0.8);
  margin-bottom: 8px;
}

.mini-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.mini-stat strong {
  display: inline-block;
  margin-top: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

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

th,
td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid #213a5e;
  font-size: 0.86rem;
}

th {
  color: #9bb2d1;
  font-weight: 600;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 4px 8px;
  font-weight: 600;
  text-transform: capitalize;
}

.status.processing {
  background: rgba(19, 77, 146, 0.36);
  color: #7fc1ff;
}

.status.completed {
  background: rgba(20, 96, 64, 0.36);
  color: #7fe2b7;
}

.status.partial {
  background: rgba(140, 92, 17, 0.35);
  color: #ffd38a;
}

.progress-track {
  width: 120px;
  height: 6px;
  background: #1a3458;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #008cff, #22c7d3);
}

.feed-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.feed-list li {
  border: 1px solid #29476f;
  border-radius: 12px;
  background: rgba(8, 22, 41, 0.9);
  padding: 10px 11px;
  font-size: 0.84rem;
  color: #c2d4ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feed-list time {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: capitalize;
}

.topup-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topup-summary-text {
  min-width: 0;
}

.topup-method-logo {
  width: 30px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid #325883;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d9e9ff;
  background: linear-gradient(145deg, #0b203d, #102c4d);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(142, 191, 255, 0.16);
}

.topup-method-logo svg {
  width: 16px;
  height: 16px;
  display: block;
}

.topup-method-logo.topup-method-logo-lg {
  width: 52px;
  height: 38px;
  border-radius: 11px;
}

.topup-method-logo.topup-method-logo-lg svg {
  width: 24px;
  height: 24px;
}

.topup-method-logo.paypal {
  border-color: #2b6dc0;
  color: #eef6ff;
  background: linear-gradient(145deg, #003087, #005ea6);
}

.topup-method-logo.xendit {
  border-color: #2e5e99;
  color: #e8f5ff;
  background: linear-gradient(145deg, #194c8f, #1f6ab8);
}

.topup-method-logo.manual {
  border-color: #76abf3;
  color: #1f67e7;
  background: linear-gradient(145deg, #f8fcff, #dbefff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 5px 12px rgba(3, 26, 61, 0.22);
}

.topup-method-logo.other {
  border-color: #3b5f86;
  color: #d4e6fb;
  background: linear-gradient(145deg, #0f2848, #12345e);
}

.manual-qr-card {
  border: 1px solid #2b4e79;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 16%, rgba(70, 164, 255, 0.18), rgba(70, 164, 255, 0) 48%),
    linear-gradient(150deg, rgba(9, 28, 52, 0.95), rgba(7, 21, 40, 0.98));
  padding: 14px;
  display: grid;
  gap: 12px;
}

.manual-qr-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.manual-qr-card-copy h4 {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
}

.manual-qr-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.manual-qr-link {
  width: min(100%, 260px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #6eb0ef;
  background:
    linear-gradient(165deg, #ffffff 0%, #f5fbff 62%, #e9f5ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 26px rgba(2, 16, 34, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.manual-qr-link:hover {
  transform: translateY(-1px);
  border-color: #89c4ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 32px rgba(2, 16, 34, 0.34);
}

.manual-qr-link:focus-visible {
  outline: none;
  border-color: #8bc2ff;
  box-shadow:
    0 0 0 3px rgba(37, 128, 255, 0.2),
    0 18px 32px rgba(2, 16, 34, 0.34);
}

.manual-qr-link img {
  width: min(100%, 220px);
  height: auto;
  display: block;
  object-fit: contain;
}

.manual-qr-number {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7e9ff;
  font-size: 0.92rem;
  line-height: 1.35;
}

.manual-qr-number span {
  color: var(--muted);
}

.manual-qr-number strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: #f2f8ff;
  letter-spacing: 0.02em;
}

.payment-rules-card {
  margin-top: 12px;
  border: 1px solid #29476f;
  border-radius: 14px;
  background: rgba(8, 22, 41, 0.9);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.payment-method-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-method-showcase {
  width: min(100%, 330px);
  min-height: 156px;
  border-radius: 16px;
  border: 1px solid #355c89;
  background:
    radial-gradient(circle at 18% 18%, rgba(63, 160, 255, 0.22), rgba(63, 160, 255, 0) 56%),
    linear-gradient(145deg, rgba(10, 30, 55, 0.92), rgba(8, 21, 40, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(130, 190, 255, 0.16),
    0 18px 34px rgba(2, 12, 26, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 14px;
  color: #e8f4ff;
  position: relative;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.payment-method-showcase-status {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(90, 132, 181, 0.45);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(6, 20, 39, 0.65);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #dbeaff;
}

.payment-method-showcase-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7ca7d6;
  box-shadow: 0 0 0 3px rgba(124, 167, 214, 0.15);
}

.payment-method-showcase-status.open .payment-method-showcase-status-dot {
  background: #29d477;
  box-shadow: 0 0 0 3px rgba(41, 212, 119, 0.18);
}

.payment-method-showcase-status.closed .payment-method-showcase-status-dot {
  background: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.payment-method-showcase-mark {
  width: auto;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.payment-method-showcase-mark svg {
  width: clamp(74px, 22vw, 134px);
  height: auto;
  display: block;
}

.payment-method-showcase-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5.8vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1;
  color: #ecf6ff;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.payment-method-showcase.paypal {
  border-color: #5ca4e8;
  color: #e6f8ff;
  background:
    radial-gradient(circle at 20% 16%, rgba(112, 192, 255, 0.27), rgba(112, 192, 255, 0) 48%),
    radial-gradient(circle at 84% 14%, rgba(25, 131, 228, 0.36), rgba(25, 131, 228, 0) 54%),
    linear-gradient(148deg, rgba(11, 52, 109, 0.97), rgba(12, 78, 153, 0.95) 54%, rgba(7, 43, 94, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(200, 237, 255, 0.22),
    0 18px 32px rgba(2, 20, 46, 0.46);
}

.payment-method-showcase.paypal::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  border: 1px solid rgba(181, 226, 255, 0.3);
  pointer-events: none;
}

.payment-method-showcase.paypal .payment-method-showcase-mark {
  width: min(100%, 288px);
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 58%, #edf5ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 18px rgba(4, 32, 73, 0.2);
  overflow: hidden;
}

.payment-method-showcase.paypal .payment-method-showcase-mark svg {
  width: clamp(62px, 13vw, 88px);
}

.payment-method-showcase.paypal .payment-method-showcase-mark img {
  width: min(100%, 246px);
  height: auto;
  max-height: 72px;
  display: block;
  object-fit: contain;
}

.payment-method-showcase.paypal .payment-method-showcase-label {
  font-size: clamp(1.75rem, 3.8vw, 2.55rem);
  letter-spacing: 0.2px;
  color: #0f428f;
  text-shadow: none;
}

.payment-method-showcase.paypal .payment-method-showcase-label-primary {
  color: #153d8f;
}

.payment-method-showcase.paypal .payment-method-showcase-label-accent {
  color: #0893e8;
}

.payment-method-showcase.xendit {
  border-color: #3876bf;
  color: #f0f8ff;
  background:
    radial-gradient(circle at 22% 18%, rgba(64, 156, 255, 0.25), rgba(64, 156, 255, 0) 56%),
    linear-gradient(145deg, rgba(25, 76, 143, 0.36), rgba(31, 106, 184, 0.22) 46%, rgba(8, 23, 43, 0.96));
}

.payment-method-showcase.manual {
  border-color: #5ca4e8;
  color: #e6f8ff;
  gap: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(112, 192, 255, 0.27), rgba(112, 192, 255, 0) 48%),
    radial-gradient(circle at 84% 14%, rgba(25, 131, 228, 0.36), rgba(25, 131, 228, 0) 54%),
    linear-gradient(148deg, rgba(11, 52, 109, 0.97), rgba(12, 78, 153, 0.95) 54%, rgba(7, 43, 94, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(200, 237, 255, 0.22),
    0 18px 32px rgba(2, 20, 46, 0.46);
}

.payment-method-showcase.manual::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  border: 1px solid rgba(181, 226, 255, 0.3);
  pointer-events: none;
}

.payment-method-showcase.manual .payment-method-showcase-mark {
  width: min(100%, 288px);
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f7fbff 58%, #edf6ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 18px rgba(4, 32, 73, 0.22);
  overflow: hidden;
}

.payment-method-showcase.manual .payment-method-showcase-mark svg {
  width: clamp(220px, 45vw, 332px);
}

.payment-method-showcase.manual .payment-method-showcase-mark img {
  width: min(100%, 246px);
  height: auto;
  max-height: 72px;
  display: block;
  object-fit: contain;
}

.payment-method-showcase.manual .payment-method-showcase-label {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  letter-spacing: 0.18px;
  color: #f8fcff;
  text-shadow: 0 5px 14px rgba(2, 22, 49, 0.48);
}

.payment-method-showcase-label-manual-gcash {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.payment-method-showcase-label-manual {
  color: #f5fbff;
}

.payment-method-showcase-label-gcash {
  color: #d6f1ff;
}

.payment-method-showcase.other {
  border-color: #40658e;
  color: #deedff;
  gap: 12px;
  background:
    radial-gradient(circle at 20% 16%, rgba(54, 121, 198, 0.22), rgba(54, 121, 198, 0) 56%),
    linear-gradient(145deg, rgba(15, 40, 72, 0.55), rgba(18, 52, 94, 0.3) 46%, rgba(8, 23, 43, 0.96));
}

.payment-method-showcase.other .payment-method-showcase-mark svg {
  width: clamp(56px, 10vw, 78px);
}

.payment-method-showcase.other .payment-method-showcase-label {
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  letter-spacing: 0.12px;
}

.payment-method-name {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2efff;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 640px) {
  .manual-qr-link {
    width: 100%;
  }

  .manual-qr-link img {
    width: min(100%, 200px);
  }

  .payment-method-showcase {
    min-height: 140px;
    gap: 12px;
    padding: 14px 12px;
  }

  .payment-method-showcase-label {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
}

.payment-rules-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.payment-rules-list li {
  color: #bed2ec;
  font-size: 0.83rem;
  line-height: 1.45;
  border-left: 2px solid #2f5e95;
  padding-left: 9px;
}

.ticket-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.ticket-item {
  border: 1px solid #29476f;
  border-radius: 12px;
  background: rgba(8, 22, 41, 0.9);
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket-main {
  min-width: 0;
}

.ticket-subject {
  margin: 0;
  font-size: 0.9rem;
}

.ticket-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: capitalize;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  min-width: 230px;
  max-width: 320px;
  padding: 11px 12px;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #061226, #123b68);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(14px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 8;
}

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

@keyframes maintenanceGlow {
  0%,
  100% {
    opacity: 0.26;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.56;
    transform: scale(1.04);
  }
}

@keyframes maintenanceTextPulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(105, 186, 255, 0);
  }
  50% {
    text-shadow: 0 0 16px rgba(105, 186, 255, 0.36);
  }
}

body.user-maintenance-mode .auth-shell,
body.user-maintenance-mode .app-shell {
  opacity: 0.2;
  filter: saturate(0.62) blur(2px);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.34s ease, filter 0.34s ease;
}

body.user-maintenance-mode {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.user-maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background: rgba(2, 9, 18, 0.08);
  backdrop-filter: blur(0);
  transition:
    opacity 0.32s ease,
    backdrop-filter 0.32s ease,
    background-color 0.32s ease,
    visibility 0s linear 0.32s;
}

.user-maintenance-overlay-card {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  border: 1px solid #2f4f79;
  border-radius: 18px;
  padding: 20px 26px;
  background: rgba(6, 20, 39, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease, box-shadow 0.36s ease;
}

.user-maintenance-overlay-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(48, 151, 255, 0.24) 0%, rgba(48, 151, 255, 0) 64%);
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 0.36s ease, transform 0.36s ease;
  pointer-events: none;
}

.user-maintenance-overlay-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.1rem, 1.4vw + 0.8rem, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e9f2ff;
}

body.user-maintenance-mode .user-maintenance-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(2, 9, 18, 0.56);
  backdrop-filter: blur(4px);
  transition-delay: 0s;
}

body.user-maintenance-mode .user-maintenance-overlay-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
}

body.user-maintenance-mode .user-maintenance-overlay-card::before {
  opacity: 0.52;
  transform: scale(1);
  animation: maintenanceGlow 2.8s ease-in-out infinite;
}

body.user-maintenance-mode .user-maintenance-overlay-card p {
  animation: maintenanceTextPulse 2.2s ease-in-out infinite;
}

body.dashboard-compact .stats-grid {
  gap: 10px;
}

body.dashboard-compact .stat-card {
  padding: 11px;
}

body.dashboard-compact .dashboard-grid .feed-list {
  max-height: 220px;
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 92px 1fr;
  }

  .brand div,
  .menu-item span,
  .wallet-card h2,
  .wallet-user,
  .wallet-amount,
  .wallet-card .btn,
  .logout-btn {
    display: none;
  }

  .menu-item {
    text-align: center;
    padding: 11px;
  }

  .wallet-card {
    padding: 10px;
    display: flex;
    justify-content: center;
    margin-top: auto;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .brand div {
    display: block;
  }

  .menu-item span {
    display: inline;
  }

  .wallet-card h2,
  .wallet-amount {
    display: block;
  }

  .wallet-user {
    display: inline;
  }

  .wallet-card .btn {
    display: inline-block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px;
    flex-wrap: wrap;
    height: auto;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    order: 2;
  }

  .mobile-currency-wrap {
    display: inline-grid;
    order: 3;
    min-width: 94px;
  }

  .mobile-currency-wrap select {
    width: 100%;
  }

  .logout-btn {
    display: none;
  }

  .wallet-card {
    margin-top: 0;
    padding: 10px 12px;
    width: 100%;
    order: 4;
    display: grid;
    gap: 8px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .wallet-head {
    grid-column: 1 / -1;
  }

  .wallet-amount {
    margin: 0;
    font-size: 1.25rem;
  }

  .wallet-card .btn {
    justify-self: end;
  }

  .menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    order: 6;
    padding: 0;
    overflow: hidden;
    flex-wrap: wrap;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 0.22s ease,
      transform 0.24s ease,
      visibility 0s linear 0.28s;
  }

  body.mobile-menu-open .menu {
    max-height: min(72vh, 560px);
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition:
      max-height 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 0.22s ease,
      transform 0.24s ease,
      visibility 0s linear 0s;
  }

  .menu-item {
    white-space: normal;
    width: 100%;
    flex: 1 1 auto;
    opacity: 0;
    transform: translateY(-4px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      border-color 0.2s ease,
      background 0.2s ease,
      color 0.2s ease;
  }

  body.mobile-menu-open .menu-item {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-logout-item {
    display: block;
  }

  .quote-box {
    flex-wrap: wrap;
  }

  .main-content {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
  }

  .search-field,
  .search-field input {
    width: 100%;
  }

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

  .content-grid,
  .dashboard-grid,
  .orders-page-grid,
  .funds-grid,
  .tickets-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .orders-panel,
  .feed-panel {
    grid-column: span 1;
  }
}

@media (hover: none) {
  .service-order-btn {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu,
  .menu-item,
  .user-maintenance-overlay,
  .user-maintenance-overlay-card,
  .user-maintenance-overlay-card::before,
  .user-maintenance-overlay-card p,
  body.user-maintenance-mode .auth-shell,
  body.user-maintenance-mode .app-shell {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden;
  }

  .auth-shell {
    padding: 16px;
  }

  .auth-card {
    padding: 18px;
  }

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

  .sidebar {
    padding: 10px;
    gap: 7px;
  }

  .brand {
    flex: 1;
  }

  .brand p {
    display: none;
  }

  .logout-btn {
    margin-left: 0;
  }

  .topbar h2 {
    font-size: 1.18rem;
  }

  .panel {
    padding: 14px;
  }

  .main-content {
    padding: 12px;
    overflow-x: hidden;
  }

  .content-grid,
  .new-order-grid {
    min-width: 0;
  }

  .order-panel,
  .services-panel {
    min-width: 0;
  }

  .order-form select,
  .order-form input[type="text"],
  .order-form input[type="number"] {
    font-size: 0.94rem;
  }

  .category-picker-button {
    padding: 11px 12px;
  }

  .category-picker-menu {
    max-height: 220px;
  }

  .chip-row {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .chip {
    width: 100%;
    border-radius: 14px;
  }

  .platform-chip {
    width: 50px;
    border-radius: 16px;
  }

  .range-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .quote-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .order-search-preview-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .service-price {
    text-align: left;
    align-items: flex-start;
    min-width: 0;
  }

  .feed-list li,
  .ticket-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .progress-track {
    width: 100%;
    max-width: 220px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: 0;
    max-width: none;
  }
}
