/* ══════════════════════════════
   DECK PREVIEW MODAL
   ══════════════════════════════ */

.deck-preview-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100001;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--gf-font);
  color: #ffffff;
  overflow: hidden;
}

.deck-preview-container {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 28px 16px;
  box-sizing: border-box;
}

.deck-preview-body-row {
  display: flex;
  flex-direction: row;
  /* 24px keeps the main preview at the design width (1465px → 824px tall on a 2048 canvas). */
  gap: 24px;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.deck-preview-container.is-investor-preview .deck-preview-workspace {
  width: 100%;
}

.deck-preview-container.is-investor-preview .verifiers-sidebar-col {
  display: none !important;
}

/* An investor reads a deck they were asked to verify, so this preview trades the shell's
   chrome for canvas: tighter frame, shallower rail, and the page keeps every pixel the 16:9
   slide can take at the window's height. */
.deck-preview-container.is-investor-preview {
  padding: 12px 16px;
  gap: 10px;
}

.deck-preview-container.is-investor-preview .preview-header {
  padding-bottom: 8px;
}

.deck-preview-container.is-investor-preview .deck-preview-workspace .slide-stage {
  padding: 6px 0 6px;
}

.deck-preview-container.is-investor-preview .tpl-thumbnails-container {
  padding: 4px 0 18px;
}

/* The 16:9 page can only grow taller by growing wider, so the investor preview reserves a taller
   stage for it. Nothing else moves: the rail, its cards and the header keep their sizes, and the
   frame scrolls only when that taller stage no longer fits the window. */
.deck-preview-container.is-investor-preview .deck-preview-workspace .slide-stage {
  min-height: min(70vh, 660px);
}

.deck-preview-backdrop:has(.deck-preview-container.is-investor-preview) {
  align-items: flex-start;
  overflow-y: auto;
}

/* ── LEFT: SLIDE VIEWER SECTION ── */
.deck-preview-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  /* Without this the visible-overflow workspace would grow to the carousel's
     content width instead of its fair share of the row. */
  min-width: 0;
  /* Visible so the page badge can float in the gap above the stage. */
  overflow: visible;
  box-sizing: border-box;
}

/* ── TOP HEADER BAR ── */
.preview-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 12px;
}

.preview-header .header-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.preview-header .close-preview-btn {
  width: 64px;
  height: 64px;
  /* Cap to the nav Create button height (42px) — keeps the round buttons on the app's scale. */
  max-width: 42px;
  max-height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.preview-header .close-preview-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}

.preview-header .title-group {
  display: flex;
  flex-direction: column;
}

.preview-header .deck-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-header .deck-title-text {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0;
}

.preview-header .verified-icon-svg {
  color: #2966f4;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.preview-header .deck-subtitle-text {
  font-size: var(--gf-text-caption);
  color: #98a2b3;
  margin: 2px 0 0 0;
  font-weight: var(--gf-weight-medium);
}

/* Header Action Buttons */
.preview-header .header-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-header .action-circle-btn {
  width: 56px;
  height: 56px;
  max-width: 42px;
  max-height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.preview-header .action-circle-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}

.preview-header .btn-request-verifiers {
  background: #2966f4;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 4px 12px rgba(41, 102, 244, 0.2);
}

.preview-header .btn-request-verifiers:hover {
  background: #2054cc;
  transform: translateY(-1px);
}

.preview-header .btn-verify-deck {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #2966f4;
  color: #fff;
  font: inherit;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  /* The label is one word and the icon sits beside it: never break the pill onto two lines. */
  white-space: nowrap;
  cursor: pointer;
}

.preview-header .btn-verify-deck span {
  white-space: nowrap;
}

.preview-header .btn-verify-deck:hover:not(:disabled) {
  background: #2054cc;
}

.preview-header .btn-verify-deck:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ── COMMENTS POPOVER ──
   The comment thread is a panel over the preview, not a modal of its own: an investor reads the
   deck and comments on it in the same breath, so the preview must not close underneath them. */
.preview-comments-panel {
  position: absolute;
  top: 76px;
  right: 28px;
  z-index: 40;
  /* Sized against the window, not the sheet, so the thread has room to breathe even when the
     deck has one comment: 460 wide and up to 520 tall, still clear of the viewport edges. */
  width: min(460px, calc(100vw - 40px));
  height: min(520px, calc(100vh - 130px));
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 64px -16px rgba(16, 24, 40, 0.28);
}

.preview-comments-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-comments-head-icon {
  display: inline-flex;
  color: #2966f4;
}

.preview-comments-head h3 {
  flex: 1;
  margin: 0;
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
}

.preview-comments-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #475467;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.preview-comments-close:hover {
  background: #e4e7ec;
}

.preview-comments-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 4px;
}

.preview-comments-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.preview-comments-row {
  display: flex;
  gap: 10px;
}

.preview-comments-row img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #f2f4f7;
}

.preview-comments-bubble {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f8f9fa;
}

.preview-comments-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.preview-comments-meta span {
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  font-weight: var(--gf-weight-semibold);
  color: #1b1f27;
}

.preview-comments-meta time {
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  color: #8a9099;
}

.preview-comments-bubble p {
  margin: 0;
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  color: #475467;
  overflow-wrap: anywhere;
}

.preview-comments-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-comments-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 18px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  font: inherit;
  font-size: var(--gf-text-caption);
  color: #101828;
  outline: none;
}

.preview-comments-form input:focus-visible {
  border-color: #2966f4;
}

.preview-comments-send {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #2966f4;
  color: #ffffff;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.preview-comments-send:hover:not(:disabled) {
  background: #2054cc;
}

.preview-comments-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── CENTER: ACTIVE SLIDE VIEW ── */
.deck-preview-workspace .slide-stage {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  width: 100%;
  /* Keep the slide close to the thumbnail rail while leaving room for its pager. */
  padding: 24px 0 8px;
  box-sizing: border-box;
  min-height: 0;
}

.deck-preview-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  font-size: var(--gf-text-body);
  background: rgba(14, 20, 34, 0.68);
}

.deck-preview-loading__spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: deck-preview-spin 800ms linear infinite;
}

@keyframes deck-preview-spin {
  to { transform: rotate(360deg); }
}

/* Rendered PowerPoint slide images fill the stage while preserving the source deck. */
.deck-preview-workspace .slide-stage > .deck-file-viewer__image {
  max-width: 100%;
  /* As wide as the stage allows (16:9 height follows) — the page and the
     thumbnail rail share the same left edge. */
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.deck-preview-workspace .slide-stage .tpl-page-badge {
  position: absolute;
  /* Floats up into the free gap above the stage (header padding + row gap),
     still 16px clear of the page top (page starts at stage top + 24). */
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
}

/* Flush-left, full-width carousel (design): the rail starts at the page's left edge. */
.deck-preview-workspace .tpl-thumbnails-container {
  max-width: none;
  width: 100%;
  margin: 0;
  gap: 12px;
  /* Room for the page-number circles that hang half out of the card bottoms. */
  padding: 8px 0 24px;
}

/* Larger 16:9 slide cards, with the main page aligned just above the rail. */
.deck-preview-workspace .tpl-thumb-btn {
  width: 196px;
  height: 110px;
  border-radius: 14px;
}

/* The inner page layer must scale the whole page down. The Alpine :style binding
   only sets background-image (it replaces the inline style attribute), so all
   sizing/fit lives here where it can never be wiped. */
.deck-preview-workspace .tpl-thumb-btn .template-thumb {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 8px;
  pointer-events: none;
  background-color: #ffffff;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.deck-preview-workspace .tpl-thumb-btn > .template-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  pointer-events: none;
}

/* Keep selection visible without overpowering the thumbnail artwork. */
.deck-preview-workspace .tpl-thumb-btn.active {
  border: 6px solid #2966f4;
  border-radius: 14px;
  box-sizing: border-box;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  transform: none;
}

/* Page numbers sit half outside each thumbnail, as in the reference. */
.deck-preview-workspace .tpl-thumb-badge {
  width: 42px;
  height: 42px;
  font-size: var(--gf-text-caption);
  top: auto;
  bottom: -21px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
}

.deck-preview-workspace .page-number-badge {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  color: #ffffff;
  letter-spacing: 0.5px;
  z-index: 10;
}

.deck-preview-workspace .active-slide-card {
  /* Template preview's rendered slide card — same page behaviour as the deck
     preview image: full stage width, bottom aligned, 28px corners. */
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 860 / 480;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  color: #0a0a0a;
  position: relative;
}

/* ── SLIDE CONTENT RENDERING ── */
.deck-preview-workspace .slide-wrapper {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Slide 1: Cover Card */
.slide-cover-style {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

.slide-cover-style .slide-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 0 32px;
}

.slide-cover-style .brand-name-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--gf-weight-semibold);
  font-size: var(--gf-text-body);
  color: #101828;
}

.slide-cover-style .brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #18a075;
}

.slide-cover-style .slide-badge-tag {
  background: #e8f5e9;
  color: #18a075;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  padding: 6px 14px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.slide-cover-style .slide-badge-count {
  background: #e8f5e9;
  color: #18a075;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  padding: 6px 14px;
  border-radius: 12px;
  margin-left: 8px;
  letter-spacing: 1px;
}

.slide-cover-style .slide-main-split {
  display: flex;
  flex: 1;
  padding: 12px 32px 0 32px;
}

.slide-cover-style .split-left {
  flex: 1.25;
  background: #18a075;
  color: white;
  padding: 48px 32px 32px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.slide-cover-style .split-left .round-tag {
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  letter-spacing: 2px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.slide-cover-style .split-left .main-headline {
  font-size: var(--gf-text-page);
  font-weight: var(--gf-weight-bold);
  line-height: var(--gf-leading-page);
  margin-bottom: 24px;
}

.slide-cover-style .split-left .subtext {
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  opacity: 0.9;
  margin-top: auto;
}

.slide-cover-style .split-right {
  flex: 0.75;
  padding: 0 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-cover-style .split-right .tam-pill {
  background: #e8f5e9;
  color: #064e3b;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  padding: 5px 12px;
  border-radius: 12px;
  align-self: flex-start;
  letter-spacing: 1px;
}

.slide-cover-style .split-right .tam-card {
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.slide-cover-style .split-right .tam-metric {
  font-size: var(--gf-text-page);
  font-weight: var(--gf-weight-bold);
  color: #18a075;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.slide-cover-style .split-right .tam-desc {
  font-size: var(--gf-text-caption);
  color: #667085;
  line-height: var(--gf-leading-caption);
}

.slide-cover-style .split-right .dashed-placeholder {
  border: 1px dashed #18a075;
  border-radius: 12px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--gf-text-caption);
  color: #18a075;
  font-weight: var(--gf-weight-semibold);
  letter-spacing: 2px;
}

.slide-cover-style .slide-footer-row {
  height: 48px;
  border-top: 1px solid #eef1f5;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--gf-text-caption);
  color: #475467;
}

/* Slide 2: Problem Card */
.slide-problem-style {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0b0e14;
  color: #ffffff;
  padding: 40px 48px;
  box-sizing: border-box;
  justify-content: space-between;
}

.slide-problem-style .topic-tag {
  color: #f04438;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  letter-spacing: 2px;
}

.slide-problem-style .main-title {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  line-height: var(--gf-leading-section);
  margin: 12px 0 0 0;
}

.slide-problem-style .problem-points {
  display: flex;
  gap: 24px;
  margin: 24px 0;
}

.slide-problem-style .point-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.slide-problem-style .point-box .icon {
  font-size: var(--gf-text-title-card);
  margin-bottom: 12px;
}

.slide-problem-style .point-box .title {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #ffffff;
  margin-bottom: 8px;
}

.slide-problem-style .point-box .desc {
  font-size: var(--gf-text-caption);
  color: #98a2b3;
  line-height: var(--gf-leading-caption);
}

.slide-problem-style .problem-footer {
  display: flex;
  justify-content: space-between;
  font-size: var(--gf-text-caption);
  color: #667085;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* Slide 3: Solution Card */
.slide-solution-style {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  color: #0a0a0a;
  padding: 40px 48px;
  box-sizing: border-box;
  justify-content: space-between;
}

.slide-solution-style .topic-tag {
  color: #2966f4;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  letter-spacing: 2px;
}

.slide-solution-style .main-title {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  line-height: var(--gf-leading-section);
  margin: 12px 0 0 0;
}

.slide-solution-style .solutions-grid {
  display: flex;
  gap: 24px;
  margin: 24px 0;
}

.slide-solution-style .solution-item {
  flex: 1;
  background: #f4f7ff;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  padding: 20px;
  border-top: 4px solid #2966f4;
}

.slide-solution-style .solution-item .title {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #1e1b4b;
  margin-bottom: 8px;
}

.slide-solution-style .solution-item .desc {
  font-size: var(--gf-text-caption);
  color: #475467;
  line-height: var(--gf-leading-caption);
}

.slide-solution-style .solution-footer {
  display: flex;
  justify-content: space-between;
  font-size: var(--gf-text-caption);
  color: #667085;
  border-top: 1px solid #eef1f5;
  padding-top: 16px;
}

/* Slide 4: Traction Card */
.slide-traction-style {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0a0a0c;
  color: #ffffff;
  padding: 40px 48px;
  box-sizing: border-box;
  justify-content: space-between;
}

.slide-traction-style .topic-tag {
  color: #10b981;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  letter-spacing: 2px;
}

.slide-traction-style .main-title {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  line-height: var(--gf-leading-section);
  margin: 12px 0 0 0;
}

.slide-traction-style .metrics-row {
  display: flex;
  gap: 24px;
  margin: 24px 0;
}

.slide-traction-style .metric-block {
  flex: 1;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1),
    rgba(16, 185, 129, 0.02)
  );
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.slide-traction-style .metric-block .num {
  font-size: var(--gf-text-page);
  font-weight: var(--gf-weight-bold);
  color: #10b981;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.slide-traction-style .metric-block .label {
  font-size: var(--gf-text-caption);
  color: #98a2b3;
  font-weight: var(--gf-weight-medium);
}

.slide-traction-style .traction-footer {
  display: flex;
  justify-content: space-between;
  font-size: var(--gf-text-caption);
  color: #667085;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* Slide 5: Market Opportunity Card */
.slide-market-style {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #faf6ed;
  color: #1c4022;
  padding: 40px 48px;
  box-sizing: border-box;
  justify-content: space-between;
}

.slide-market-style .topic-tag {
  color: #e28743;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  letter-spacing: 2px;
}

.slide-market-style .main-title {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  line-height: var(--gf-leading-section);
  margin: 12px 0 0 0;
  font-family: serif;
}

.slide-market-style .market-split {
  display: flex;
  gap: 32px;
  margin: 20px 0;
}

.slide-market-style .market-text {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-market-style .market-stat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
}

.slide-market-style .market-stat-row .metric {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: #e28743;
}

.slide-market-style .market-stat-row .detail {
  font-size: var(--gf-text-caption);
  color: #555555;
  line-height: var(--gf-leading-caption);
}

.slide-market-style .market-graph {
  flex: 0.8;
  border: 1px dashed #e28743;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--gf-text-caption);
  color: #e28743;
  font-weight: var(--gf-weight-semibold);
  letter-spacing: 2px;
  background: #ffffff;
}

.slide-market-style .market-footer {
  display: flex;
  justify-content: space-between;
  font-size: var(--gf-text-caption);
  color: #6e7c6e;
  border-top: 1px solid rgba(28, 64, 34, 0.1);
  padding-top: 16px;
}

/* Slide 6: Team Card */
.slide-team-style {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  color: #0a0a0a;
  padding: 40px 48px;
  box-sizing: border-box;
  justify-content: space-between;
}

.slide-team-style .topic-tag {
  color: #7a5af8;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  letter-spacing: 2px;
}

.slide-team-style .main-title {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  line-height: var(--gf-leading-section);
  margin: 12px 0 0 0;
}

.slide-team-style .team-row {
  display: flex;
  gap: 24px;
  margin: 20px 0;
}

.slide-team-style .team-card {
  flex: 1;
  background: #f9fafb;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.slide-team-style .team-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.slide-team-style .team-card .name {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  margin-bottom: 4px;
}

.slide-team-style .team-card .role {
  font-size: var(--gf-text-caption);
  color: #7a5af8;
  font-weight: var(--gf-weight-semibold);
  margin-bottom: 8px;
}

.slide-team-style .team-card .past {
  font-size: var(--gf-text-caption);
  color: #667085;
  line-height: var(--gf-leading-caption);
}

.slide-team-style .team-footer {
  display: flex;
  justify-content: space-between;
  font-size: var(--gf-text-caption);
  color: #667085;
  border-top: 1px solid #eef1f5;
  padding-top: 16px;
}

.deck-preview-workspace .thumbnails-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 8px 18px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.deck-preview-workspace .thumbnails-row::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.deck-preview-workspace .thumbnail-card {
  width: 110px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #ffffff;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition:
    border-color 160ms cubic-bezier(0.2, 0, 0, 1),
    transform 160ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.deck-preview-workspace .thumbnail-card:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.03);
}

.deck-preview-workspace .thumbnail-card.active {
  border-color: #2966f4;
  transform: scale(1.05);
}

.deck-preview-workspace .thumbnail-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1);
  border-radius: 6px;
}

.deck-preview-workspace .thumbnail-card.active .thumbnail-img-preview {
  opacity: 1;
}

/* thumbnail-scale-wrapper kept for legacy compat */
.deck-preview-workspace .thumbnail-scale-wrapper {
  display: none;
}

/* Clean mini-slide thumbnail preview */
.deck-preview-workspace .thumbnail-mini-slide {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.deck-preview-workspace .thumbnail-mini-label {
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}

/* Thumbnail Slide Number Badge Overlay */
.deck-preview-workspace .thumbnail-number-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  color: #ffffff;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
}

.deck-preview-workspace .thumbnail-number-badge.active {
  background: #2966f4;
}

.deck-preview-workspace .thumbnail-number-badge.inactive {
  background: #4b5563;
}

/* ── RIGHT: VERIFIERS SIDEBAR PANEL ── */
.deck-preview-container .verifiers-sidebar-col {
  width: 500px;
  min-width: 500px;
  background: #ffffff;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  color: #0a0a0a;
  overflow: hidden;
}

.deck-preview-container .verifiers-sidebar-col > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: inherit;
}

/* Desktop keeps a ≥500px rail; trim slightly on narrow laptops before the layout stacks */
@media (min-width: 821px) and (max-width: 1024px) {
  .deck-preview-container .verifiers-sidebar-col {
    width: 420px;
    min-width: 420px;
  }
}

/* Sidebar Title Row */
.verifiers-sidebar-col .sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verifiers-sidebar-col .sidebar-title-text {
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-bold);
  color: #0a0a0a;
  margin: 0;
}

.verifiers-sidebar-col .verifier-count-badge {
  background: #f2f4f7;
  color: #344054;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tabs Filtering Row — segmented pill tabs */
.verifiers-sidebar-col .sidebar-tabs-row {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
}

.verifiers-sidebar-col .tabs-left {
  display: flex;
  gap: 6px;
  align-items: center;
}

.verifiers-sidebar-col .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #475467;
  padding: 10px 18px;
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
  font-family: inherit;
}

.verifiers-sidebar-col .tab-btn:hover {
  background: #f5f7fa;
  color: #101828;
}

.verifiers-sidebar-col .tab-btn.active {
  background: #eaf0fe;
  color: #2966f4;
}

.verifiers-sidebar-col .tab-btn.active:hover {
  background: #eaf0fe;
  color: #2966f4;
}

.verifiers-sidebar-col .tab-btn .tab-count {
  font-weight: var(--gf-weight-semibold);
  color: #98a2b3;
}

.verifiers-sidebar-col .tab-btn.active .tab-count {
  color: #2966f4;
  opacity: 0.65;
}

.verifiers-sidebar-col .search-toggle-icon-btn {
  background: #f2f4f7;
  border: none;
  color: #344054;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border-radius: 50%;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.verifiers-sidebar-col .search-toggle-icon-btn:hover {
  background: #e9edf2;
  color: #101828;
}

/* Sidebar Search Box sliding drawer */
.verifiers-sidebar-col .sidebar-search-drawer {
  width: 100%;
  position: relative;
}

.verifiers-sidebar-col .sidebar-search-input {
  width: 100%;
  background: #f2f4f7;
  border: 1px solid #eef1f5;
  border-radius: 20px;
  padding: 10px 14px 10px 36px;
  font-size: var(--gf-text-caption);
  outline: none;
  font-family: inherit;
  color: #101828;
  box-sizing: border-box;
  transition:
    border-color 160ms cubic-bezier(0.2, 0, 0, 1),
    background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.verifiers-sidebar-col .sidebar-search-input:focus {
  border-color: #2966f4;
  background: #ffffff;
}

.my-deck-preview-shell .verifiers-sidebar-col .sidebar-search-input {
  min-height: 44px;
  padding: 10px 14px 10px 38px;
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
  line-height: var(--gf-leading-body);
  color: var(--dark, #101828);
}

.my-deck-preview-shell .verifiers-sidebar-col .sidebar-search-input::placeholder {
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
  color: var(--gray-400, #98a2b3);
  opacity: 1;
}

.my-deck-preview-shell .verifiers-sidebar-col .sidebar-search-input:focus-visible {
  border-color: var(--blue, #2966f4);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgb(41 102 244 / 14%);
}

.verifiers-sidebar-col .search-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #667085;
}

/* Verifiers Scrollable List */
.verifiers-sidebar-col .verifiers-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.verifiers-sidebar-col .verifiers-list-scroll::-webkit-scrollbar {
  width: 4px;
}

.verifiers-sidebar-col .verifiers-list-scroll::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 4px;
}

.verifiers-sidebar-col .verifier-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  position: relative;
}

.verifiers-sidebar-col .verifier-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.verifiers-sidebar-col .verifier-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #f2f4f7;
}

.verifiers-sidebar-col .verifier-name-text {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
}

.verifiers-sidebar-col .three-dot-menu-btn {
  background: transparent;
  border: none;
  color: #667085;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.verifiers-sidebar-col .three-dot-menu-btn:hover {
  background: #f2f4f7;
  color: #475467;
}

/* ── ABSOLUTE OPTION POPUP CONTEXT MENU ── */
.verifiers-sidebar-col .verifier-context-menu {
  position: absolute;
  right: 28px;
  top: 36px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0px 12px 16px -4px rgba(16, 24, 40, 0.08),
    0px 4px 6px -2px rgba(16, 24, 40, 0.03);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: contextFadeIn 0.15s ease-out;
}

@keyframes contextFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.verifiers-sidebar-col .context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #344054;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  width: 144px;
  box-sizing: border-box;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.verifiers-sidebar-col .context-menu-item:hover {
  background: #f2f4f7;
  color: #101828;
}

.verifiers-sidebar-col .context-menu-item svg {
  color: #475467;
  flex-shrink: 0;
}

.verifiers-sidebar-col .context-menu-item.danger-item {
  color: #f04438;
}

.verifiers-sidebar-col .context-menu-item.danger-item:hover {
  background: #fef3f2;
  color: #d92d20;
}

.verifiers-sidebar-col .context-menu-item.danger-item svg {
  color: #f04438;
}

/* ══════════════════════════════════════════════════════════════
   VERIFY DECK (REQUEST VERIFIERS) MODAL
   ══════════════════════════════════════════════════════════════ */

.verify-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200005;
  background: rgba(15, 18, 25, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gf-font);
}

.verify-modal-container {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  padding: 24px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: verifyModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes verifyModalIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.verify-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.verify-modal-header h2 {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
  color: #101828;
  margin: 0;
}

.verify-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2f4f7;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.verify-modal-close-btn:hover {
  background: #e9edf2;
  color: #101828;
}

/* Deck info card snippet */
.verify-deck-snippet {
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.verify-deck-preview-thumb-box {
  width: 160px;
  height: 120px;
  position: relative;
  flex-shrink: 0;
  background: transparent;
  border: none;
}

/* The shared deck-card-top component, scaled into the thumb box */
.verify-deck-preview-thumb-box .deck-card-top {
  width: 320px;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}

/* Badge overlay inside verifier request preview modal */
.verify-deck-preview-thumb-box .badge-group {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  z-index: 10;
  gap: 0 !important;
}

.verify-deck-preview-thumb-box .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 12px 16px -4px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 12;
  flex-shrink: 0;
}

.verify-deck-preview-thumb-box .badge-icon.verified {
  background: #2966f4;
  color: #fff;
}

.verify-deck-preview-thumb-box .badge-pill {
  height: 28px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 18px;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #fff;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
  margin-left: -10px;
  z-index: 11;
  position: relative;
  flex-shrink: 0;
}

.verify-deck-preview-thumb-box .badge-pill.verified {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.verify-deck-meta {
  min-width: 0;
  flex: 1;
}

.verify-deck-meta h3 {
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  margin: 0 0 4px 0;
  line-height: var(--gf-leading-card);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.verify-deck-meta p {
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  color: #667085;
  margin: 0;
}

/* share to verifiers heading */
.verify-share-label {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
  margin: 4px 0 0 0;
}

/* search bar */
.verify-search-container {
  position: relative;
}

.verify-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #667085;
  display: flex;
  align-items: center;
}

.verify-search-input {
  width: 100%;
  background: #f2f4f7;
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 11px 16px 11px 44px;
  font-size: var(--gf-text-body);
  color: #101828;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    border-color 160ms cubic-bezier(0.2, 0, 0, 1);
}

.verify-search-input:focus {
  background: #ffffff;
  border-color: #2966f4;
}

/* verifiers list */
.verify-list-scroll {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.verify-list-scroll::-webkit-scrollbar {
  width: 4px;
}

.verify-list-scroll::-webkit-scrollbar-thumb {
  background: #eef1f5;
  border-radius: 4px;
}

.verify-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.verify-user-row.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.verify-user-row.is-disabled:hover .verify-checkbox {
  border-color: #eef1f5;
}

.verify-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Gamified badge avatars */
.verify-gamified-avatar {
  width: 48px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verify-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.verify-gamified-avatar.gold .verify-avatar-ring {
  border-color: #fdb836;
  background: linear-gradient(135deg, #fffca8 0%, #fdb836 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.verify-gamified-avatar.silver .verify-avatar-ring {
  border-color: #98a2b3;
  background: linear-gradient(135deg, #f2f4f7 0%, #98a2b3 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.verify-gamified-avatar.blue .verify-avatar-ring {
  border-color: #2966f4;
  background: linear-gradient(135deg, #b4daff 0%, #2966f4 100%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.verify-user-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  z-index: 1;
}

.verify-badge-star {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fdb836;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  border: 1.5px solid #ffffff;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.verify-gamified-avatar.blue .verify-badge-star {
  background: #2966f4;
}

.verify-gamified-avatar.silver .verify-badge-star {
  background: #98a2b3;
}

.verify-user-name-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.verify-user-name {
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  color: #101828;
}

.verify-user-role {
  font-size: var(--gf-text-caption);
  color: #667085;
}

/* Custom checkbox */
.verify-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #eef1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 160ms cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
}

.verify-user-row:hover .verify-checkbox {
  border-color: #2966f4;
}

.verify-checkbox.checked {
  background: #2966f4;
  border-color: #2966f4;
  color: #ffffff;
}

.verify-checkbox svg {
  opacity: 0;
  transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1);
  color: #ffffff;
}

.verify-checkbox.checked svg {
  opacity: 1;
}

.verify-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #eef1f5;
  padding-top: 20px;
  margin-top: 8px;
}

.verify-modal-btn-cancel {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  color: #344054;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  border-radius: 100px;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.verify-modal-btn-cancel:hover {
  background: #f9fafb;
}

.verify-modal-btn-action {
  padding: 10px 24px;
  background: #2966f4;
  border: none;
  color: #ffffff;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(41, 102, 244, 0.24);
  transition:
    background 160ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms cubic-bezier(0.2, 0, 0, 1);
}

.verify-modal-btn-action:hover {
  background: #2054cc;
  box-shadow: 0 6px 16px rgba(41, 102, 244, 0.32);
}

.verify-modal-btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deck-verification-checkout-preview {
  overflow: hidden;
  background: #f8fafc;
}

/* The shared deck-card-top component, scaled into the preview box */
.deck-verification-checkout-preview .deck-card-top {
  width: 396px;
  transform: scale(0.5808);
  transform-origin: top left;
  pointer-events: none;
}

.deck-verification-checkout-people {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.deck-verification-checkout-people img,
.deck-verification-checkout-people > span {
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

.deck-verification-checkout-people img:first-child {
  margin-left: 0;
}

.deck-verification-checkout-people > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff4ff;
  color: #2054cc;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
}

.deck-verification-payment-summary {
  display: flex;
  flex-direction: column;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  overflow: hidden;
}

.deck-verification-payment-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid #eaecf0;
  color: #475467;
  font-size: var(--gf-text-body);
}

.deck-verification-payment-summary > div:last-child {
  border-bottom: 0;
}

.deck-verification-payment-summary strong {
  color: #101828;
  font-weight: var(--gf-weight-semibold);
  text-align: right;
}

.deck-verification-payment-summary .is-total {
  background: #f9fafb;
  color: #101828;
}

.deck-verification-payment-note {
  margin: 0;
  color: #667085;
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
}

.deck-verification-checkout .tut-checkout-btn-continue {
  width: 100%;
}

.deck-verifier-picker {
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
}

.deck-verifier-picker .verify-modal-header > div:first-child {
  min-width: 0;
}

.deck-verifier-picker .verify-modal-header p {
  margin: 4px 0 0;
  color: #667085;
  font-size: var(--gf-text-body);
}

.deck-verifier-picker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.deck-verifier-picker-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 82px;
  padding: 10px 14px 10px 10px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms cubic-bezier(0.2, 0, 0, 1),
    background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.deck-verifier-picker-item:hover {
  border-color: #84adff;
  background: #f9fbff;
}

.deck-verifier-picker-cover {
  display: block;
  width: 96px;
  height: 60px;
  overflow: hidden;
}

/* The shared deck-card-top component, scaled into the row thumb */
.deck-verifier-picker-cover .deck-card-top {
  width: 396px;
  transform: scale(0.2424);
  transform-origin: top left;
  pointer-events: none;
}

.deck-verifier-picker-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.deck-verifier-picker-copy strong,
.deck-verifier-picker-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-verifier-picker-copy strong {
  color: #101828;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
}

.deck-verifier-picker-copy small {
  color: #667085;
  font-size: var(--gf-text-caption);
}

.deck-verifier-picker-item > svg {
  width: 20px;
  height: 20px;
  color: #98a2b3;
}

@media (max-width: 520px) {
  .deck-verifier-picker-list {
    padding: 16px;
  }

  .deck-verifier-picker-item {
    grid-template-columns: 72px minmax(0, 1fr) 18px;
    gap: 12px;
  }

  .deck-verifier-picker-cover {
    width: 72px;
    height: 48px;
  }
}

.deck-file-viewer__cover-fallback {
  width: min(100%, 960px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.deck-file-viewer__cover-fallback .deck-file-viewer__image {
  max-height: min(68vh, 620px);
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.deck-file-viewer__cover-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #98a2b3;
  font-size: var(--gf-text-caption);
}

/* Keep the no-file message legible over the dark deck-preview backdrop only. */
.deck-preview-workspace .deck-preview-empty-state .gf-empty-state__title,
.deck-preview-workspace .deck-preview-empty-state .gf-empty-state__description {
  color: #ffffff;
}

.deck-file-viewer__download {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  background: #2966f4;
  color: #ffffff;
  font: inherit;
  font-weight: var(--gf-weight-semibold);
  cursor: pointer;
}

@media (max-width: 820px) {
  .deck-preview-container {
    padding: 12px;
    gap: 12px;
  }
  .deck-preview-body-row {
    flex-direction: column;
    gap: 12px;
    overflow: auto;
  }
  .deck-preview-workspace {
    min-height: 48vh;
    flex: 0 0 48vh;
  }
  .deck-preview-container .verifiers-sidebar-col {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    min-height: 280px;
    max-height: 42vh;
  }
  .deck-preview-container.is-investor-preview .deck-preview-workspace {
    flex: 0 0 100%;
    min-height: 72vh;
  }
  .preview-header {
    align-items: flex-start;
    gap: 10px;
  }
  .preview-header .header-right-group {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
  .preview-header .deck-title-text {
    font-size: var(--gf-text-body);
  }
  .btn-request-verifiers {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .deck-preview-container {
    padding: 8px;
  }
  .preview-header .header-left-group {
    gap: 8px;
    min-width: 0;
  }
  .preview-header .title-group {
    min-width: 0;
  }
  .preview-header .deck-title-text {
    overflow-wrap: anywhere;
  }
  .preview-header .close-preview-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .preview-header .header-right-group .action-circle-btn {
    width: 36px;
    height: 36px;
  }
  .deck-preview-workspace {
    min-height: 42vh;
    flex-basis: 42vh;
  }
}


/* Shared preview-rail tabs — match the preview header action height. */
.deck-preview-container .sidebar-tabs-row {
  display: flex;
  background: #f2f4f7;
  border-radius: 999px;
  padding: 4px;
  min-height: 52px;
  box-sizing: border-box;
}

.deck-preview-container .sidebar-tabs-row .tabs-left {
  display: flex;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.deck-preview-container .sidebar-tabs-row .tab-btn {
  flex: 1;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 999px;
  color: #667085;
  font-size: var(--gf-text-body);
  white-space: nowrap;
}

.deck-preview-container .sidebar-tabs-row .tab-btn:hover {
  background: transparent;
  color: #101828;
}

.deck-preview-container .sidebar-tabs-row .tab-btn.active,
.deck-preview-container .sidebar-tabs-row .tab-btn.active:hover {
  background: #ffffff;
  color: #101828;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.deck-preview-container .sidebar-tabs-row .tab-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

/* The My Decks verifier rail uses the legacy pale-blue selected pill. */
.deck-preview-container.my-deck-preview-shell .sidebar-tabs-row {
  background: transparent;
  padding: 0;
  min-height: 44px;
}

.deck-preview-container.my-deck-preview-shell .sidebar-tabs-row .tabs-left {
  gap: 6px;
}

.deck-preview-container.my-deck-preview-shell .sidebar-tabs-row .tab-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 18px;
  color: #475467;
}

.deck-preview-container.my-deck-preview-shell .sidebar-tabs-row .tab-btn:hover {
  background: #f5f7fa;
  color: #101828;
}

.deck-preview-container.my-deck-preview-shell .sidebar-tabs-row .tab-btn.active,
.deck-preview-container.my-deck-preview-shell .sidebar-tabs-row .tab-btn.active:hover {
  background: #eaf0fe;
  color: #2966f4;
  box-shadow: none;
}

.deck-preview-container.my-deck-preview-shell .sidebar-tabs-row .tab-btn.active .tab-count {
  color: #2966f4;
  opacity: 0.65;
}

.deck-preview-container.tpl-preview-shell .verifier-row-item {
  padding: 12px 0;
}

.deck-preview-container.tpl-preview-shell .verifier-avatar-img {
  width: 56px;
  height: 56px;
}

.deck-preview-container.tpl-preview-shell .search-toggle-icon-btn {
  width: 42px;
  height: 42px;
}

.deck-purchase-confirmation {
  position: relative;
  width: min(1048px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(16, 24, 40, 0.24);
  color: #101828;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
  line-height: 1.5;
}

.deck-purchase-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.deck-purchase-copy,
.deck-purchase-summary {
  padding: 40px;
}

.deck-purchase-summary {
  display: flex;
  flex-direction: column;
}

.deck-purchase-copy {
  background: #eef2ff;
}

.deck-purchase-eyebrow {
  color: #2966f4;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deck-purchase-copy h2 {
  margin: 10px 40px 8px 0;
  font-size: var(--gf-text-section);
  line-height: 1.2;
}

.deck-purchase-copy > p,
.deck-purchase-summary > p {
  color: #667085;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
  line-height: 1.5;
}

.deck-purchase-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.deck-purchase-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #f2f4f7;
}

.deck-purchase-cover .folder-stack {
  display: block;
  width: 100%;
  height: 100%;
}

.deck-purchase-cover .folder-tab-1,
.deck-purchase-cover .folder-tab-2 {
  display: none;
}

.deck-purchase-cover .preview {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: inherit;
  box-shadow: none;
}

.deck-purchase-cover > * {
  width: 100%;
  height: 100%;
}

.deck-purchase-cover .preview-inner,
.deck-purchase-cover .preview-inner img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.deck-purchase-item-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
}

.deck-purchase-item strong,
.deck-purchase-item span {
  display: block;
}

.deck-purchase-item strong {
  overflow-wrap: anywhere;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
}

.deck-purchase-item .deck-purchase-owner {
  grid-column: 1;
  margin: 0;
  color: #667085;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
}

.deck-purchase-item .deck-purchase-owner span { display: inline; }

.deck-purchase-item .deck-purchase-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  padding: 3px 10px;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  white-space: nowrap;
}

.deck-purchase-item .deck-purchase-premium > span {
  display: inline;
}

.deck-purchase-premium-lock {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  display: block;
}

.deck-purchase-benefits { margin-top: 20px; }

.deck-purchase-benefits h3 {
  margin: 0 0 8px;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
}

.deck-purchase-benefits ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deck-purchase-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
}

.deck-purchase-benefits li > span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  background: #e2eaff;
  color: #2966f4;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
}

.deck-purchase-summary h3 {
  margin: 0 48px 36px 0;
  font-size: var(--gf-text-title-card);
  font-weight: var(--gf-weight-semibold);
}

.deck-purchase-summary > div:not(.deck-purchase-actions):not(.deck-purchase-wallet):not(.deck-purchase-total) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eaecf0;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
}

.deck-purchase-summary > div:not(.deck-purchase-actions):not(.deck-purchase-wallet):not(.deck-purchase-total) > span {
  color: #667085;
}

.deck-purchase-summary > div strong {
  text-align: right;
  overflow-wrap: anywhere;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
}

.deck-purchase-summary > div.deck-purchase-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: var(--gf-text-body);
}

.deck-purchase-summary .deck-purchase-total strong {
  font-size: var(--gf-text-section);
  font-weight: var(--gf-weight-bold);
}

.deck-purchase-summary > p {
  margin: 14px 0 0;
}

.deck-purchase-free {
  color: #027a48;
}

.deck-purchase-wallet {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid #d6e1ff;
  border-radius: 16px;
  background: #eaf0ff;
}

.deck-purchase-wallet-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: #416cf4;
  color: #fff;
}

.deck-purchase-wallet-icon svg { width: 24px; height: 24px; }

.deck-purchase-wallet-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  text-align: left;
}

.deck-purchase-wallet-copy strong,
.deck-purchase-wallet-copy > span {
  overflow-wrap: anywhere;
  font-size: var(--gf-text-body);
  line-height: 1.35;
}

.deck-purchase-wallet-copy strong { font-weight: var(--gf-weight-semibold); }
.deck-purchase-wallet-copy > span { color: #475467; font-weight: var(--gf-weight-regular); }

/* The row rule above right-aligns every value; the wallet title reads with the balance
   underneath it, so it stays left. */
.deck-purchase-summary .deck-purchase-wallet-copy strong {
  text-align: left;
}

.deck-purchase-recommended {
  align-self: start;
  padding: 4px 10px;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  background: #fff;
  color: #315eef;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  white-space: nowrap;
}

.deck-purchase-balance-after {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #ccdaf8;
  font-size: var(--gf-text-body);
}

.deck-purchase-balance-after > span { color: #475467; }
.deck-purchase-balance-after strong { font-weight: var(--gf-weight-semibold); }

.deck-purchase-summary > p {
  color: #667085;
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-regular);
}

.deck-purchase-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.deck-purchase-actions button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}

.deck-purchase-cancel { min-width: 84px; }
.deck-purchase-confirm { min-width: 160px; box-shadow: 0 8px 18px rgba(41, 102, 244, 0.22); }

.deck-purchase-actions button:disabled,
.deck-purchase-close:disabled {
  cursor: wait;
  opacity: 0.65;
}

.deck-purchase-cancel {
  background: #f2f4f7;
  color: #344054;
}

.deck-purchase-confirm {
  background: #2966f4;
  color: #fff;
}

.deck-purchase-close {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef0f4;
  color: #344054;
  font-size: var(--gf-text-title-card);
  cursor: pointer;
}

@media (max-width: 900px) {
  .deck-purchase-confirmation {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .deck-purchase-content {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }

  .deck-purchase-copy,
  .deck-purchase-summary {
    padding: 24px;
  }

  .deck-purchase-actions { margin-top: 12px; }

  .deck-purchase-copy h2 { font-size: var(--gf-text-title-card); }

  .deck-purchase-wallet { grid-template-columns: 44px minmax(0, 1fr); }

  .deck-purchase-recommended { grid-column: 2; justify-self: start; }

  .deck-purchase-balance-after { grid-column: 1 / -1; }

  .deck-purchase-actions button {
    flex: 1;
  }
}
