/* ============================================================
   BLUNA SERVICES – Bottom-Sheet Styles (27.08.2026)
   Versteckter Tab-Bereich unten: kleiner mittiger Knopf,
   maximiert sich per Klick/Drag/Wisch vom unteren Rand.
   Konsistent mit HUB: dunkel, Gold-Akzente (Services = GOLD).
   Eigenständig (bs-*), kein Konflikt.
   ============================================================ */

/* --- Abdunklung hinter dem Sheet (Klick schließt) --- */
.bs-overlay-bg {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.bs-overlay-bg.bs-overlay-show {
  opacity: 1;
  pointer-events: auto;
}

/* --- Dock: unten verankert, mittig --- */
.bs-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  z-index: 70;
  pointer-events: none;
}

/* --- Der kleine mittige Service-Knopf (minimierter Zustand) --- */
.bs-handle {
  position: absolute;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 18px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(11, 15, 26, 0.94);
  color: #fcd34d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.22), 0 6px 20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.25s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.bs-handle:hover {
  transform: translateX(-50%) scale(1.06);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.45), 0 8px 26px rgba(0, 0, 0, 0.65);
}
.bs-dock.bs-open .bs-handle {
  opacity: 0;
  pointer-events: none;
}
.bs-handle-label {
  line-height: 1;
}

/* --- Grip-Strich (klein, im Knopf) --- */
.bs-grip {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 9999px;
  background: rgba(252, 211, 77, 0.6);
}

/* --- Das Sheet (maximierter Bereich) --- */
.bs-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: auto;
  background: #0b0f1a;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.65), 0 0 40px rgba(245, 158, 11, 0.1);
  transform: translateY(102%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  will-change: transform;
}
.bs-dock.bs-open .bs-sheet {
  transform: translateY(0);
}

/* --- Großer Grip oben am Sheet (Drag-Zone, nach unten schließen) --- */
.bs-sheet-grip {
  flex-shrink: 0;
  width: 46px;
  height: 5px;
  border-radius: 9999px;
  background: rgba(252, 211, 77, 0.5);
  margin: 10px auto 2px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.bs-sheet-grip:active { cursor: grabbing; }

/* --- Scrollbarer Inhalt --- */
.bs-sheet-inner {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}
.bs-sheet-inner::-webkit-scrollbar { width: 6px; }
.bs-sheet-inner::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.25); border-radius: 3px; }
.bs-sheet-inner::-webkit-scrollbar-track { background: transparent; }

/* --- Kopf --- */
.bs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}
.bs-kicker {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 4px;
}
.bs-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.bs-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
}
.bs-close:hover {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.9);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  transform: scale(1.06);
}

/* --- Service-Karten --- */
.bs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px) {
  .bs-grid { grid-template-columns: 1fr; }
}
.bs-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.06), rgba(11, 15, 26, 0) 55%), #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bs-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.1);
}
.bs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bs-icon {
  font-size: 20px;
  line-height: 1;
}
/* SFT-Minting-Icon: BLUNA-Sechseck in Gold (Minting = Gold-Prägung) */
.bs-grid .bs-card:nth-child(2) .bs-icon {
  color: #fcd34d;
}
.bs-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 9999px;
  white-space: nowrap;
}
.bs-ok {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}
.bs-soon {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.bs-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.bs-card-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f59e0b;
  text-transform: uppercase;
}
.bs-card-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #cbd5e1;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.bs-card-detail {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

/* --- Fußzeile --- */
.bs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}
.bs-foot-rgb {
  color: #f59e0b;
}

@media (prefers-reduced-motion: reduce) {
  .bs-overlay-bg, .bs-sheet, .bs-handle { transition: none; }
}