html,
body {
  background-color: #000;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  font-family: sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

.shell-root {
  position: relative;
  width: 100%;
  min-height: 100dvh;
}

.shell-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(45deg, #fbff0081, #3333ff9f);
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: url(../pattern.svg);
  mask-image: url(../pattern.svg);
  -webkit-mask-size: 450px;
  mask-size: 450px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}

.shell-header-wrap {
  background-color: #202020;
  font-size: 12px;
  line-height: 18px;
  padding: 0 16px 1px;
  --accent-btn-color: #1c93e3;
  --text-color: #fff;
  --tme-logo-color: #fff;
  position: relative;
  z-index: 10;
}

.shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px;
}

.shell-header-action {
  display: inline-block;
  font-size: 14px;
  line-height: 17px;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-btn-color);
  padding: 9px 16px;
  height: 34px;
  border-radius: 17px;
  text-align: center;
  transition: all 0.15s ease;
  text-decoration: none;
}

.shell-brand-mark {
  display: inline-block;
  vertical-align: top;
}

.state-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

.state-card {
  background-color: #212121;
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  max-width: 320px;
  min-height: 160px;
  pointer-events: auto;
}

.state-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #3390ec;
  border-radius: 50%;
  animation: spin-cycle 1.5s linear infinite;
}

.state-caption {
  color: #fff;
  font-size: 24px;
  margin: 15px 0 0;
  font-family: sans-serif;
  text-align: center;
}

@keyframes spin-cycle {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.state-error-icon {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  background: #000c;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.detail-panel {
  background: #212121;
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px #0006;
  color: #fff;
  font-family: -apple-system, sans-serif;
  position: relative;
}

.detail-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.detail-image-frame {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-badge {
  margin-top: -35px;
  background: #0006;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  gap: 8px;
}

.detail-badge-index {
  color: #999;
}

.detail-stats {
  background-color: #1a1a1a;
  border: 1px solid rgba(231, 231, 231, 0.4);
  border-radius: 16px;
  margin-bottom: 16px;
}

.detail-stats-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.detail-stats-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #8a91a9;
}

.detail-value {
  text-align: right;
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.detail-percent {
  color: #5288b8;
  font-size: 13px;
}

.detail-accent {
  color: #4caf50 !important;
  font-weight: 600;
}

.detail-note {
  font-size: 12px;
  color: #8a91a9;
  line-height: 0.5;
  margin-bottom: 20px;
}

.detail-action {
  width: 100%;
  background: #08c;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.detail-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #8a91a9;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding: 5px;
  z-index: 10;
}

.detail-close:hover {
  color: #fff;
}

.profile-view {
  color: #fff;
  min-height: 100vh;
  padding: 40px 30px 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  overflow-y: auto;
  position: relative;
  z-index: 5;
}

.profile-card {
  background: #212121;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2)) !important;
}

.profile-main {
  display: flex;
  gap: 12px;
}

.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  transform: translateY(2px);
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5)) !important;
}

.profile-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.profile-handle {
  display: block;
  color: #3897f0;
  font-size: 14px;
}

.profile-meta {
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4)) !important;
}

.profile-metrics {
  text-align: left;
  font-size: 16px;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4)) !important;
}

.metric-row {
  margin-bottom: 8px;
  color: #8a8a8e;
  text-align: left;
  white-space: nowrap;
}

.metric-positive {
  color: #4cd964;
}

.metric-neutral {
  color: #fff;
}

.profile-trust-note {
  font-size: 12px;
  color: #8a8a8e;
  margin-bottom: 60px;
  transform: translate(25px);
}

.block-heading {
  font-size: 22px;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4)) !important;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 420px;
  margin: 0 auto;
  gap: 16px;
}

.collection-item {
  background: #212121;
  border-radius: 15px;
  overflow: hidden;
  padding-bottom: 11px;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2)) !important;
  cursor: pointer;
}

.collection-thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 8px;
  border-radius: 15px;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2)) !important;
}

.collection-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.collection-meta {
  padding: 0 12px;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.4)) !important;
}

.collection-label {
  font-size: 15px;
  font-weight: 609;
  margin-bottom: 4px;
}

.collection-index {
  font-size: 13px;
  font-weight: 600;
  color: #8a8a8e;
}

.collection-empty {
  color: #8a8a8e;
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 0;
}
