/* override */

.web-toolbar {
  display: none;
}

/* onboarding */

.onboard-header {
  display: none;
  text-align: center;
  padding: 2px 0px 0px 0px;
  position: relative;
  position: sticky;
  top: 0px;
}
.onboard-header .logo {
  transform: scale(0.85) translateY(-5px);
  padding-bottom: 2px;
}

.onboard-progress-container {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  display: none;
  max-width: 420px;
  margin: 7px auto 0px auto;
  padding: 0px 16px;
}
.onboard-progress-container-back {
  top: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.onboard-container-web .onboard-progress-container {
  
}

.onboard-back,
.onboard-back div {
  width: 36px;
  height: 36px;
}
.onboard-back {
  background: var(--bg5);
  border-radius: 100px;
  flex-shrink: 0;
  margin-right: 2px;
  cursor: pointer;
  display: none;
}
.onboard-back div {
  background: transparent
    url("https://images.sobrief.com/public/icon-arrow-left.png") no-repeat 50%
    50%;
  background-size: 14px;
  filter: var(--image-invert);
}

.onboard-language {
  position: absolute;
  display: inline-block;
  display: none;
  height: 31px;
  width: auto;
  top: 16px;
  right: 20px;
  font-size: 12px;
  line-height: 12px;
  font-weight: 500;
  color: var(--text-color);
  background: var(--bg5);
  padding: 10px 12px 6px 33px;
  border-radius: 100px;
  cursor: pointer;
  z-index: 2;
}
.onboard-container-web .onboard-language {
  left: 20px;
  right: auto;
}
.onboard-language span {
  display: block;
  width: 17px;
  height: 17px;
  position: absolute;
  top: 7px;
  left: 11px;
  background: transparent url("https://images.sobrief.com/public/icon-lang.png")
    no-repeat 50% 50%;
  background-size: 17px;
  filter: var(--image-invert);
}
.onboard-language b {
  font-weight: 500;
}

.onboard-language-select {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

.onboard-progress-container-back .onboard-back {
  display: block;
}

.onboard-progress-wrap {
  flex-grow: 1;
  padding: 0px 2px;
}
.onboard-progress-container-back .onboard-progress-wrap {
  padding: 0px 12px;
}
.onboard-progress {
  height: 3px;
  background: transparent;
  width: 100%;
  margin: 0px 0px 0px 0px;
}

/* Legacy single progress bar (for fallback) */
.onboard-progress > div:not(.onboard-progress-sections) {
  height: 3px;
  border-radius: 100px;
  background: var(--onboard-progress-bg);
  background: linear-gradient(90deg, #ff6b6b, #ffa726);
  width: 0%;
  transition: width 0.2s ease;
}

/* Sectional Progress Bar */
.onboard-progress-sections {
  display: flex;
  gap: 3px;
  width: 100%;
  align-items: center;
}

.onboard-progress-sections .onboard-progress-section {
  flex: 1;
  height: 4px;
  background: var(--bg5);
  border-radius: 0px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  width: auto !important; /* Override any conflicting width rules */
}

.onboard-progress-sections .onboard-progress-section:first-child {
  border-radius: 100px 0px 0px 100px;
}

.onboard-progress-sections .onboard-progress-section:last-child {
  border-radius: 0px 100px 100px 0px;
}

.onboard-progress-sections .onboard-progress-section:first-child:last-child {
  border-radius: 100px;
}

.onboard-progress-sections .onboard-progress-section-fill {
  height: 100%;
  width: 0%;
  border-radius: 0px;
  transition: width 0.4s ease;
  position: relative;
  background-repeat: no-repeat;
}

.onboard-progress-sections .onboard-progress-section:first-child .onboard-progress-section-fill {
  border-radius: 100px 0px 0px 100px;
}

.onboard-progress-sections .onboard-progress-section:last-child .onboard-progress-section-fill {
  border-radius: 0px 100px 100px 0px;
}

.onboard-progress-sections .onboard-progress-section:first-child:last-child .onboard-progress-section-fill {
  border-radius: 100px;
}

/* Progress section states */
.onboard-progress-sections .onboard-progress-section.active {
  background: var(--bg4);
  transform: scale(1.05);
}

.onboard-progress-sections .onboard-progress-section.completed {
  background: var(--bg4);
}

.onboard-progress-sections .onboard-progress-section.completed .onboard-progress-section-fill {
  background: linear-gradient(90deg, #ff6b6b, #ffa726);
}

/* Enhanced visual for active section */
.onboard-progress-sections .onboard-progress-section.active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.3), rgba(255, 167, 38, 0.3));
  border-radius: 100px;
  z-index: -1;
}

/* Dark theme adjustments */
.theme-dark .onboard-progress-sections .onboard-progress-section {
  background: rgb(50, 50, 50);
}

.theme-dark .onboard-progress-sections .onboard-progress-section.active,
.theme-dark .onboard-progress-sections .onboard-progress-section.completed {
  background: rgb(60, 60, 60);
}

.theme-dark .onboard-progress-sections .onboard-progress-section.active::after {
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.2), rgba(255, 167, 38, 0.2));
}

.onboard-footer {
  position: fixed;
  left: 0px;
  bottom: 0px;
  width: 100%;
  background: var(--page-bg);
  z-index: 1000;
  padding: 16px 17px 16px 17px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  text-align: center;
  box-shadow: 0px -1px 7px -2px rgba(0, 0, 0, 0.1);
  box-shadow: none;
  display: none;
  background: transparent;
  /*
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: rgba(var(--page-bg-colors), 0.6);*/
}
.onboard-footer-inner {
  max-width: 375px;
  margin: 0px auto;
}
@media (min-width: 600px) {
  .onboard-footer-inner {
    padding-bottom: 20px;
  }
}


.onboard-wrap {
  max-width: 455px;
  margin: 0px auto;
  padding: 0px 20px 0px 20px;
}
@media (min-width: 600px) {
  .onboard-wrap {
    max-width: 420px;
  }
}

.onboard-container {
  display: block;
}

.onboard-container-web .onboard-wrap {
  padding: 0px 20px 20px 20px;
}

.onboard-section {
  display: none;
  padding-bottom: 30px;
}
.onboard-wrap-native .onboard-section {
  padding-bottom: 0px;
}

.onboard-heading,
.onboard-heading2,
.onboard-heading3 {
  font-size: 22px;
  line-height: 30px;
  font-size: 27px;
  line-height: 33px;
  font-weight: 600;
  padding: 25px 0px 10px 0px;
  text-align: left;
}
.onboard-heading2 {
  font-size: 26px;
  line-height: 34px;
  padding-bottom: 0px;
}
.onboard-heading3 {
  font-size: 25px;
  line-height: 33px;
  padding-bottom: 0px;
}
.onboard-heading-no-tagline {
  padding-bottom: 22px;
}
.onboard-intro-heading {
  font-size: 32px;
  line-height: 38px;
  font-weight: 600;
  padding: 27px 0px 20px 0px;
  text-align: left;
  color: var(--text-color);
  
  font-size: 52px;
  line-height: 51px;
  font-size: 40px;
  line-height: 46px;
  font-family: var(--font-serif);
  letter-spacing: -1px;
}
.onboard-intro-video {
  margin: 10px 0px 30px 0px;
  text-align: center;
}
.onboard-intro-video video {
  width: 100%;
  max-width: 350px;
}
.onboard-subheading {
  font-size: 15px;
  line-height: 23px;
  font-weight: 500;
  opacity: 0.55;
  opacity: 1;
  text-align: center;
  padding: 17px 0px 10px 0px;
}
.onboard-text {
  font-size: 14px;
  line-height: 23px;
  font-weight: 500;
  opacity: 1;
  text-align: center;
  padding: 18px 0px 0px 0px;
}
.onboard-text2 {
  font-size: 15px;
  line-height: 23px;
}
.onboard-text ol {
  padding-left: 20px;
}
.onboard-text ol li {
  padding: 0px 0px 20px 5px;
}
.onboard-tagline {
  font-size: 15px;
  line-height: 23px;
  font-size: 16px;
  line-height: 23px;
  color: var(--text-color);
  padding: 0px 0px 10px 0px;
  text-align: left;
  opacity: 1;
  color: var(--text-color2);
}
.onboard-tagline-swipe {
  font-size: 16px;
  line-height: 22px;
  padding: 11px 14px;
  text-align: left;
  opacity: 1;
  color: var(--text-color);
  font-family: var(--font-sans);
  border-radius: 12px;
  background: var(--bg3);
  margin: 15px 0px 28px 0px;
  border: 0px solid var(--border-color3);
}
.theme-light .onboard-tagline-swipe {
  border: none;
}
.onboard-tagline b {
  font-weight: 600;
  color: var(--text-color);
  font-size: 20px;
  position: relative;
  top: 1px;
}
.onboard-screenshot {
  text-align: center;
  padding: 20px 0px 5px 0px;
}
.onboard-screenshot img {
  display: inline-block;
  max-width: 100%;
  max-height: 200px;
  border-radius: 16px;
}
.onboard-screenshot video {
  border-radius: 40px;
  overflow: hidden;
  max-width: 100%;
  max-height: 600px;
}

.onboard-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  /*
  min-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  */
  text-align: center;
  padding: 30px 0px 0px 0px;
}
@media (min-width: 380px) {
  .onboard-screen {
    padding-top: 70px;
  }
}
.onboard-screen img {
  display: flex;
  max-width: 64%;
  border-radius: 30px;
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.15);
}
@media (min-width: 600px) {
  .onboard-screen img {
  }
}

.onboard-screen-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.onboard-screen-dot {
  width: 9px;
  height: 9px;
  border-radius: 100px;
  background: var(--bg5);
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.4s ease;
}
.theme-dark .onboard-screen-dot {
  background: rgb(50, 50, 50);
}
.onboard-screen-dot-active {
  background: var(--text-color) !important;
  transform: scale(1.2);
}

.onboard-link {
  font-size: 14px;
  line-height: 14px;
  font-weight: 400;
  margin: 20px 0px 7px 0px;
  text-align: center;
  cursor: pointer;
}
.onboard-link b {
  font-weight: 600;
}

.onboard-box {
  margin-top: 10px;
  padding: 30px;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: 16px;
  box-shadow:
    rgba(0, 0, 0, 0.04) 0px 0px 1px 0px,
    rgba(0, 0, 0, 0.04) 0px 2px 6px 0px,
    rgba(0, 0, 0, 0.04) 0px 10px 20px 0px;
}
.onboard-box-centered {
  text-align: center;
}

.onboard-info {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.55;
  text-align: center;
  padding: 18px 0px 5px 0px;
}

.onboard-button-full {
  width: 100%;
  border-radius: 100px;
  background: var(--filled-button-bg);
  color: var(--filled-button-color);
  font-size: 16px;
  line-height: 16px;
  font-weight: 600;
  padding: 20px;
  text-align: center;
  margin-top: 0px;
  cursor: pointer;
  transition: transform 0.11s ease-in;
  will-change: transform;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: none;
}
.onboard-button-full-disabled {
  opacity: 0.8;
  opacity: 1;
}

.onboard-button-pressed {
  transition: transform 0.11s ease-in;
  transform: scale(0.96);
}

.onboard-loading {
  display: none;
  text-align: center;
}
.onboard-loading div {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: transparent url("https://images.sobrief.com/public/loading.gif")
    no-repeat 0px 0px;
  background-size: 30px;
  margin: 40px 0px;
  filter: var(--image-invert);
}

.onboard-book-loading {
  display: none;
  text-align: center;
}
.onboard-book-loading-text {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: transparent url("https://images.sobrief.com/public/loading.gif")
    no-repeat 0px 0px;
  background-size: 30px;
  margin: 110px 0px 0px 0px;
  filter: var(--image-invert);
}

.onboard-book-loading-text:after {
  content: "\00a0\00a0\00a0";
  animation: dots 1.2s steps(1, end) infinite;
}

/* New styles for generating indicator */
.onboard-book-generating {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 100;
}

.onboard-book-generating-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px;
}

.onboard-book-generating-progress {
  width: 200px;
  height: 4px;
  background: var(--bg5);
  border-radius: 100px;
  overflow: hidden;
  margin: 0 auto;
}

.onboard-book-generating-progress-bar {
  height: 100%;
  background: var(--progress-bg);
  background: rgb(0, 222, 137);
  border-radius: 100px;
  width: 0%;
  animation: generatingProgress 30s ease-out forwards;
}

@keyframes generatingProgress {
  0% { width: 0%; }
  10% { width: 15%; }
  30% { width: 40%; }
  50% { width: 60%; }
  70% { width: 80%; }
  90% { width: 95%; }
  100% { width: 100%; }
}

.onboard-book {
  display: none;
  padding: 0px;
  text-align: center;
  will-change: transform, opacity;
  width: 100%;
  max-width: 450px;
  margin-top: 28px;
}
.onboard-book * {
  user-select: none;
}

.onboard-book-image-container {
  position: relative;
  display: inline-block;
  margin-top: 0px;
}

.onboard-book-image,
.onboard-book-image-shadow {
  height: 235px;
  border-radius: 10px;
}
.onboard-book-image {
  display: block;
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  box-shadow:
    0px 5px 26px 0px rgba(0, 0, 0, 0.15),
    0px 0px 1px rgba(0, 0, 0, 0.25);
}
.onboard-book-image-shadow {
  position: absolute;
  top: 3px;
  left: 0;
  filter: blur(17px);
  opacity: 0.2;
  z-index: 1;
  transform: scale(1.05);
  will-change: transform, opacity;
}

.theme-dark .onboard-book-image {
  border-radius: 10px;
  box-shadow: none;
}

.theme-dark .onboard-book-image-shadow {
  opacity: 0.6;
  filter: blur(20px);
  transform: scale(1.0);
}

.onboard-book-title {
  font-size: 18px;
  font-weight: 500;
  margin-top: 27px;
}

.onboard-book-subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-color2);
  margin-top: 5px;
}

.onboard-book-author {
  font-size: 14px;
  color: var(--text-color2);
  margin-top: 10px;
}
.onboard-book-author span {
  color: var(--text-color);
}
.onboard-book-author i {
  font-style: normal;
  opacity: 0.5;
  margin-left: 8px;
  margin-right: 8px;
  position: relative;
  top: -1px;
}

.onboard-book-genres {
  padding: 0px 0px 12px 0px;
}
.onboard-book-genre {
  display: inline-block;
  background: var(--bg3);
  border-radius: 100px;
  margin: 0 6px 6px 0;
  padding: 5px 14px;
  font-size: 14px;
}

.onboard-book-summary {
  padding: 0px 5px 0px 5px;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-color);
  text-align: left;
}
.onboard-book-summary-heading {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 27px;
  font-weight: 600;
  letter-spacing: -0.3px;
  padding: 20px 0px 8px 0px;
  color: var(--text-color);
}
.onboard-book-summary-subheading {
  font-weight: 400;
  font-size: 17px;
  color: var(--text-color2);
  margin-bottom: 0px;
  line-height: 22px;
}
.onboard-book-summary-quote {
  font-style: italic;
  font-size: 15px;
  color: var(--text-color2);
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 3px solid var(--border-color);
  line-height: 20px;
  margin-top: 15px;
}
.onboard-book-summary-text {
  font-size: 15px;
  line-height: 20px;
  color: var(--text-color);
  padding: 25px 0px 0px 0px;
}

/* New styles for ideas and explanation */
.onboard-book-ideas-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
  text-align: left;
  display: none;
}

.onboard-book-ideas-list {
  margin-bottom: 20px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0px 0px 0px 0px;
  white-space: nowrap;
  position: relative;
  /* Hide scrollbar for better aesthetics */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.onboard-book-ideas-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.onboard-book-idea {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-color);
  padding: 6px 15px 6px 43px;
  border-bottom: 0px solid var(--border-color2);
  font-weight: 400;
  border-radius: 144px;
  background: var(--bg3);
  margin: 0px 6px 6px 0px;
  cursor: default;
  display: inline-block;
  position: relative;
  font-family: var(--font-sans);
  vertical-align: top;
}
.onboard-book-idea span {
  font-size: 22px;
  display: block;
  position: absolute;
  top: 6px;
  left: 11px;
}

.onboard-book-idea:last-child {
  border-bottom: none;
}

.onboard-book-explanation-container {
  margin-top: 15px;
  padding: 10px 0px 12px 0px;
  overflow: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.15s ease;
  border-radius: 8px;
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 12px;
  padding-right: 8px;
}

.onboard-book-explanation {
  font-size: 20px;
  line-height: 26px;
  color: var(--text-color);
  font-family: var(--font-serif);
  letter-spacing: -0.2px;
  display: inline;
  transition: opacity 0.12s ease,
              transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left top;

  font-size: 19px;
  line-height: 23px;
}

.onboard-book-explanation.expanded {
  font-size: 17px;
  line-height: 22px;
}

.onboard-book-explanation.morphing {
  opacity: 0;
  transform: scale(0.98);
}

.onboard-book-more-link {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-color);
  font-family: var(--font-sans);
  font-weight: 400;
  text-decoration: none !important;
  display: inline;
  transition: opacity 0.12s ease;
  padding-left: 5px;
  opacity: 0.5;
}

.onboard-book-more-link.morphing {
  opacity: 0;
}



/* Review summary styles */
.onboard-book-review-summary {
  margin-top: 0px;
  padding: 24px 20px;
  background: var(--bg2);
  border-radius: 17px;
  margin-bottom: 24px;
}

.onboard-book-review-summary .rating-stars {
  padding-bottom: 12px;
  display: flex;
  align-items: center;
}

.onboard-book-review-summary .rating-value {
  margin-right: 10px;
  font-weight: 600;
  padding-left: 0px;
  position: relative;
  top: 0px;
}

.onboard-book-review-summary .ratings-value {
  margin-left: 2px;
  color: var(--text-color2);
  top: 1px;
}

.onboard-book-review-heading {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
  text-align: left;
}

.onboard-book-review-text {
  font-size: 16px;
  line-height: 21px;
  color: var(--text-color);
  text-align: left;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.1px;
  margin-top: 6px;
}

.onboard-book-review-text p {
  margin: 0px;
}

.onboard-book-review-text p:last-child {
  margin-bottom: 0;
}


.onboard-book-heading-small {
  font-size: 17px;
  line-height: 22px;
  font-weight: 500;
  color: var(--text-color);
  margin: 10px 0px 10px 0px;
  text-align: left;
}

.onboard-book-year {
  font-size: 15px;
  color: var(--text-color);
}

.onboard-book-year-text {
  display: inline-block;
  background: var(--bg3);
  border-radius: 100px;
  margin: 0 10px 0px 0;
  padding: 5px 14px;
  font-size: 14px;
}

.onboard-book-year-age {
  font-size: 14px;
  color: var(--text-color2);
}

/* Links Section */
.onboard-book-links-heading {
  font-size: 17px;
  line-height: 22px;
  font-weight: 500;
  color: var(--text-color);
  margin: 20px 0px 10px 0px;
  text-align: left;
}

.onboard-book-links {
  padding: 0px 0px 12px 0px;
}

.onboard-book-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border-radius: 100px;
  margin: 0 6px 6px 0;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.onboard-book-link:hover {
  background: var(--bg4);
  transform: translateY(-1px);
}

.onboard-book-link-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
  font-style: normal;
  display: inline-block;
  width: 20px;
  height: 16px;
  margin-right: -2px;
  background: transparent no-repeat 50% 50%;
  filter: var(--image-invert);
}

/* Specific icons for each service */
.onboard-book-link-amazon .onboard-book-link-icon {
  background-image: url("https://images.sobrief.com/public/logo-amazon.png");
  background-size: 20px;
}

.onboard-book-link-kindle .onboard-book-link-icon {
  background-image: url("https://images.sobrief.com/public/logo-kindle.png");
  background-size: 18px;
  width: 18px;
}

.onboard-book-link-audible .onboard-book-link-icon {
  background-image: url("https://images.sobrief.com/public/logo-audible.png");
  background-size: 20px;
}

/* Remove the ::before pseudo-elements */
.onboard-book-link-amazon .onboard-book-link-icon::before,
.onboard-book-link-kindle .onboard-book-link-icon::before,
.onboard-book-link-audible .onboard-book-link-icon::before {
  content: none;
}

.onboard-recommendations-wrap {
  text-align: center;
  margin-top: 100px;
  margin-top: 0px;
}
.onboard-recommendations-percent {
  font-size: 60px;
  font-weight: 600;
  padding-top: 20px;
}

.onboard-recommendations-progress,
.onboard-recommendations-progress div {
  height: 10px;
  border-radius: 100px;
}
.onboard-recommendations-progress {
  background: var(--bg5);
  width: 100%;
  margin: 30px 0px 24px 0px;
}
.onboard-recommendations-progress div {
  background: var(--progress-bg);
  background: rgb(0, 222, 137);
  width: 0%;
  transition: width 0.2s ease;
}

.onboard-recommendations-heading {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  margin-top: 10px;
}
.onboard-recommendations-tagline {
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  margin-top: 6px;
}
.onboard-recommendations-tagline-ready {
  margin-top: 12px;
  opacity: 0.7;
}

.onboard-recommendations-content {
  margin-top: 20px;
}

.onboard-results-container {
  text-align: center;
  padding: 0px;
}

.onboard-results-content {
  margin-top: 30px;
  transition: opacity 0.5s ease;
}

.onboard-results-progress {
  background: var(--bg4);
  height: 7px;
  border-radius: 100px;
  margin: 8px auto 14px 0px;
  overflow: hidden;
  max-width: 400px;
}

.onboard-results-progress-bar {
  background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
  height: 100%;
  border-radius: 100px;
  width: 0%;
  animation: resultsProgress 55s ease-out forwards;
}

@keyframes resultsProgress {
  0% { width: 0%; }
  10% { width: 15%; }
  20% { width: 25%; }
  30% { width: 35%; }
  40% { width: 45%; }
  50% { width: 55%; }
  60% { width: 65%; }
  70% { width: 75%; }
  80% { width: 85%; }
  90% { width: 95%; }
  100% { width: 100%; }
}

/* Multi-stage progress styles */
.onboard-results-stages {
  margin: 30px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.onboard-stage {
  margin-bottom: 15px;
  transition: opacity 0.5s ease;
}

.onboard-stage:last-child {
  margin-bottom: 0;
}

.onboard-stage-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
  text-align: left;
}

.onboard-stage-progress {
  background: var(--bg4);
  height: 6px;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.onboard-stage-progress-bar {
  background: linear-gradient(90deg, #ff6b6b, #ffa726);
  height: 100%;
  border-radius: 100px;
  width: 0%;
  transition: none;
}

.onboard-users-say {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  padding: 15px 10px 25px 10px;
  background: var(--page-bg);
}
.onboard-users-say-higher {
  bottom: 90px;
  padding-top: 1px;
  padding-bottom: calc(35px + env(safe-area-inset-bottom, 0px));
}
.onboard-users-say-inline {
  position: relative;
  bottom: auto;
  left: auto;
  padding-bottom: 0px;
  background: transparent;
}

.onboard-box-quote {
  margin-top: 2px;
  padding: 29px 25px 24px 28px;
  text-align: left;
  display: none;
}

.onboard-quote {
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
}
.onboard-quote-author {
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  margin-top: 14px;
  opacity: 0.7;
}

.onboard-rating {
  display: block;
  padding-bottom: 18px;
}
.onboard-rating .rating-star,
.onboard-rating .rating-star-half,
.onboard-rating .rating-star-off {
  background-size: 24px;
  width: 24px;
  height: 24px;
}



.onboard-sign-in-buttons {
  margin-top: 30px;
}
.onboard-sign-in-buttons .firebaseui-idp-button {
  transform: scale(1.22);
  margin-bottom: 5px;
}

.onboard-summary-wrap {
  text-align: left;
  margin-top: 0px;
  overflow: hidden;
  padding: 0px;
  margin-bottom: 70px;
  background: var(--box-bg);
  border: 1px solid var(--box-border);
  border-radius: 16px;
  box-shadow:
    rgba(0, 0, 0, 0.04) 0px 0px 1px 0px,
    rgba(0, 0, 0, 0.04) 0px 2px 6px 0px,
    rgba(0, 0, 0, 0.04) 0px 10px 20px 0px;
}

.onboard-summary-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0px;
  background: var(--bg2);
  background: transparent;
  padding: 20px 20px 8px 20px;
}

.onboard-summary-header-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.onboard-summary-image {
  width: 100px;
  height: 102px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 9px;
}

.onboard-summary-title {
  letter-spacing: -0.5px;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 31px;
  font-weight: 600;
  color: var(--text-color);
  padding-top: 1px;
}

.onboard-summary-subtitle {
  font-size: 14px;
  line-height: 19px;
  color: var(--text-color2);
  margin-top: 0px;
}

.onboard-summary-author {
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  font-family: var(--font-sans);
  color: var(--text-color);
  padding: 0px 0px 0px 0px;
  font-weight: 400;
  color: var(--text-color2);
}
.onboard-summary-author b {
  color: var(--text-color);
  font-weight: 500;
}
.onboard-summary-year,
.onboard-summary-pages {
  display: inline-block;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  font-family: var(--font-sans);
  position: relative;
  top: -1px;
  color: var(--text-color2);
  border-left: 1px solid var(--border-color);
  margin-left: 9px;
  padding-left: 14px;
}

.onboard-summary-content {
  margin-top: 0px;
  padding: 5px 20px 10px 20px;
}
.onboard-summary-heading {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 27px;
  font-weight: 600;
  letter-spacing: -0.3px;
  padding: 20px 0px 0px 0px;
  color: var(--text-color);
}
.onboard-summary-heading2 {
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
  padding: 14px 0px 0px 0px;
  color: var(--text-color2);
}
.onboard-summary-quote {
  font-style: italic;
  font-size: 16px;
  line-height: 23px;
  text-align: left;
  font-weight: 400;
  margin: 20px 0px 20px 0px;
  padding: 14px 19px 14px 19px;
  font-family: var(--font-sans);
  background: var(--bg2);
  border-radius: 0px;
  border-left: 3px solid var(--text-color5);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.onboard-summary-text {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-color);
  margin-top: 10px;
}

.onboard-summary-fade {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--box-bg) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}
.theme-dark .onboard-summary-fade {
  background: linear-gradient(
    to bottom,
    var(--box-bg) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}



.onboard-button-choice-share,
.onboard-button-choice-share span {
  width: 56px;
  height: 56px;
}
.onboard-button-choice-share span {
  background-image: url("https://images.sobrief.com/public/icon-share2.png");
  background-size: 27px;
  transform: translateY(-1px);
  filter: var(--image-invert);
}

.onboard-button-results-continue {
  
}

/* Character traits section */
.onboard-character-section {
  padding: 0px 2px 40px 2px;
  text-align: center;
}

.onboard-results-label {
  font-size: 27px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 26px;
  text-align: center;
  padding: 0px 0px;
}

.onboard-character-header {
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border-color2);
  padding: 20px;
  margin: 0px 0px 30px 0px;
  text-align: left;
  display: none;
}

.onboard-character-heading {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  margin-bottom: 15px;
}

.onboard-character-description {
  font-size: 16px;
  line-height: 22px;
  color: var(--text-color2);
  margin-bottom: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.onboard-character-traits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}

.onboard-character-trait {
  display: flex;
  flex-direction: column;
  text-align: left;
  opacity: 0;
  transform: translateX(0px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.onboard-character-trait-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.onboard-character-trait-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  flex: 1;
}

.onboard-character-trait-percentage {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  flex-shrink: 0;
}

.onboard-character-trait-bar {
  width: 100%;
  height: 8px;
  background: var(--bg5);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.onboard-character-trait-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ffa726);
  border-radius: 4px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Books section */
.onboard-books-section {
  padding: 0px 0px 0px 0px;
  text-align: center;
}

.onboard-books-heading {
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  text-align: left;
  padding-bottom: 20px;
}

.onboard-books-heading-button {
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  text-align: left;
  padding: 15px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.onboard-books-heading-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.onboard-books-heading-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.onboard-book-match-pitch {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-color);
  margin-top: 10px;
}

.onboard-books-description {
  margin: 0px 0px 28px 0px;
  text-align: left;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-color2);
}

.onboard-books-preview {
  display: flex;
  gap: 12px;
  margin: 20px 0 30px 0;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.onboard-book-preview-cover {
  flex-shrink: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: blur(4px);
}

.onboard-book-preview-cover img {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-dark .onboard-book-preview-cover img {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.onboard-book-preview-more {
  width: 60px;
  height: 90px;
  background: var(--bg2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 400;
  color: var(--text-color);
  border: 2px solid var(--border-color2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-dark .onboard-book-preview-more {
  background: rgb(40, 40, 40);
  border-color: rgb(60, 60, 60);
}

.onboard-books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.onboard-book-match {
  display: flex;
  align-items: flex-start;
  text-align: left;
  padding: 15px;
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border-color2);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}

.onboard-book-match:hover {
  background: var(--bg3);
  border-color: var(--border-color3);
}

.onboard-book-match-cover {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 14px;
  flex-shrink: 0;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.onboard-book-match-info {
  flex: 1;
  min-width: 0;
}

.onboard-book-match-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  color: var(--text-color);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.onboard-book-match-author {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-color2);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onboard-book-match-dna {
  font-size: 13px;
  font-weight: 600;
  color: #00de89;
  background: rgba(0, 222, 137, 0.1);
  padding: 4px 10px 7px 10px;
  border-radius: 8px;
  display: inline-block;
}

.onboard-book-match-dna span {
  display: block;
  margin-bottom: 4px;
}

.onboard-book-match-dna-progress {
  width: 100%;
  height: 3px;
  background: rgba(0, 222, 137, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.onboard-book-match-dna-fill {
  height: 100%;
  background: #00de89;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.onboard-book-match-reason {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-color2);
  margin-top: 10px;
}

.onboard-share-button-container {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.onboard-share-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.onboard-share-button:hover {
  transform: translateY(-2px);
}

/* Reader Type Section */
.onboard-reader-type-section {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.onboard-reader-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.onboard-reader-type-emoji {
  font-size: 20px;
}

.onboard-reader-type-label {
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
}

.onboard-reader-type-title {
  font-weight: 600;
  padding-bottom: 15px;
  font-size: 23px;
  line-height: 27px;
  text-align: center;
  font-family: var(--font-serif);
}

/* Overview Section */
.onboard-overview-section {
  margin-bottom: 35px;
}

.onboard-overview-card {
  background: var(--bg2);
  border: 3px solid var(--border-color2);
  border-radius: 18px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}

.onboard-overview-quote {
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 80px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--text-color);
  opacity: 0.1;
  display: none;
}

.onboard-overview-text {
  font-size: 17px;
  line-height: 22px;
  color: var(--text-color);
  margin: 0;
  position: relative;
  z-index: 1;
  font-style: normal;
  font-family: var(--font-serif);
  letter-spacing: -0.1px;
}

/* Taste Profile Section */
.onboard-taste-section {
  margin-bottom: 50px;
}



.onboard-profile-heading {
  font-size: 18px;
  font-weight: 500;
  margin: 27px 0px 10px 0px;
  text-align: left;
}



.onboard-taste-grid {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.onboard-taste-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 11px 18px;
  background: var(--bg2);
  border: 2px solid var(--border-color2);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.onboard-taste-item:hover {
  
}

.onboard-taste-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.onboard-taste-text {
  font-size: 16px;
  line-height: 20px;
  color: var(--text-color);
  flex: 1;
  text-align: left;
  font-family: var(--font-serif);
}

/* Handpicked Recommendations Section */
.onboard-handpicked-section {
  margin-bottom: 50px;
}



.onboard-handpicked-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.onboard-handpicked-book {
  position: relative;
  padding: 25px;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border-color2);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.onboard-handpicked-book:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.onboard-handpicked-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.onboard-handpicked-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  margin: 0 50px 8px 0;
  color: var(--text-color);
}

.onboard-handpicked-author {
  font-size: 14px;
  color: var(--text-color2);
  margin: 0 0 15px 0;
}

.onboard-handpicked-description {
  font-size: 15px;
  line-height: 23px;
  color: var(--text-color);
  margin: 0;
}

@media (max-width: 420px) {
  .onboard-books-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .onboard-character-trait-name {
    font-size: 15px;
  }
  
  .onboard-character-trait-percentage {
    font-size: 15px;
  }
    
  .onboard-handpicked-title {
    font-size: 18px;
    line-height: 24px;
  }
}

/* Swipe History Button and Panel */
.onboard-button-choice-history {
  border: 1.8px solid rgba(255,255,255,0.9);
  position: relative;
}
.theme-dark .onboard-button-choice-history {
  border: 1.5px solid rgba(255,255,255,0.07);
}

.onboard-button-choice-history span {
  background-image: url('https://sobrief.com/images/icon-history2.png');
  background-image: url('https://sobrief.com/images/icon-list.png');
  background-image: url('https://sobrief.com/images/icon-swipe.png');
  background-size: 29px;
  transform: none;
  filter: var(--image-invert);
}

.onboard-button-choice-history:hover {
  transform: scale(1.02);
}

.onboard-button-choice-history-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: rgb(98, 222, 153);
  color: rgba(255,255,255,0.98);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 21px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 21px;
  line-height: 17px;
  display: none;
}
.theme-dark .onboard-button-choice-history-badge {
  color: rgba(0,0,0,0.98);
}

/* Swipe History Backdrop */
.swipe-history-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  touch-action: none; /* Prevent touch scrolling on backdrop */

  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.theme-dark .swipe-history-backdrop {
  background: rgba(0,0,0,0.8);
  background: rgba(255,255,255,0.09);
}

.swipe-history-backdrop-visible {
  opacity: 1;
  pointer-events: all;
}

/* Swipe History Panel */
.swipe-history-panel {
  position: fixed;
  bottom: -100px; /* Extended below viewport to hide gap during bounce */
  left: 0;
  right: 0;
  height: calc(65vh + 100px); /* Add extra height to compensate */
  max-height: 700px; /* Increased to account for extra height */
  background: var(--page-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(var(--page-bg-colors), 0.98);
  transform: translateY(calc(100% + 100px)); /* Match animation start position */
  z-index: 1000;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  visibility: hidden;
  will-change: transform;
  touch-action: none; /* Prevent default touch behaviors */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;

  background: rgba(var(--page-bg-colors), 0.87);
}
.theme-light .swipe-history-panel {
  background: rgba(var(--page-bg-colors), 0.7);
}

@keyframes slideUpBounce {
  0% {
    transform: translateY(calc(100% + 50px));
  }
  65% {
    transform: translateY(-0.02%);
  }
  80% {
    transform: translateY(0.02%);
  }
  95% {
    transform: translateY(-0.01%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes slideDownBounce {
  0% {
    transform: translateY(0);
  }
  5% {
    transform: translateY(-0.1%);
  }
  100% {
    transform: translateY(calc(100% + 50px));
  }
}

.swipe-history-panel-visible {
  visibility: visible;
  animation: slideUpBounce 0.5s cubic-bezier(0.34, 1, 0.64, 1) forwards;
}

.swipe-history-panel-closing {
  animation: slideDownBounce 0.18s cubic-bezier(0.36, 0, 0.66, -0.2) forwards;
}

.swipe-history-inner {
  height: calc(100% - 100px); /* Subtract the extra bottom extension */
  display: flex;
  flex-direction: column;
  padding: 15px;
  padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  touch-action: auto; /* Allow touch events within the inner content */
}

.swipe-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
  padding: 1px 0px 0px 9px;
}

.swipe-history-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  padding: 5px 0px 0px 32px;
  width: 100%;
  text-align: center;
  display: none;
}

.swipe-history-close {
  width: 36px;
  height: 36px;
  background: var(--bg3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  top: -17px;
}

.swipe-history-close:hover {
  background: var(--bg4);
  transform: scale(1.05);
}

.swipe-history-close span {
  display: block;
  width: 20px;
  height: 20px;
  background: url("https://images.sobrief.com/public/icon-cross-thin.png") no-repeat center;
  background-size: 16px;
  filter: var(--image-invert);
}

.swipe-history-switcher-wrap {
  margin-bottom: 0px;
  padding: 0px 0px 7px 0px;
  text-align: center;
}

.swipe-history-switcher-wrap .switcher {
  background: var(--bg3);
  border-radius: 100px;
  padding: 0px;
  display: inline-flex;
  gap: 4px;
  margin: 10px 0px 10px 1px;
}

.swipe-history-switcher-wrap .swipe-switch {
  position: relative;
  padding: 11px 23px 9px 41px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-color2);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.8px solid transparent;
  border: none;
}

.swipe-history-switcher-wrap .swipe-switch-selected {
  background: var(--bg6);
  color: var(--text-color);
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05), 0px 0px 1px rgb(245, 245, 245);
  box-shadow: 0px 2px 10px -2px rgba(0, 0, 0, 0.12), 0px 0px 1px rgb(245, 245, 245);
}
.theme-dark .swipe-history-switcher-wrap .swipe-switch-selected {
  border-color: rgba(255,255,255,0.07);
  box-shadow: none;
}

.switch-icon {
  display: block;
  width: 18px;
  height: 18px;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  filter: var(--image-invert);
  filter: none;
  opacity: 0.8;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.swipe-switch-selected .switch-icon {
  opacity: 1;
}

.switch-icon-liked {
  background-image: url("https://sobrief.com/images/icon-heart-green2.png");
}

.switch-icon-disliked {
  background-image: url("https://sobrief.com/images/icon-cross-red2.png");
}

.switch-count {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.swipe-switch-selected .switch-count {
  color: var(--text-color);
}

.swipe-history-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  overscroll-behavior: contain;
  touch-action: pan-y; /* Allow vertical scrolling only */
  -webkit-user-select: none;
  user-select: none;
}

.swipe-history-list {
  display: none;
  opacity: 0;
  transform: translateX(20px);
}

.swipe-history-list-visible {
  display: block;
  animation: fadeInList 0.3s ease-out forwards;
}

@keyframes fadeInList {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.swipe-history-item {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  margin-bottom: 12px;
  background: var(--bg2);
  border-radius: 16px;
  transition: all 0.2s ease;
  cursor: pointer;

  background: rgba(250,250,250,0.9);
  background: transparent;
  /*
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);*/
}

.swipe-history-item:hover {
  /*background: var(--bg3);*/
}

.swipe-history-item-cover {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swipe-history-item-info {
  flex: 1;
  padding-left: 16px;
  min-width: 0;
}

.swipe-history-item-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.swipe-history-item-author {
  font-size: 14px;
  color: var(--text-color2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swipe-history-empty {
  text-align: center;
  padding: 120px 20px;
  color: var(--text-color2);
  font-size: 16px;
}

/* Make sure the panel is above other elements */
.swipe-history-panel-visible + .onboard-footer {
  z-index: 999;
}

/* Scrollbar styling for the content area */
.swipe-history-content::-webkit-scrollbar {
  width: 6px;
}

.swipe-history-content::-webkit-scrollbar-track {
  background: transparent;
}

.swipe-history-content::-webkit-scrollbar-thumb {
  background: var(--text-color5);
  border-radius: 3px;
}

.swipe-history-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-color4);
}

/* Profile loading state */
.onboard-profile-loading {
  text-align: center;
  padding: 40px 20px;
}

.onboard-profile-loading-text {
  font-size: 16px;
  color: var(--text-color2);
  margin-bottom: 20px;
}

.onboard-profile-loading-progress {
  width: 100%;
  max-width: 300px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.onboard-profile-loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b6b, #ffa726);
  border-radius: 2px;
}

/* Sign-up close button */
.onboard-sign-up-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--bg5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.onboard-sign-up-close:hover {
  background: var(--bg4);
  transform: scale(1.05);
}

.onboard-sign-up-close span {
  display: block;
  width: 20px;
  height: 20px;
  background: url("https://images.sobrief.com/public/icon-cross-thin.png") no-repeat center;
  background-size: 16px;
  filter: var(--image-invert);
}




/* Video gradient fade */
.onboard-intro-video {
  position: relative;
}

.onboard-intro-video::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent 0%, var(--page-bg) 100%);
  pointer-events: none;
}

/* Scrollbar styling for webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg5);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-color5);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-color4);
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--text-color5) var(--bg5);
}

/* Swipe completion page styles */
.onboard-email-preference {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0px 0 0px 0;
}

.onboard-button-email {
  flex: 1;
  max-width: 180px;
  padding: 15px 17px;
  font-size: 16px;
  text-align: center;
}

.onboard-feedback-section {
  margin-top: 40px;
  padding: 18px 15px 18px 15px;
  background: var(--bg3);
  border-radius: 12px;
}

.onboard-feedback-label {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 11px;
  text-align: center;
  padding-top: 0px;
}

.onboard-feedback-textarea {
  width: 100%;
  padding: 15px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-color);
  font-family: Inter, sans-serif;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 10px;
}

.onboard-feedback-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.onboard-button-feedback {
  width: auto;
  margin: 0 auto;
  background: var(--page-bg);
  padding: 9px 18px;
  font-size: 15px;
  display: inline-block;
  border-radius: 14px;
}
.onboard-button-feedback:hover {
  background: var(--page-bg);
}

/* Inline swipe history section */
.onboard-swipe-history-section {
  margin-top: 25px;
  padding: 0 0px;
}

.onboard-swipe-history-header {
  text-align: center;
  margin-bottom: 20px;
}

.onboard-swipe-history-title {
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  text-align: left;
  padding-bottom: 5px;
}

.onboard-swipe-history-switcher-wrap {
  margin-bottom: 20px;
  text-align: center;
}

.onboard-swipe-history-switcher-wrap .switcher {
  background: var(--bg3);
  border-radius: 100px;
  padding: 0px;
  display: inline-flex;
  gap: 4px;
  margin: 0 auto;
}

.onboard-swipe-history-switcher-wrap .swipe-switch {
  position: relative;
  padding: 11px 23px 9px 41px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-color2);
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.onboard-swipe-history-switcher-wrap .swipe-switch-selected {
  background: var(--bg6);
  color: var(--text-color);
  box-shadow: 0px 2px 10px -2px rgba(0, 0, 0, 0.12), 0px 0px 1px rgb(245, 245, 245);
}

.theme-dark .onboard-swipe-history-switcher-wrap .swipe-switch-selected {
  box-shadow: none;
}

.onboard-swipe-history-content {
  /*
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;*/
  position: relative;
  margin-bottom: 20px;
}

/* Copy switch icon styles from the panel CSS */
.switch-icon {
  display: block;
  width: 18px;
  height: 18px;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.swipe-switch-selected .switch-icon {
  opacity: 1;
}

.switch-icon-liked {
  background-image: url("https://sobrief.com/images/icon-heart-green2.png");
}

.switch-icon-disliked {
  background-image: url("https://sobrief.com/images/icon-cross-red2.png");
}

.switch-count {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.swipe-switch-selected .switch-count {
  color: var(--text-color);
}

.swipe-history-list {
  display: none;
  opacity: 0;
  transform: translateX(20px);
}

.swipe-history-list-visible {
  display: block;
  animation: fadeInList 0.3s ease-out forwards;
}

@keyframes fadeInList {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.swipe-history-item {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  margin-bottom: 4px;
  background: transparent;
  border-radius: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.swipe-history-item:hover {
  background: var(--bg2);
}

.swipe-history-item-cover {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swipe-history-item-info {
  flex: 1;
  padding-left: 16px;
  min-width: 0;
}

.swipe-history-item-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.swipe-history-item-author {
  font-size: 14px;
  color: var(--text-color2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.swipe-history-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-color2);
  font-size: 16px;
}

/* Profile book action button */
.profile-book-actions {
  margin-left: 12px;
  flex-shrink: 0;
}

.profile-book-button {
  display: inline-flex;
  align-items: center;
  background: var(--input-bg);
  border-radius: 100px;
  padding: 8px 8px 8px 12px;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  height: 32px;
  text-decoration: none;
  transition: border-color 0.17s ease, background-color 0.17s ease;
  user-select: none;
  box-shadow: 0px 2px 8px -2px rgba(0, 0, 0, 0.07);
  position: relative;
  color: var(--text-color);
  min-width: 0;
  gap: 0;

  padding: 0px 6px 0px 12px;
  font-size: 14px;
  height: auto;
  font-weight: 400;
}

.theme-dark .profile-book-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-book-button:hover {
  box-shadow: 0px 4px 12px -2px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--text-color);
}

.theme-dark .profile-book-button:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-book-button-text {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  margin-right: 6px;
  padding: 7px 8px 7px 2px;
}
.theme-dark .profile-book-button-text {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-book-button-icon {
  width: 20px;
  height: 20px;
  background: var(--play-button-bg);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-book-button-icon-inner {
  width: 20px;
  height: 20px;
  background: transparent url("https://images.sobrief.com/public/icon-play.png") no-repeat 57% 50%;
  background-size: 9px;
  filter: var(--image-invert2);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .profile-book-actions {
    margin-left: 8px;
  }
  
  .profile-book-button {
    
  }
  
  .profile-book-button-text {
    
  }
  
  .profile-book-button-icon {
    width: 18px;
    height: 18px;
  }
  
  .profile-book-button-icon-inner {
    width: 18px;
    height: 18px;
    background-size: 9px;
  }
  
  .swipe-history-item {
    padding: 6px 8px;
  }
  
  .swipe-history-item-info {
    padding-left: 12px;
  }
}

/* Override default swipe-history-list styles for profile - moved from inline JS */
#profile_history_liked.profile-list-visible,
#profile_history_disliked.profile-list-visible {
  display: block;
  opacity: 1;
  transform: none;
}

/* Profile loading progress animation - moved from inline JS */
@keyframes profileLoadProgress {
  from { width: 0%; }
  to { width: 100%; }
}



