/* MintMark graded slab — plastic casing + bottom label overlay */

.mobile-card--slabbed {
  display: flex;
  flex-direction: column;
  aspect-ratio: 5 / 7.75;
  padding: 5px;
  border: 2px solid #101010;
  border-radius: 9px;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.74) 0%,
      rgba(228, 240, 255, 0.42) 20%,
      rgba(186, 212, 244, 0.24) 48%,
      rgba(210, 228, 250, 0.34) 78%,
      rgba(255, 255, 255, 0.62) 100%
    );
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 2px 0 5px rgba(255, 255, 255, 0.28),
    inset -2px 0 5px rgba(0, 0, 0, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.mobile-card-flippable.mobile-card--slabbed {
  padding: 0;
  border: none;
  background: none;
  aspect-ratio: 5 / 7.75;
  border-radius: 9px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.mobile-card-flippable.mobile-card--slabbed.is-flipping {
  box-shadow: none;
}

.mobile-card-flippable.mobile-card--slabbed .mobile-card-slab-chrome {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 5px;
  border: 2px solid #101010;
  border-radius: 9px;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.74) 0%,
      rgba(228, 240, 255, 0.42) 20%,
      rgba(186, 212, 244, 0.24) 48%,
      rgba(210, 228, 250, 0.34) 78%,
      rgba(255, 255, 255, 0.62) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 2px 0 5px rgba(255, 255, 255, 0.28),
    inset -2px 0 5px rgba(0, 0, 0, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
}

.mobile-card-flippable.mobile-card--slabbed .mobile-card-slab-chrome .mobile-card-slab-case {
  position: absolute;
  inset: 5px 7px;
  margin: 0;
  padding: 4px;
}

.mobile-card-flippable.mobile-card--slabbed .mobile-card-face > .mobile-card-bezel {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 11px;
  bottom: 9px;
  left: 11px;
  width: auto;
  height: auto;
}

.mobile-card--slabbed .mobile-card-slab {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.mobile-card--slabbed .mobile-card-slab-case {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 2px;
  padding: 4px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
  box-shadow:
    inset 0 2px 7px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.mobile-card--slabbed .mobile-card-slab-well {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  isolation: isolate;
}

.mobile-card--slabbed .mobile-card-frame,
.mobile-card--slabbed .mobile-card-inner {
  flex: 1;
  width: 100%;
  min-height: 0;
}

.mobile-card--slabbed .mobile-card-frame {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.mobile-card--slabbed .mobile-card-meta {
  visibility: hidden;
}

.mobile-card--slabbed .mobile-card-slab-label,
.mobile-card--slabbed .mobile-card-slab-label * {
  font-family: "Times New Roman", Times, serif;
  font-style: normal;
}

.mobile-card--slabbed .mobile-card-slab-label {
  position: absolute;
  z-index: 8;
  display: flex;
  flex-direction: column;
  border: 1.5px solid #101010;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.97) 0%, rgba(232, 232, 232, 0.96) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 2px 6px rgba(0, 0, 0, 0.28);
  text-rendering: geometricPrecision;
  pointer-events: none;
}

.mobile-card--slabbed .mobile-card-slab-label-brand {
  flex: 0 0 auto;
  padding: 5px 8px;
  background: linear-gradient(180deg, #1e4a8c 0%, #0f2347 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  -webkit-text-stroke: var(--ink-trim-stroke, 0.45px) #000;
  text-shadow: var(--ink-trim-shadow, 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000);
  paint-order: stroke fill;
}

.mobile-card--slabbed .mobile-card-slab-label-grid {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 0;
  padding: 6px 8px 8px;
}

.mobile-card--slabbed .mobile-card-slab-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: #101010;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0;
  text-shadow: none;
  paint-order: normal;
}

.mobile-card--slabbed .mobile-card-slab-label-name,
.mobile-card--slabbed .mobile-card-slab-label-grade {
  flex: 1 1 52%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.mobile-card--slabbed .mobile-card-slab-label-set,
.mobile-card--slabbed .mobile-card-slab-label-id {
  flex: 0 1 48%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.mobile-card--slabbed .mobile-card-slab-label-grade {
  font-variant-numeric: tabular-nums;
}

/* Table / grid view — compact sticker: blue brand bar + grade on white */
.mobile-card-slab-label--table {
  background: #fff;
}

.mobile-card--slab-table .mobile-card-meta {
  display: none;
}

.mobile-card-slab-label--table .mobile-card-slab-label-brand {
  flex: 0 0 auto;
  padding: 3px 5px;
  font-size: 5.5px;
  letter-spacing: 0.12em;
  line-height: 1;
}

.mobile-card-slab-label--table .mobile-card-slab-label-table-body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 3px 5px 4px;
  background: #fff;
}

.mobile-card-slab-label--table .mobile-card-slab-label-table-grade {
  color: #101010;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.mobile-card-slab-label-grade--ungraded,
.mobile-card-slab-label--table .mobile-card-slab-label-table-grade.mobile-card-slab-label-grade--ungraded {
  color: #c62828;
  opacity: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.mobile-card--slabbed .mobile-card-slab-veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: 6px;
  pointer-events: none;
  background:
    linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.05) 24%,
      rgba(196, 220, 255, 0.04) 50%,
      rgba(255, 255, 255, 0.08) 76%,
      rgba(255, 255, 255, 0.16) 100%
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(0.45px) brightness(1.04) saturate(1.06);
  -webkit-backdrop-filter: blur(0.45px) brightness(1.04) saturate(1.06);
}

.mobile-card--slabbed .mobile-card-slab-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.08) 14%,
      transparent 34%,
      transparent 100%
    );
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

.mobile-card--slabbed .mobile-card-slab-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.45) 0%,
      rgba(255, 255, 255, 0.14) 16%,
      transparent 40%,
      transparent 66%,
      rgba(255, 255, 255, 0.1) 84%,
      rgba(255, 255, 255, 0.24) 100%
    );
  mix-blend-mode: screen;
  opacity: 0.7;
}

.mobile-card-flippable .mobile-card-front > .mobile-card-slab-veil,
.mobile-card-flippable .mobile-card-front > .mobile-card-slab-label {
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
}

.mobile-card--slabbed .mobile-card-mintmark-sticker {
  display: none !important;
}

/* Card detail view — larger slab label type */
.card-view-stage .mobile-card--slabbed .mobile-card-slab-label-brand {
  padding: 6px 10px;
  font-size: 11px;
}

.card-view-stage .mobile-card--slabbed .mobile-card-slab-label-grid {
  padding: 8px 10px 10px;
  gap: 6px;
}

.card-view-stage .mobile-card--slabbed .mobile-card-slab-label-row {
  font-size: 11px;
}

/* My Shop job tiles — tiny slab labels */
.myshop-job-tile-preview .mobile-card--slabbed {
  aspect-ratio: auto;
  height: 100%;
  padding: 2px;
  border-width: 2px;
  border-radius: 8px;
}

.myshop-job-tile-preview .mobile-card--slabbed .mobile-card-slab-case {
  margin: 0;
  padding: 2px;
}

.myshop-job-tile-preview .mobile-card--slabbed .mobile-card-slab-label-brand {
  padding: 2px 4px;
  font-size: 5px;
  letter-spacing: 0.12em;
}

.myshop-job-tile-preview .mobile-card--slabbed .mobile-card-slab-label-grid {
  gap: 2px;
  padding: 3px 4px 4px;
}

.myshop-job-tile-preview .mobile-card--slabbed .mobile-card-slab-label-row {
  font-size: 5px;
  gap: 4px;
}

/* Auction market grid — compact slab shows MMS score only */
.auction-grid .mobile-card--slab-table .mobile-card-slab-label--table {
  border-width: 1px;
  border-radius: 2px;
}

.auction-grid .mobile-card--slab-table .mobile-card-slab-label--table .mobile-card-slab-label-brand {
  padding: 2px 4px;
  font-size: 6px;
}

.auction-grid .mobile-card--slab-table .mobile-card-slab-label--table .mobile-card-slab-label-table-body {
  padding: 2px 4px 3px;
}

.auction-grid .mobile-card--slab-table .mobile-card-slab-label--table .mobile-card-slab-label-table-grade {
  font-size: 11px;
}
