/* Generic bottom sheet (2026-11-01 reskin batch 1).
   One shared sheet shell for wallet / share / notifications-style surfaces:
   spring entrance, grabber drag-to-close, token radius + soft shadow.
   Desktop (>=721px) renders as a centered dialog with the same language. */
.eg-sheet-back {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(2, 8, 14, .62);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.eg-sheet-back.on { opacity: 1; pointer-events: auto; }
.eg-sheet {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--r-sheet, 30px) var(--r-sheet, 30px) 0 0;
  width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh;
  display: flex; flex-direction: column;
  transform: translateY(105%);
  transition: transform .5s var(--spring-sheet, cubic-bezier(.32,1.35,.36,1));
  box-shadow: var(--sh-pop, 0 24px 60px rgba(2,10,18,.48));
  padding-bottom: max(env(safe-area-inset-bottom, 0px), var(--eg-sa-bottom, 0px));
}
.eg-sheet-back.on .eg-sheet { transform: none; }
.eg-sheet-back.drag .eg-sheet { transition: none; }
.eg-sheet-grab {
  padding: 10px 0 4px; display: flex; justify-content: center;
  cursor: grab; touch-action: none; flex: none;
}
.eg-sheet-grab::before {
  content: ""; width: 44px; height: 5px; border-radius: 99px;
  background: rgba(255, 255, 255, .22);
}
.eg-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 18px 8px; flex: none; touch-action: none;
}
.eg-sheet-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.eg-sheet-x {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--panel2); border: 1px solid var(--border);
  color: var(--text); font-size: 17px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.eg-sheet-x:active { transform: scale(.88); }
.eg-sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 18px 18px; }
/* Tab row with sliding gradient indicator (wallet / share sheets) */
.eg-tabs { position: relative; display: flex; gap: 4px; padding: 4px; margin: 0 0 12px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: var(--r-full, 999px); flex: none; }
.eg-tabs .eg-tab-ind { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: var(--r-full, 999px);
  background: var(--accent-grad); transition: transform .45s var(--spring, cubic-bezier(.32,1.28,.36,1)), width .45s var(--spring, cubic-bezier(.32,1.28,.36,1)), opacity .25s ease; z-index: 0; }
.eg-tab { position: relative; z-index: 1; flex: 1; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 13.5px; font-weight: 700; padding: 9px 4px; border-radius: var(--r-full, 999px);
  white-space: nowrap; transition: color .2s ease; -webkit-tap-highlight-color: transparent; }
.eg-tab.active { color: #fff; }
/* fix5 (8d): wallet tabs carry both .wtab and .eg-tab; wallet-modal.css's
 * .wtab.active{background:var(--panel2)} out-specified the transparent
 * button background, so the opaque panel2 pill covered the gradient
 * sliding indicator — in light theme that meant white text on #e9edf5
 * (near-invisible). The higher-specificity rule below lets the indicator
 * show through in BOTH themes; white text then sits on the gradient. */
.eg-tabs .eg-tab.active { background: transparent; }
.eg-tabs.no-ind .eg-tab.active { background: var(--accent-grad); }
@media (min-width: 721px) {
  .eg-sheet-back { align-items: center; padding: 20px; }
  .eg-sheet { border-radius: var(--r-lg, 24px); border-bottom: 1px solid var(--border);
    transform: translateY(26px) scale(.97); padding-bottom: 0; }
  .eg-sheet-back.on .eg-sheet { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-sheet, .eg-sheet-back, .eg-tabs .eg-tab-ind { transition: none; }
}

/* fix3: sheet grabber was white-alpha — invisible on the light sheet. */
[data-theme="light"] .eg-sheet-grab::before { background: rgba(26,32,48,.25); }
