/* ═══════════════════════════════════════════════════════════════
   TRUST PAGE V2 — IG-Native Layout
   Instagram-profile-style trust page with story-driven flow
   Uses: --accent-gold, --glass-bg, --glass-border,
         --text-primary, --text-muted, --bg-primary
   Light theme: [data-theme="light"]
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   1. IG PROFILE HEADER
   ═══════════════════════════════════════════ */
.trust-page {
  padding-bottom: 80px; /* Space for sticky CTA */
}

.tp-profile-header {
  padding: 24px 16px 16px;
  text-align: center;
}

.tp-profile-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
}

/* Avatar with animated gradient ring */
.tp-avatar-wrap {
  flex-shrink: 0;
}

.tp-avatar-ring {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-gold, #D4AF37), #F2D574, var(--accent-gold, #D4AF37));
  background-size: 200% 200%;
  animation: tp-ring-shimmer 3s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes tp-ring-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tp-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-primary, #121212);
}

/* Stats row (IG-style) */
.tp-stats-row {
  display: flex;
  gap: 24px;
}

.tp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tp-stat-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  font-variant-numeric: tabular-nums;
}

.tp-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted, #a0a0a0);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Verified badge */
.tp-verified-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 4px;
  color: #3897f0;
  font-size: 1rem;
  line-height: 1;
}

.tp-verified-badge svg {
  width: 16px;
  height: 16px;
  fill: #3897f0;
}

/* Bio section */
.tp-profile-bio {
  margin-bottom: 14px;
}

.tp-profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text-primary, #fff);
  margin: 0 0 4px;
  font-weight: 600;
}

.tp-profile-tagline {
  font-size: 0.78rem;
  color: var(--text-muted, #a0a0a0);
  margin: 0;
  letter-spacing: 0.3px;
}

/* Header CTA Button */
.tp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tp-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}


/* ═══════════════════════════════════════════
   2. IG HIGHLIGHT STORIES BAR
   ═══════════════════════════════════════════ */
.tp-stories-bar {
  border-top: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  padding: 14px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tp-stories-bar::-webkit-scrollbar {
  display: none;
}

.tp-stories-scroll {
  display: inline-flex;
  padding: 0 16px;
  gap: 16px;
  align-items: flex-start;
  min-width: 100%;
}

.tp-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.2s;
  width: 68px;
  flex-shrink: 0;
}

.tp-story:hover {
  opacity: 0.8;
}

.tp-story-active {
  opacity: 1 !important;
  transform: scale(1.05);
}

/* Story ring */
.tp-story-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.tp-story-active .tp-story-ring {
  border-color: var(--accent-gold, #D4AF37);
}

/* Frosted glass circle inside story ring */
.tp-story-frost {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tp-story-month {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1;
}

.tp-story-year {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
  font-weight: 500;
}

/* Keep thumb support for backward compat */
.tp-story-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}

/* Newest month gets animated red ring */
.tp-story-newest {
  border-color: #ff3040 !important;
  animation: tp-newest-pulse 2s infinite;
}

@keyframes tp-newest-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 48, 64, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 48, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 48, 64, 0); }
}

.tp-story-label {
  font-size: 0.68rem;
  color: var(--text-primary, #fff);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tp-story-count {
  font-size: 0.6rem;
  color: var(--text-muted, #888);
  font-variant-numeric: tabular-nums;
}


/* ═══════════════════════════════════════════
   3. SECTION HEADINGS (centered gold)
   ═══════════════════════════════════════════ */
.tp-content {
  padding: 0 0 20px;
}

.tp-section {
  padding: 20px 16px;
}

/* Heading with decorative lines */
.tp-section-heading-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.tp-heading-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold, #D4AF37), transparent);
  opacity: 0.35;
}

.tp-section-heading {
  text-align: center;
  color: var(--accent-gold, #D4AF37);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.tp-section-heading-icon {
  margin-right: 6px;
  font-style: normal;
}

/* Context text below heading */
.tp-section-context {
  font-size: 0.72rem;
  color: var(--text-muted, #a0a0a0);
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.5;
  padding: 0 8px;
}

/* Divider between featured and grid */
.tp-section-divider {
  height: 1px;
  background: var(--glass-border, rgba(255,255,255,0.08));
  margin: 16px 0;
}

.tp-section-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #a0a0a0);
  margin: 2px 0 16px;
  text-align: center;
}

/* Legacy section header — flex row (backward compat) */
.tp-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tp-section-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tp-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--accent-gold, #D4AF37);
  margin: 0;
  font-weight: 600;
}

.tp-section-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  background: var(--glass-bg, rgba(30,30,30,0.6));
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  font-variant-numeric: tabular-nums;
}


/* ═══════════════════════════════════════════
   4. PAYMENT GRID WITH OVERLAYS
   ═══════════════════════════════════════════ */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.tp-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  transition: opacity 0.2s;
}

.tp-grid-item:hover {
  opacity: 0.85;
}

.tp-grid-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Payment amount overlay — green pill top-left */
.tp-payment-amount {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #22c55e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 5;
  letter-spacing: 0.3px;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Payment tag overlay — green "PAID" pill bottom-left */
.tp-payment-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: #22c55e;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  z-index: 5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Video play icon overlay */
.tp-video-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6rem;
  pointer-events: none;
}

/* NEW badge on grid items */
.tp-new-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, var(--accent-gold, #D4AF37), #F2D574);
  color: #000;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 5;
  letter-spacing: 0.5px;
}


/* ═══════════════════════════════════════════
   5. FEATURED DELIVERY CARDS (2-column, BIG)
   ═══════════════════════════════════════════ */
.tp-delivery-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tp-delivery-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-bg, rgba(30,30,30,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.tp-delivery-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold, #D4AF37);
}

.tp-delivery-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #111;
}

.tp-delivery-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* "DELIVERED" badge overlaid on delivery image — PURPLE */
.tp-delivery-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(124, 58, 237, 0.85);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 5;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tp-delivery-meta {
  padding: 10px 12px;
}

.tp-delivery-carrier {
  font-size: 0.6rem;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 3px;
}

.tp-delivery-route {
  font-size: 0.82rem;
  color: var(--text-primary, #fff);
  font-weight: 500;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-delivery-date {
  font-size: 0.68rem;
  color: var(--text-muted, #a0a0a0);
  letter-spacing: 0.2px;
}

/* Flag tag on grid delivery items — DEFAULT */
.tp-flag-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
}

/* PURPLE flag tag for ALL delivery items */
.tp-flag-tag-purple {
  background: rgba(124, 58, 237, 0.85);
  color: #fff;
}

/* ═══════════════════════════════════════════
   5b. FEATURED 2-COL GRID (static, shows only 2 cards)
   ═══════════════════════════════════════════ */
.tp-featured-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.tp-featured-card {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-bg, rgba(30,30,30,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  min-width: 0;
}

.tp-featured-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold, #D4AF37);
}

.tp-featured-img-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: #111;
}

.tp-featured-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Featured badge overlays */
.tp-featured-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 5;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tp-featured-badge-green {
  background: rgba(34, 197, 94, 0.85);
  color: #fff;
}

.tp-featured-badge-purple {
  background: rgba(124, 58, 237, 0.85);
  color: #fff;
}

/* Featured card metadata */
.tp-featured-card-meta {
  padding: 10px 12px;
}

.tp-featured-amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: #22c55e;
  display: block;
  line-height: 1.2;
}

.tp-featured-status {
  font-size: 0.65rem;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp-featured-carrier {
  font-size: 0.6rem;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 3px;
}

.tp-featured-route {
  font-size: 0.82rem;
  color: var(--text-primary, #fff);
  font-weight: 500;
  margin-bottom: 3px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-featured-date {
  font-size: 0.68rem;
  color: var(--text-muted, #a0a0a0);
  cursor: pointer;
  display: block;
}

/* Legacy featured strip (backward compat) */
.tp-featured-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tp-featured-strip::-webkit-scrollbar {
  display: none;
}

.tp-featured-meta {
  padding: 8px 10px;
}

/* Tracking number */
.tp-tracking {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-tracking-num {
  font-size: 0.65rem;
  color: var(--accent-gold, #D4AF37);
  font-family: monospace;
  cursor: pointer;
  padding: 2px 4px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 3px;
  display: inline-block;
  transition: background 0.2s;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-tracking-num:hover {
  background: rgba(212, 175, 55, 0.2);
}

.tp-tracking-label {
  font-size: 0.55rem;
  color: var(--text-muted, #666);
  font-style: italic;
}


/* ═══════════════════════════════════════════
   6. QC / UNBOXING REELS STRIP (IG Reels style)
   ═══════════════════════════════════════════ */
.tp-reels-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tp-reels-strip::-webkit-scrollbar {
  display: none;
}

.tp-reel-card {
  flex-shrink: 0;
  width: 140px;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #111;
  cursor: pointer;
  transition: transform 0.2s;
}

.tp-reel-card:hover {
  transform: scale(1.03);
}

.tp-reel-media-wrap {
  position: absolute;
  inset: 0;
}

.tp-reel-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay on reels */
.tp-reel-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Center play button */
.tp-reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s;
  z-index: 5;
}

.tp-reel-card:hover .tp-reel-play-btn {
  background: rgba(255, 255, 255, 0.35);
}

/* (captions removed — clean reel cards with play button only) */

/* Reels sub-heading inside reviews section */
.tp-reels-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin-bottom: 10px;
  padding: 0 2px;
  letter-spacing: 0.3px;
}

.tp-reels-heading-icon {
  font-style: normal;
  margin-right: 4px;
}

/* Legacy QC strip compat */
.tp-qc-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tp-qc-strip::-webkit-scrollbar {
  display: none;
}

.tp-qc-card {
  flex-shrink: 0;
  width: 130px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #111;
  cursor: pointer;
  transition: transform 0.2s;
}

.tp-qc-video,
.tp-qc-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ═══════════════════════════════════════════
   7. REVIEW GRID
   ═══════════════════════════════════════════ */
/* Uses same .tp-grid 3-column from section 4 */

/* Paired review indicator */
.tp-pair-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  padding: 2px 4px;
  pointer-events: none;
}

/* Rating tag overlay (optional) */
.tp-rating-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent-gold, #D4AF37);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 5;
  pointer-events: none;
  letter-spacing: 0.3px;
}


/* ═══════════════════════════════════════════
   8. VIEW MORE BUTTONS
   ═══════════════════════════════════════════ */
.tp-view-all {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: var(--glass-bg, rgba(30,30,30,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  color: var(--accent-gold, #D4AF37);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
}

.tp-view-all:hover {
  background: var(--glass-bg-hover, rgba(50,50,50,0.8));
  border-color: var(--accent-gold, #D4AF37);
}

/* Legacy load-more alias */
.tp-load-more {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: var(--glass-bg, rgba(30,30,30,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  color: var(--accent-gold, #D4AF37);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
}

.tp-load-more:hover {
  background: var(--glass-bg-hover, rgba(50,50,50,0.8));
  border-color: var(--accent-gold, #D4AF37);
}


/* ═══════════════════════════════════════════
   9. YOUR TURN CTA SECTION
   ═══════════════════════════════════════════ */
.tp-your-turn {
  text-align: center;
  padding: 40px 20px;
  margin: 20px 16px;
  background: var(--glass-bg, rgba(30,30,30,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tp-your-turn-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--accent-gold, #D4AF37);
  margin: 0 0 8px;
  font-style: italic;
}

.tp-your-turn-sub {
  font-size: 0.85rem;
  color: var(--text-muted, #a0a0a0);
  margin: 0 0 12px;
}

.tp-trust-guarantees {
  font-size: 0.75rem;
  color: var(--text-muted, #a0a0a0);
  margin: 0 0 20px;
  line-height: 1.8;
}

.tp-trust-guarantees span {
  display: inline-block;
  margin: 0 8px;
}

.tp-your-turn-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #ef4444;
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  font-family: inherit;
}

.tp-your-turn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}


/* ═══════════════════════════════════════════
   10. STICKY BOTTOM CTA
   ═══════════════════════════════════════════ */
.tp-sticky-cta {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  z-index: 999;
  transition: bottom 0.3s ease;
  padding: 0 12px 12px;
}

.tp-sticky-cta.visible {
  bottom: 0;
}

.tp-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-primary, #121212);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  border-radius: 14px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.tp-sticky-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-sticky-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-primary, #fff);
  font-weight: 500;
}

.tp-sticky-sub {
  font-size: 0.68rem;
  color: var(--text-muted, #888);
  letter-spacing: 0.2px;
}

.tp-sticky-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: tp-dot-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes tp-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

/* RED button — stands out more than green */
.tp-sticky-btn {
  padding: 10px 22px;
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.tp-sticky-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}


/* ═══════════════════════════════════════════
   11. LIGHTBOX
   ═══════════════════════════════════════════ */
.tp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

.tp-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.tp-lb-media {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

.tp-lb-content {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tp-lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10005;
  transition: background 0.2s;
  line-height: 1;
}

.tp-lb-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.tp-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10005;
  transition: background 0.2s;
}

.tp-lb-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.tp-lb-prev { left: 16px; }
.tp-lb-next { right: 16px; }

.tp-lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}


/* ═══════════════════════════════════════════
   12. LOADING & EMPTY STATES
   ═══════════════════════════════════════════ */
.tp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  gap: 12px;
  color: var(--text-muted, #888);
  font-size: 0.85rem;
}

.tp-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--glass-border, rgba(255,255,255,0.1));
  border-top-color: var(--accent-gold, #D4AF37);
  border-radius: 50%;
  animation: tp-spin 0.8s linear infinite;
}

@keyframes tp-spin {
  to { transform: rotate(360deg); }
}

.tp-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted, #888);
  font-size: 0.9rem;
}

/* Skeleton loading */
.tp-skeleton-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: tp-shimmer 1.5s infinite linear;
}

.tp-skeleton-text {
  width: 40px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: tp-shimmer 1.5s infinite linear;
}

@keyframes tp-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


/* ═══════════════════════════════════════════
   13. RESPONSIVE
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .tp-profile-row {
    gap: 40px;
  }

  .tp-avatar-ring {
    width: 100px;
    height: 100px;
  }

  .tp-stats-row {
    gap: 36px;
  }

  .tp-stat-num {
    font-size: 1.5rem;
  }

  .tp-grid {
    gap: 4px;
  }

  .tp-section {
    padding: 24px 24px;
  }

  .tp-delivery-featured {
    gap: 16px;
  }

  .tp-delivery-card {
    border-radius: 14px;
  }

  .tp-reel-card {
    width: 160px;
  }

  .tp-featured-2col {
    gap: 14px;
  }

  .tp-section-heading {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .tp-profile-row {
    gap: 20px;
  }

  .tp-avatar-ring {
    width: 76px;
    height: 76px;
  }

  .tp-stats-row {
    gap: 18px;
  }

  .tp-stat-num {
    font-size: 1.1rem;
  }

  .tp-reel-card {
    width: 120px;
  }

  .tp-reels-strip {
    gap: 8px;
    padding: 0 12px 10px;
  }

  .tp-delivery-featured {
    gap: 8px;
  }

  .tp-delivery-meta {
    padding: 8px 10px;
  }

  .tp-delivery-route {
    font-size: 0.75rem;
  }

  .tp-section-heading {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .tp-lb-nav {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .tp-lb-prev { left: 8px; }
  .tp-lb-next { right: 8px; }

  .tp-featured-2col {
    gap: 8px;
  }
}


/* ═══════════════════════════════════════════
   14. JOURNEY CONNECTORS
   ═══════════════════════════════════════════ */
.tp-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  position: relative;
}

.tp-connector-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent-gold, #D4AF37), transparent);
  opacity: 0.4;
}

.tp-connector-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold, #D4AF37);
  margin: 4px 0;
}

.tp-connector-text {
  font-size: 0.7rem;
  color: var(--text-muted, #888);
  font-style: italic;
  letter-spacing: 0.5px;
}


/* ═══════════════════════════════════════════
   15. LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════ */
[data-theme="light"] .tp-avatar-img {
  border-color: #fff;
}

[data-theme="light"] .tp-story-frost {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .tp-story-month {
  color: #222;
}

[data-theme="light"] .tp-story-year {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .tp-story-ring {
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .tp-grid-item {
  background: #f0f0f0;
}

[data-theme="light"] .tp-qc-card,
[data-theme="light"] .tp-reel-card {
  background: #f0f0f0;
}

[data-theme="light"] .tp-delivery-img-wrap {
  background: #f0f0f0;
}

[data-theme="light"] .tp-skeleton-circle,
[data-theme="light"] .tp-skeleton-text {
  background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
  background-size: 200% 100%;
}

[data-theme="light"] .tp-sticky-inner {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
