@import url("theme.css");

.brand--clickable {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.brand--clickable:active {
  opacity: 0.85;
}

.menu-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  pointer-events: none;
}
.menu-drawer-root.hidden {
  display: none;
}
.menu-drawer-root.open {
  pointer-events: auto;
}
.menu-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
}
.menu-drawer-root.open .menu-drawer-backdrop {
  opacity: 1;
}
.menu-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(100vw, 400px);
  max-width: 100%;
  background: linear-gradient(180deg, #0b0b15 0%, #05050a 100%);
  border-right: 1px solid rgba(167, 139, 250, 0.4);
  box-shadow: 8px 0 48px rgba(99, 102, 241, 0.25), 0 0 80px rgba(139, 92, 246, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.menu-drawer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.menu-drawer-bg__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: menuGridDrift 40s linear infinite;
}
@keyframes menuGridDrift {
  to { transform: translate(28px, 28px); }
}
.menu-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.menu-drawer-bg__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 20%;
  right: -40px;
  border-radius: 50%;
  background: #6d28d9;
  filter: blur(80px);
  opacity: 0.35;
}
.menu-drawer__head,
.menu-nav,
.menu-panel {
  position: relative;
  z-index: 1;
}
.menu-panel.menu-panel--fill {
  background: transparent;
}
.menu-drawer-root.open .menu-drawer {
  transform: translateX(0);
}
.menu-drawer__head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-drawer__title {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #c4b5fd, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.menu-drawer__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #8f98b8;
  font-size: 22px;
  cursor: pointer;
}
.menu-nav {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-nav__btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(15, 15, 30, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25), 0 0 12px rgba(139, 92, 246, 0.12);
  color: #f0f3fa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.15s;
  box-shadow:
    0 0 16px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.menu-nav__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(196, 181, 253, 0.5), rgba(99, 102, 241, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}
.menu-nav__btn > span:last-child {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.menu-nav__icon {
  width: 36px;
  height: 36px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(196, 181, 253, 0.35);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: #e9d5ff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}
.menu-drawer {
  touch-action: pan-y;
}
.menu-nav__btn {
  touch-action: manipulation;
}
.menu-nav__btn:active,
.menu-nav__btn.ui-touch-active {
  transform: scale(0.94);
  background: #7c3aed !important;
  color: #fff !important;
}
.menu-nav__btn.active {
  border-color: rgba(196, 181, 253, 0.9);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.32), rgba(139, 92, 246, 0.18));
  box-shadow:
    0 0 28px rgba(139, 92, 246, 0.55),
    0 0 2px rgba(196, 181, 253, 0.9),
    inset 0 0 32px rgba(99, 102, 241, 0.12);
}
.menu-support-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.4);
}
.menu-support-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: support-pulse 2s ease-in-out infinite;
}
@keyframes support-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.menu-support-ticket {
  align-self: center;
  font-size: 11px;
  color: #a5b4fc;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.menu-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.menu-faq-item {
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(99, 102, 241, 0.06);
  overflow: hidden;
}
.menu-faq-item__q {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #e9d5ff;
  cursor: pointer;
  list-style: none;
}
.menu-faq-item__q::-webkit-details-marker { display: none; }
.menu-faq-item[open] {
  border-color: rgba(196, 181, 253, 0.6);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}
.menu-faq-item__a {
  padding: 0 14px 12px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #b8c0d4;
}
.menu-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 14px calc(20px + env(safe-area-inset-bottom, 0));
  display: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.menu-panel.active {
  display: block;
}
.menu-panel.active.menu-panel--fill {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}
.menu-support {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.menu-support .menu-back {
  flex-shrink: 0;
}
.menu-support-banner {
  flex-shrink: 0;
}
.menu-chat--fill {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
}
.menu-chat__footer {
  flex-shrink: 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, transparent, rgba(10, 12, 16, 0.92) 24%);
}
.menu-list {
  list-style: none;
}
.menu-list__item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.menu-list__item:active {
  background: rgba(99, 102, 241, 0.1);
}
.menu-list__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.menu-list__id {
  font-size: 11px;
  color: #6e7687;
}
.menu-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.menu-badge.completed,
.menu-badge.confirmed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.menu-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.menu-badge.awaiting_review {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}
.menu-list__meta {
  font-size: 12px;
  color: #8f98b8;
}
.menu-detail {
  padding: 14px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 10px;
}
.menu-detail.hidden {
  display: none;
}
.menu-detail__reason {
  color: #fca5a5;
  margin-top: 8px;
}
.menu-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.menu-chat__msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}
.menu-chat__bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.menu-chat__bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.menu-chat__bubble.admin {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.menu-chat__bubble--pending {
  opacity: 0.75;
  font-style: italic;
}
.menu-chat__form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.menu-chat__input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.menu-chat__attach {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-chat__file-hint {
  font-size: 12px;
  color: #a5b4fc;
  margin: 6px 0 0;
}
.menu-chat__file-hint.hidden {
  display: none;
}
.menu-chat__img {
  display: block;
  max-width: 220px;
  max-height: 180px;
  margin-top: 8px;
  border-radius: 10px;
  object-fit: cover;
}
.menu-chat__pdf {
  display: inline-block;
  margin-top: 8px;
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: underline;
}
.menu-chat__send {
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.menu-list__item--active {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(99, 102, 241, 0.08);
}
.menu-list__pnl {
  font-size: 14px;
  font-weight: 800;
  margin-top: 6px;
}
.menu-list__pnl.pnl-pos { color: #34d399; }
.menu-list__pnl.pnl-neg { color: #f87171; }
.menu-form label {
  display: block;
  font-size: 11px;
  color: var(--muted, #8f98b8);
  margin-bottom: 12px;
}
.menu-input {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-family: inherit;
}
.menu-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.menu-currency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.menu-cur-btn {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
  font-weight: 600;
  cursor: pointer;
}
.menu-cur-btn.active {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(99, 102, 241, 0.2);
}
.menu-privacy-text {
  font-size: 13px;
  line-height: 1.6;
  color: #b8c0d4;
  margin-top: 12px;
  max-height: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.menu-license-intro {
  font-size: 12px;
  color: #a5b4fc;
  margin: 4px 0 8px;
  line-height: 1.45;
  flex-shrink: 0;
}
.menu-panel.active.menu-panel--fill.menu-panel--licenses {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.menu-licenses-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.menu-license-card {
  border-radius: 14px;
  background: rgba(15, 15, 30, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.25);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.menu-license-card__title {
  font-size: 12px;
  font-weight: 700;
  color: #ede9fe;
  line-height: 1.3;
  margin: 0;
  padding: 10px 12px 6px;
}
.menu-license-pdf {
  display: block;
  width: 100%;
  height: min(58vh, 520px);
  border: none;
  background: #0a0a12;
}
.menu-panel-title {
  font-size: 15px;
  font-weight: 800;
  margin: 8px 0 12px;
  background: linear-gradient(135deg, #c4b5fd, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.menu-hint, .menu-status-line {
  font-size: 12px;
  color: #8f98b8;
  margin: 8px 0;
}
.menu-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8f98b8;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  padding: 0;
}
