/* Team Post Kit visual polish and interactive glow treatments. */

/* Pricing cards v2 — hover lift, solid glowing badge, glowy CTA. Colors lean on
   the TPK logo's electric blue → cyan. ------------------------------------- */
:root { --tpk-logo-blue: #2f9bff; --tpk-logo-cyan: #2fe3ff; }

.tpk-plan-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.tpk-plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--tpk-accent-rgb), 0.55);
  box-shadow:
    0 26px 60px -28px rgba(var(--primary-rgb), 0.8),
    0 0 38px -16px rgba(var(--tpk-accent-rgb), 0.5);
}
.tpk-plan-card.is-highlight {
  border-color: rgba(var(--tpk-accent-rgb), 0.6);
}
.tpk-plan-card.is-highlight:hover {
  transform: translateY(-9px);
  box-shadow:
    0 0 0 1px rgba(var(--tpk-accent-rgb), 0.65),
    0 32px 72px -26px rgba(var(--primary-rgb), 0.95),
    0 0 60px -14px rgba(var(--tpk-accent-rgb), 0.6);
}

/* Scoped here so the pricing-card badge keeps its stronger marketing treatment
   while the account-page plan badge remains a quieter static pill. */
.tpk-plan-card .tpk-plan-badge {
  color: #021019;
  background: linear-gradient(120deg, var(--tpk-logo-blue), var(--tpk-logo-cyan));
  border: none;
  letter-spacing: 0.06em;
  box-shadow:
    0 8px 20px -6px rgba(var(--tpk-accent-rgb), 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 2;
}

/* Highlighted plan CTA: vibrant gradient with glow + sweeping sheen on hover. */
.tpk-body .tpk-plan-cta.btn-main {
  position: relative;
  overflow: hidden;
  border: none;
  color: #fff;
  background: linear-gradient(120deg, var(--tpk-logo-blue), var(--primary-light), var(--tpk-logo-cyan));
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow:
    0 14px 30px -10px rgba(var(--primary-rgb), 0.9),
    0 0 26px -6px rgba(var(--tpk-accent-rgb), 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-position 0.5s ease;
}
.tpk-body .tpk-plan-cta.btn-main:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow:
    0 18px 42px -10px rgba(var(--primary-rgb), 1),
    0 0 40px -4px rgba(var(--tpk-accent-rgb), 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.tpk-body .tpk-plan-cta.btn-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.45) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.tpk-body .tpk-plan-cta.btn-main:hover::after { transform: translateX(130%); }
.tpk-body .tpk-plan-cta.btn-main:active {
  transform: translateY(0);
  background-position: 50% 50%;
  box-shadow: 
    0 4px 12px -4px rgba(var(--primary-rgb), 0.8),
    inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Secondary (Starter / Pro) CTAs: refined outline that pops with neon edge and sheen on hover. */
.tpk-body .tpk-plan-cta.btn-neutral {
  border: 1px solid rgba(var(--tpk-accent-rgb), 0.5);
  background: rgba(var(--primary-rgb), 0.12);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}
.tpk-body .tpk-plan-cta.btn-neutral:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--tpk-accent-rgb), 0.9);
  background: rgba(var(--primary-rgb), 0.25);
  box-shadow: 
    0 8px 24px -8px rgba(var(--tpk-accent-rgb), 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.tpk-body .tpk-plan-cta.btn-neutral:active {
  transform: translateY(0);
  background: rgba(var(--primary-rgb), 0.15);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Keep the teaser badge consistent with the plans-page badge. */
.tpk-price-mini-badge {
  background: linear-gradient(120deg, var(--tpk-logo-blue), var(--tpk-logo-cyan));
  color: #021019;
}

/* =============================================================================
   TPK Look & Feel Glow-up and Hover Transitions
   ============================================================================= */

/* Gradient text shadow glow on hover */
.tpk-gradient-text {
  transition: text-shadow 0.3s ease;
}
.tpk-gradient-text:hover {
  text-shadow: 0 0 15px rgba(34, 211, 238, 0.45);
}

/* Hero Showcase cards animation on hero hover */
.tpk-hero-card {
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.tpk-hero-split:hover .tpk-hero-card-front {
  transform: rotate(0deg) scale(1.03);
  box-shadow:
    0 40px 90px -20px rgba(2, 4, 12, 0.98),
    0 0 70px -5px rgba(var(--tpk-accent-rgb), 0.7);
}
.tpk-hero-split:hover .tpk-hero-card-mid {
  transform: translate(95px, -55px) rotate(8deg) scale(0.93);
  opacity: 0.96;
  box-shadow:
    0 30px 80px -25px rgba(2, 4, 12, 0.95),
    0 0 45px -8px rgba(var(--primary-rgb), 0.5);
}
.tpk-hero-split:hover .tpk-hero-card-back {
  transform: translate(-105px, 50px) rotate(-12deg) scale(0.85);
  opacity: 0.85;
  box-shadow:
    0 25px 70px -30px rgba(2, 4, 12, 0.95),
    0 0 40px -10px rgba(var(--primary-rgb), 0.4);
}

/* Glowing Interactive Main Buttons */
.tpk-body .btn-main {
  position: relative;
  overflow: hidden;
  border: none;
  color: #fff !important;
  background: linear-gradient(120deg, var(--tpk-logo-blue), var(--primary-light), var(--tpk-logo-cyan)) !important;
  background-size: 200% 200% !important;
  background-position: 0% 50% !important;
  box-shadow:
    0 12px 28px -8px rgba(var(--primary-rgb), 0.7),
    0 0 20px -6px rgba(var(--tpk-accent-rgb), 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-position 0.5s ease !important;
}
.tpk-body .btn-main:hover {
  transform: translateY(-2px);
  background-position: 100% 50% !important;
  box-shadow:
    0 16px 36px -8px rgba(var(--primary-rgb), 0.95),
    0 0 32px -4px rgba(var(--tpk-accent-rgb), 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.tpk-body .btn-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.4) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.tpk-body .btn-main:hover::after {
  transform: translateX(130%);
}

/* Hero CTA pair: tame the glow so the solid button matches the ghost in size. */
.tpk-body .tpk-hero-actions .btn-main {
  box-shadow:
    0 4px 14px -4px rgba(var(--primary-rgb), 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tpk-body .tpk-hero-actions .btn-main:hover {
  box-shadow:
    0 8px 20px -6px rgba(var(--primary-rgb), 0.7),
    0 0 16px -4px rgba(var(--tpk-accent-rgb), 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Hero CTA buttons share padding, font-size, and line-height so the solid and ghost render at the exact same height. */
.tpk-body .tpk-hero-actions .tpk-btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  line-height: 1.2;
}

.tpk-body .tpk-hero-actions .btn-solid {
  border: 1.5px solid transparent;
}

/* Ghost CTA: thicker border + faint fill so it reads as a peer to the solid button. */
.tpk-body .tpk-hero-actions .tpk-btn-ghost {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(var(--primary-rgb), 0.55);
  background: rgba(var(--primary-rgb), 0.12);
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;
}
.tpk-body .tpk-hero-actions .tpk-btn-ghost:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #6366f1, #8b5cf6, #ec4899) !important;
  border-color: transparent;
  box-shadow:
    0 12px 28px -8px rgba(99, 102, 241, 0.7),
    0 0 20px -6px rgba(236, 72, 153, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Shimmer overlay for the ghost button in the hero */
.tpk-body .tpk-hero-actions .tpk-btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.4) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.tpk-body .tpk-hero-actions .tpk-btn-ghost:hover::after {
  transform: translateX(130%);
}

/* Mobile-specific adjustments for hero CTA buttons: narrow the width and adjust horizontal padding */
@media (max-width: 600px) {
  .tpk-body .tpk-hero-actions .tpk-btn-lg {
    width: min(100%, 10rem);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .tpk-body .tpk-hero-actions--guest .tpk-btn-lg {
    width: min(100%, 18rem);
    max-width: calc(100vw - 3rem);
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: nowrap;
  }
}

/* Ghost / outline secondary button hover glow updates */
.tpk-body .tpk-btn-ghost {
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  background: rgba(var(--primary-rgb), 0.04);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}
.tpk-body .tpk-btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--tpk-accent-rgb), 0.75);
  background: rgba(var(--primary-rgb), 0.12);
  color: #fff;
  box-shadow: 0 0 24px -6px rgba(var(--tpk-accent-rgb), 0.5);
}

/* Brand-Specific Social Logo Halos */
.tpk-platform-logos li {
  position: relative;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.tpk-platform-logos li[title="Instagram"]:hover {
  color: #fff;
  background: rgba(225, 48, 108, 0.08);
  border-color: rgba(225, 48, 108, 0.45);
  box-shadow: 0 0 20px -5px rgba(225, 48, 108, 0.5);
}
.tpk-platform-logos li[title="TikTok"]:hover {
  color: #fff;
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 20px -5px rgba(0, 242, 254, 0.5);
}
.tpk-platform-logos li[title="X (Twitter)"]:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px -5px rgba(255, 255, 255, 0.3);
}
.tpk-platform-logos li[title="Facebook"]:hover {
  color: #fff;
  background: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.45);
  box-shadow: 0 0 20px -5px rgba(24, 119, 242, 0.5);
}
.tpk-platform-logos li[title="YouTube"]:hover {
  color: #fff;
  background: rgba(255, 0, 0, 0.08);
  border-color: rgba(255, 0, 0, 0.45);
  box-shadow: 0 0 20px -5px rgba(255, 0, 0, 0.5);
}

/* Interactive Popular Style Tiles */
.tpk-style-tile {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.tpk-style-tile:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(var(--tpk-accent-rgb), 0.75);
  box-shadow:
    0 15px 35px -15px rgba(var(--tpk-accent-rgb), 0.5),
    0 0 15px -4px rgba(var(--tpk-accent-rgb), 0.45);
}
.tpk-style-tile-label {
  backdrop-filter: blur(4px);
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.92)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Translucent Glassmorphic Review Cards */
.tpk-review-card {
  background: rgba(30, 41, 59, 0.45) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.tpk-review-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(var(--primary-rgb), 0.28) !important;
  box-shadow:
    0 16px 40px -20px rgba(0, 0, 0, 0.6),
    0 0 16px -8px rgba(var(--primary-rgb), 0.3);
}

/* Pricing Card Back-glow Aura */
.tpk-plan-card.is-highlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(120deg, var(--tpk-logo-blue), var(--tpk-logo-cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.tpk-plan-card.is-highlight {
  background:
    radial-gradient(130% 130% at 50% 0%, rgba(99, 102, 241, 0.22), transparent 70%),
    var(--surface) !important;
}
.tpk-price-mini.is-highlight {
  background:
    radial-gradient(130% 130% at 50% 0%, rgba(99, 102, 241, 0.22), transparent 70%),
    var(--surface) !important;
}

/* Accordion FAQ Enhancements */
details.tpk-faq-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
details.tpk-faq-item:hover {
  border-color: rgba(var(--tpk-accent-rgb), 0.35);
  box-shadow:
    0 8px 30px -10px rgba(0, 0, 0, 0.5),
    0 0 15px -8px rgba(var(--tpk-accent-rgb), 0.3);
}
details.tpk-faq-item[open] {
  border-color: rgba(var(--tpk-accent-rgb), 0.55);
  border-left: 3px solid var(--tpk-accent) !important;
  background: rgba(30, 41, 59, 0.8) !important;
  box-shadow:
    0 12px 35px -12px rgba(0, 0, 0, 0.6),
    0 0 20px -8px rgba(var(--tpk-accent-rgb), 0.4);
}
details.tpk-faq-item > summary::after {
  content: "+" !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.25s ease, color 0.25s ease;
}
details.tpk-faq-item[open] > summary::after {
  content: "+" !important;
  transform: rotate(45deg);
  background: rgba(var(--tpk-accent-rgb), 0.15);
  color: var(--tpk-accent);
}

/* TPK Slot count/badge pills */
.tpk-slot-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1;
}

.tpk-favorites-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tpk-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.tpk-title-row h2 {
  margin: 0.3rem 0 0.2rem;
}

.rivals-team-picker-hint {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: -0.35rem;
  margin-bottom: 0.75rem;
}

/* Drag and drop for favorite logos */
.tpk-favorite-thumb[draggable="true"] {
  cursor: grab;
}
.tpk-favorite-thumb[draggable="true"]:active {
  cursor: grabbing;
}
.tpk-favorite-tile.is-dragging {
  opacity: 0.5;
  transform: scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.rivals-upload-slot.drop-target-active {
  border-color: rgba(var(--primary-rgb), 0.5);
  background-color: rgba(var(--primary-rgb), 0.03);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
  animation: tpk-pulse-border 1.5s infinite ease-in-out;
}

@keyframes tpk-pulse-border {
  0% {
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 0 0 0px rgba(var(--primary-rgb), 0.15);
  }
  50% {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.3);
  }
  100% {
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 0 0 0px rgba(var(--primary-rgb), 0.15);
  }
}

/* Custom styling for the hero trust badges/pills */
.tpk-body .tpk-hero .tpk-trust {
  display: flex;
  gap: 0.5rem 0.75rem;
  margin-top: 2rem;
}

.tpk-body .tpk-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.25s ease;
}

.tpk-body .tpk-trust-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(var(--primary-rgb), 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.tpk-body .tpk-trust-icon {
  width: 12px;
  height: 12px;
  color: var(--tpk-accent); /* Vibrant Cyan/Teal */
  filter: drop-shadow(0 0 4px rgba(var(--tpk-accent-rgb), 0.4));
  flex-shrink: 0;
}

/* Hero Referral Panel */
.tpk-referral-hero-panel {
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px; /* 8px internal panel radii */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tpk-referral-hero-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tpk-accent, #48f5c0);
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.tpk-referral-hero-desc {
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.15rem 0;
  text-align: center;
}

.tpk-referral-hero-desc strong {
  color: #fff;
}

.tpk-referral-hero-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tpk-referral-hero-input {
  flex-grow: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: SFMono-Regular, Consolas, Menlo, Monaco, monospace;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  cursor: copy;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tpk-referral-hero-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
}

.tpk-referral-hero-input:focus {
  outline: none;
  border-color: rgba(var(--tpk-accent-rgb), 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

.tpk-referral-hero-copy-btn {
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--tpk-accent, #48f5c0);
  color: #0b1528;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tpk-referral-hero-copy-btn:hover {
  background: #12c998;
  transform: translateY(-1px);
}

.tpk-referral-hero-copy-btn:active {
  transform: translateY(0);
}

.tpk-referral-hero-copy-btn.copied {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  cursor: default;
  transform: none !important;
}

.tpk-referral-hero-copy-btn.copy-failed {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
  transform: none;
}

.tpk-referral-hero-stats {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.tpk-referral-hero-stats strong {
  color: rgba(255, 255, 255, 0.8);
}

/* Guard against iOS font focus zoom - inputs must be 16px or larger when focused */
@media (max-width: 768px) {
  .tpk-referral-hero-input {
    font-size: 16px !important;
  }

  .tpk-referral-hero-copy-btn {
    min-height: 44px;
  }
}

/* Premium Graphics Library Header Enhancements */
body.tpk-library-page .tpk-library-shell .panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

body.tpk-library-page .panel-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin: 0;
}

body.tpk-library-page .panel-header .panel-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}

body.tpk-library-page .tpk-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

body.tpk-library-page .tpk-slot-pill {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  border-radius: 99px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

@media (max-width: 640px) {
  body.tpk-library-page .tpk-library-shell .panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  body.tpk-library-page .tpk-title-row {
    justify-content: center;
    width: 100%;
  }

  body.tpk-library-page .panel-header h2 {
    font-size: 1.35rem;
  }
  
  body.tpk-library-page .panel-header .panel-subtitle {
    font-size: 0.82rem;
    margin-top: 0.25rem;
  }

  body.tpk-library-page .tpk-library-shell .panel-header .btn-solid {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    margin-top: 0.25rem;
  }
}
