:root {
  --swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);
  --swal2-container-padding: 0.625em;
  --swal2-backdrop: rgba(0, 0, 0, 0.4);
  --swal2-backdrop-transition: background-color 0.1s;
  --swal2-width: 32em;
  --swal2-padding: 0 0 1.25em;
  --swal2-border: none;
  --swal2-border-radius: 0.3125rem;
  --swal2-background: white;
  --swal2-color: #545454;
  --swal2-show-animation: swal2-show 0.3s;
  --swal2-hide-animation: swal2-hide 0.15s forwards;
  --swal2-icon-zoom: 1;
  --swal2-icon-animations: true;
  --swal2-title-padding: 0.8em 1em 0;
  --swal2-html-container-padding: 1em 1.6em 0.3em;
  --swal2-input-border: 1px solid #d9d9d9;
  --swal2-input-border-radius: 0.1875em;
  --swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;
  --swal2-input-background: transparent;
  --swal2-input-transition: border-color 0.2s, box-shadow 0.2s;
  --swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;
  --swal2-input-focus-border: 1px solid #b4dbed;
  --swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px $swal2-outline-color;
  --swal2-progress-step-background: #add8e6;
  --swal2-validation-message-background: #f0f0f0;
  --swal2-validation-message-color: #666;
  --swal2-footer-border-color: #eee;
  --swal2-footer-background: transparent;
  --swal2-footer-color: inherit;
  --swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);
  --swal2-close-button-position: initial;
  --swal2-close-button-inset: auto;
  --swal2-close-button-font-size: 2.5em;
  --swal2-close-button-color: #ccc;
  --swal2-close-button-transition: color 0.2s, box-shadow 0.2s;
  --swal2-close-button-outline: initial;
  --swal2-close-button-box-shadow: inset 0 0 0 3px transparent;
  --swal2-close-button-focus-box-shadow: inset var(--swal2-outline);
  --swal2-close-button-hover-transform: none;
  --swal2-actions-justify-content: center;
  --swal2-actions-width: auto;
  --swal2-actions-margin: 1.25em auto 0;
  --swal2-actions-padding: 0;
  --swal2-actions-border-radius: 0;
  --swal2-actions-background: transparent;
  --swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;
  --swal2-action-button-hover: black 10%;
  --swal2-action-button-active: black 10%;
  --swal2-confirm-button-box-shadow: none;
  --swal2-confirm-button-border-radius: 0.25em;
  --swal2-confirm-button-background-color: #7066e0;
  --swal2-confirm-button-color: #fff;
  --swal2-deny-button-box-shadow: none;
  --swal2-deny-button-border-radius: 0.25em;
  --swal2-deny-button-background-color: #dc3741;
  --swal2-deny-button-color: #fff;
  --swal2-cancel-button-box-shadow: none;
  --swal2-cancel-button-border-radius: 0.25em;
  --swal2-cancel-button-background-color: #6e7881;
  --swal2-cancel-button-color: #fff;
  --swal2-toast-show-animation: swal2-toast-show 0.5s;
  --swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;
  --swal2-toast-border: none;
  --swal2-toast-box-shadow:
    0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075),
    1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075);
}

[data-swal2-theme=dark] {
  --swal2-dark-theme-black: #19191a;
  --swal2-dark-theme-white: #e1e1e1;
  --swal2-background: var(--swal2-dark-theme-black);
  --swal2-color: var(--swal2-dark-theme-white);
  --swal2-footer-border-color: #555;
  --swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);
  --swal2-validation-message-background: color-mix(
    in srgb,
    var(--swal2-dark-theme-black),
    var(--swal2-dark-theme-white) 10%
  );
  --swal2-validation-message-color: var(--swal2-dark-theme-white);
  --swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7);
}

@media (prefers-color-scheme: dark) {
  [data-swal2-theme=auto] {
    --swal2-dark-theme-black: #19191a;
    --swal2-dark-theme-white: #e1e1e1;
    --swal2-background: var(--swal2-dark-theme-black);
    --swal2-color: var(--swal2-dark-theme-white);
    --swal2-footer-border-color: #555;
    --swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);
    --swal2-validation-message-background: color-mix(
      in srgb,
      var(--swal2-dark-theme-black),
      var(--swal2-dark-theme-white) 10%
    );
    --swal2-validation-message-color: var(--swal2-dark-theme-white);
    --swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7);
  }
}
body.swal2-shown:not(.swal2-no-backdrop, .swal2-toast-shown) {
  overflow: hidden;
}
body.swal2-height-auto {
  height: auto !important;
}
body.swal2-no-backdrop .swal2-container {
  background-color: transparent !important;
  pointer-events: none;
}
body.swal2-no-backdrop .swal2-container .swal2-popup {
  pointer-events: all;
}
body.swal2-no-backdrop .swal2-container .swal2-modal {
  box-shadow: 0 0 10px var(--swal2-backdrop);
}
body.swal2-toast-shown .swal2-container {
  box-sizing: border-box;
  width: 360px;
  max-width: 100%;
  background-color: transparent;
  pointer-events: none;
}
body.swal2-toast-shown .swal2-container.swal2-top {
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
}
body.swal2-toast-shown .swal2-container.swal2-top-end, body.swal2-toast-shown .swal2-container.swal2-top-right {
  inset: 0 0 auto auto;
}
body.swal2-toast-shown .swal2-container.swal2-top-start, body.swal2-toast-shown .swal2-container.swal2-top-left {
  inset: 0 auto auto 0;
}
body.swal2-toast-shown .swal2-container.swal2-center-start, body.swal2-toast-shown .swal2-container.swal2-center-left {
  inset: 50% auto auto 0;
  transform: translateY(-50%);
}
body.swal2-toast-shown .swal2-container.swal2-center {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
body.swal2-toast-shown .swal2-container.swal2-center-end, body.swal2-toast-shown .swal2-container.swal2-center-right {
  inset: 50% 0 auto auto;
  transform: translateY(-50%);
}
body.swal2-toast-shown .swal2-container.swal2-bottom-start, body.swal2-toast-shown .swal2-container.swal2-bottom-left {
  inset: auto auto 0 0;
}
body.swal2-toast-shown .swal2-container.swal2-bottom {
  inset: auto auto 0 50%;
  transform: translateX(-50%);
}
body.swal2-toast-shown .swal2-container.swal2-bottom-end, body.swal2-toast-shown .swal2-container.swal2-bottom-right {
  inset: auto 0 0 auto;
}
@media print {
  body.swal2-shown:not(.swal2-no-backdrop, .swal2-toast-shown) {
    overflow-y: scroll !important;
  }
  body.swal2-shown:not(.swal2-no-backdrop, .swal2-toast-shown) > [aria-hidden=true] {
    display: none;
  }
  body.swal2-shown:not(.swal2-no-backdrop, .swal2-toast-shown) .swal2-container {
    position: static !important;
  }
}

div:where(.swal2-container) {
  display: grid;
  position: fixed;
  z-index: 1060;
  inset: 0;
  box-sizing: border-box;
  grid-template-areas: "top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";
  grid-template-rows: minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);
  height: 100%;
  padding: var(--swal2-container-padding);
  overflow-x: hidden;
  transition: var(--swal2-backdrop-transition);
  -webkit-overflow-scrolling: touch;
}
div:where(.swal2-container).swal2-backdrop-show, div:where(.swal2-container).swal2-noanimation {
  background: var(--swal2-backdrop);
}
div:where(.swal2-container).swal2-backdrop-hide {
  background: transparent !important;
}
div:where(.swal2-container).swal2-top-start, div:where(.swal2-container).swal2-center-start, div:where(.swal2-container).swal2-bottom-start {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
div:where(.swal2-container).swal2-top, div:where(.swal2-container).swal2-center, div:where(.swal2-container).swal2-bottom {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
div:where(.swal2-container).swal2-top-end, div:where(.swal2-container).swal2-center-end, div:where(.swal2-container).swal2-bottom-end {
  grid-template-columns: auto auto minmax(0, 1fr);
}
div:where(.swal2-container).swal2-top-start > .swal2-popup {
  align-self: start;
}
div:where(.swal2-container).swal2-top > .swal2-popup {
  grid-column: 2;
  place-self: start center;
}
div:where(.swal2-container).swal2-top-end > .swal2-popup, div:where(.swal2-container).swal2-top-right > .swal2-popup {
  grid-column: 3;
  place-self: start end;
}
div:where(.swal2-container).swal2-center-start > .swal2-popup, div:where(.swal2-container).swal2-center-left > .swal2-popup {
  grid-row: 2;
  align-self: center;
}
div:where(.swal2-container).swal2-center > .swal2-popup {
  grid-column: 2;
  grid-row: 2;
  place-self: center center;
}
div:where(.swal2-container).swal2-center-end > .swal2-popup, div:where(.swal2-container).swal2-center-right > .swal2-popup {
  grid-column: 3;
  grid-row: 2;
  place-self: center end;
}
div:where(.swal2-container).swal2-bottom-start > .swal2-popup, div:where(.swal2-container).swal2-bottom-left > .swal2-popup {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
}
div:where(.swal2-container).swal2-bottom > .swal2-popup {
  grid-column: 2;
  grid-row: 3;
  place-self: end center;
}
div:where(.swal2-container).swal2-bottom-end > .swal2-popup, div:where(.swal2-container).swal2-bottom-right > .swal2-popup {
  grid-column: 3;
  grid-row: 3;
  place-self: end end;
}
div:where(.swal2-container).swal2-grow-row > .swal2-popup, div:where(.swal2-container).swal2-grow-fullscreen > .swal2-popup {
  grid-column: 1/4;
  width: 100%;
}
div:where(.swal2-container).swal2-grow-column > .swal2-popup, div:where(.swal2-container).swal2-grow-fullscreen > .swal2-popup {
  grid-row: 1/4;
  align-self: stretch;
}
div:where(.swal2-container).swal2-no-transition {
  transition: none !important;
}
div:where(.swal2-container)[popover] {
  width: auto;
  border: 0;
}
div:where(.swal2-container) div:where(.swal2-popup) {
  display: none;
  position: relative;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 100%);
  width: var(--swal2-width);
  max-width: 100%;
  padding: var(--swal2-padding);
  border: var(--swal2-border);
  border-radius: var(--swal2-border-radius);
  background: var(--swal2-background);
  color: var(--swal2-color);
  font-family: inherit;
  font-size: 1rem;
  container-name: swal2-popup;
}
div:where(.swal2-container) div:where(.swal2-popup):focus {
  outline: none;
}
div:where(.swal2-container) div:where(.swal2-popup).swal2-loading {
  overflow-y: hidden;
}
div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable {
  cursor: grab;
}
div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon) {
  cursor: grab;
}
div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging {
  cursor: grabbing;
}
div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon) {
  cursor: grabbing;
}
div:where(.swal2-container) h2:where(.swal2-title) {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: var(--swal2-title-padding);
  color: inherit;
  font-size: 1.875em;
  font-weight: 600;
  text-align: center;
  text-transform: none;
  overflow-wrap: break-word;
  cursor: initial;
}
div:where(.swal2-container) div:where(.swal2-actions) {
  display: flex;
  z-index: 1;
  box-sizing: border-box;
  flex-wrap: wrap;
  align-items: center;
  justify-content: var(--swal2-actions-justify-content);
  width: var(--swal2-actions-width);
  margin: var(--swal2-actions-margin);
  padding: var(--swal2-actions-padding);
  border-radius: var(--swal2-actions-border-radius);
  background: var(--swal2-actions-background);
}
div:where(.swal2-container) div:where(.swal2-loader) {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.2em;
  height: 2.2em;
  margin: 0 1.875em;
  animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
  border-width: 0.25em;
  border-style: solid;
  border-radius: 100%;
  border-color: #2778c4 transparent #2778c4 transparent;
}
div:where(.swal2-container) button:where(.swal2-styled) {
  margin: 0.3125em;
  padding: 0.625em 1.1em;
  transition: var(--swal2-action-button-transition);
  border: none;
  box-shadow: 0 0 0 3px transparent;
  font-weight: 500;
}
div:where(.swal2-container) button:where(.swal2-styled):not([disabled]) {
  cursor: pointer;
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
  border-radius: var(--swal2-confirm-button-border-radius);
  background: initial;
  background-color: var(--swal2-confirm-button-background-color);
  box-shadow: var(--swal2-confirm-button-box-shadow);
  color: var(--swal2-confirm-button-color);
  font-size: 1em;
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover {
  background-color: color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover));
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active {
  background-color: color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active));
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny) {
  border-radius: var(--swal2-deny-button-border-radius);
  background: initial;
  background-color: var(--swal2-deny-button-background-color);
  box-shadow: var(--swal2-deny-button-box-shadow);
  color: var(--swal2-deny-button-color);
  font-size: 1em;
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover {
  background-color: color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover));
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active {
  background-color: color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active));
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel) {
  border-radius: var(--swal2-cancel-button-border-radius);
  background: initial;
  background-color: var(--swal2-cancel-button-background-color);
  box-shadow: var(--swal2-cancel-button-box-shadow);
  color: var(--swal2-cancel-button-color);
  font-size: 1em;
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover {
  background-color: color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover));
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active {
  background-color: color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active));
}
div:where(.swal2-container) button:where(.swal2-styled):focus-visible {
  outline: none;
  box-shadow: var(--swal2-action-button-focus-box-shadow);
}
div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading) {
  opacity: 0.4;
}
div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner {
  border: 0;
}
div:where(.swal2-container) div:where(.swal2-footer) {
  margin: 1em 0 0;
  padding: 1em 1em 0;
  border-top: 1px solid var(--swal2-footer-border-color);
  background: var(--swal2-footer-background);
  color: var(--swal2-footer-color);
  font-size: 1em;
  text-align: center;
  cursor: initial;
}
div:where(.swal2-container) .swal2-timer-progress-bar-container {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  grid-column: auto !important;
  overflow: hidden;
  border-bottom-right-radius: var(--swal2-border-radius);
  border-bottom-left-radius: var(--swal2-border-radius);
}
div:where(.swal2-container) div:where(.swal2-timer-progress-bar) {
  width: 100%;
  height: 0.25em;
  background: var(--swal2-timer-progress-bar-background);
}
div:where(.swal2-container) img:where(.swal2-image) {
  max-width: 100%;
  margin: 2em auto 1em;
  cursor: initial;
}
div:where(.swal2-container) button:where(.swal2-close) {
  position: var(--swal2-close-button-position);
  inset: var(--swal2-close-button-inset);
  z-index: 2;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: -1.2em;
  padding: 0;
  overflow: hidden;
  transition: var(--swal2-close-button-transition);
  border: none;
  border-radius: var(--swal2-border-radius);
  outline: var(--swal2-close-button-outline);
  background: transparent;
  color: var(--swal2-close-button-color);
  font-family: monospace;
  font-size: var(--swal2-close-button-font-size);
  cursor: pointer;
  justify-self: end;
}
div:where(.swal2-container) button:where(.swal2-close):hover {
  transform: var(--swal2-close-button-hover-transform);
  background: transparent;
  color: #f27474;
}
div:where(.swal2-container) button:where(.swal2-close):focus-visible {
  outline: none;
  box-shadow: var(--swal2-close-button-focus-box-shadow);
}
div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner {
  border: 0;
}
div:where(.swal2-container) div:where(.swal2-html-container) {
  z-index: 1;
  justify-content: center;
  margin: 0;
  padding: var(--swal2-html-container-padding);
  overflow: auto;
  color: inherit;
  font-size: 1.125em;
  font-weight: normal;
  line-height: normal;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
  cursor: initial;
}
div:where(.swal2-container) input:where(.swal2-input),
div:where(.swal2-container) input:where(.swal2-file),
div:where(.swal2-container) textarea:where(.swal2-textarea),
div:where(.swal2-container) select:where(.swal2-select),
div:where(.swal2-container) div:where(.swal2-radio),
div:where(.swal2-container) label:where(.swal2-checkbox) {
  margin: 1em 2em 3px;
}
div:where(.swal2-container) input:where(.swal2-input),
div:where(.swal2-container) input:where(.swal2-file),
div:where(.swal2-container) textarea:where(.swal2-textarea) {
  box-sizing: border-box;
  width: auto;
  transition: var(--swal2-input-transition);
  border: var(--swal2-input-border);
  border-radius: var(--swal2-input-border-radius);
  background: var(--swal2-input-background);
  box-shadow: var(--swal2-input-box-shadow);
  color: inherit;
  font-size: 1.125em;
}
div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,
div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,
div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror {
  border-color: #f27474 !important;
  box-shadow: 0 0 2px #f27474 !important;
}
div:where(.swal2-container) input:where(.swal2-input):hover,
div:where(.swal2-container) input:where(.swal2-file):hover,
div:where(.swal2-container) textarea:where(.swal2-textarea):hover {
  box-shadow: var(--swal2-input-hover-box-shadow);
}
div:where(.swal2-container) input:where(.swal2-input):focus,
div:where(.swal2-container) input:where(.swal2-file):focus,
div:where(.swal2-container) textarea:where(.swal2-textarea):focus {
  border: var(--swal2-input-focus-border);
  outline: none;
  box-shadow: var(--swal2-input-focus-box-shadow);
}
div:where(.swal2-container) input:where(.swal2-input)::-moz-placeholder, div:where(.swal2-container) input:where(.swal2-file)::-moz-placeholder, div:where(.swal2-container) textarea:where(.swal2-textarea)::-moz-placeholder {
  color: #ccc;
}
div:where(.swal2-container) input:where(.swal2-input)::placeholder,
div:where(.swal2-container) input:where(.swal2-file)::placeholder,
div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder {
  color: #ccc;
}
div:where(.swal2-container) .swal2-range {
  margin: 1em 2em 3px;
  background: var(--swal2-background);
}
div:where(.swal2-container) .swal2-range input {
  width: 80%;
}
div:where(.swal2-container) .swal2-range output {
  width: 20%;
  color: inherit;
  font-weight: 600;
  text-align: center;
}
div:where(.swal2-container) .swal2-range input,
div:where(.swal2-container) .swal2-range output {
  height: 2.625em;
  padding: 0;
  font-size: 1.125em;
  line-height: 2.625em;
}
div:where(.swal2-container) .swal2-input {
  height: 2.625em;
  padding: 0 0.75em;
}
div:where(.swal2-container) .swal2-file {
  width: 75%;
  margin-right: auto;
  margin-left: auto;
  background: var(--swal2-input-background);
  font-size: 1.125em;
}
div:where(.swal2-container) .swal2-textarea {
  height: 6.75em;
  padding: 0.75em;
}
div:where(.swal2-container) .swal2-select {
  min-width: 50%;
  max-width: 100%;
  padding: 0.375em 0.625em;
  background: var(--swal2-input-background);
  color: inherit;
  font-size: 1.125em;
}
div:where(.swal2-container) .swal2-radio,
div:where(.swal2-container) .swal2-checkbox {
  align-items: center;
  justify-content: center;
  background: var(--swal2-background);
  color: inherit;
}
div:where(.swal2-container) .swal2-radio label,
div:where(.swal2-container) .swal2-checkbox label {
  margin: 0 0.6em;
  font-size: 1.125em;
}
div:where(.swal2-container) .swal2-radio input,
div:where(.swal2-container) .swal2-checkbox input {
  flex-shrink: 0;
  margin: 0 0.4em;
}
div:where(.swal2-container) label:where(.swal2-input-label) {
  display: flex;
  justify-content: center;
  margin: 1em auto 0;
}
div:where(.swal2-container) div:where(.swal2-validation-message) {
  align-items: center;
  justify-content: center;
  margin: 1em 0 0;
  padding: 0.625em;
  overflow: hidden;
  background: var(--swal2-validation-message-background);
  color: var(--swal2-validation-message-color);
  font-size: 1em;
  font-weight: 300;
}
div:where(.swal2-container) div:where(.swal2-validation-message)::before {
  content: "!";
  display: inline-block;
  width: 1.5em;
  min-width: 1.5em;
  height: 1.5em;
  margin: 0 0.625em;
  border-radius: 50%;
  background-color: #f27474;
  color: #fff;
  font-weight: 600;
  line-height: 1.5em;
  text-align: center;
}
div:where(.swal2-container) .swal2-progress-steps {
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
  margin: 1.25em auto;
  padding: 0;
  background: transparent;
  font-weight: 600;
}
div:where(.swal2-container) .swal2-progress-steps li {
  display: inline-block;
  position: relative;
}
div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step {
  z-index: 20;
  flex-shrink: 0;
  width: 2em;
  height: 2em;
  border-radius: 2em;
  background: #2778c4;
  color: #fff;
  line-height: 2em;
  text-align: center;
}
div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step {
  background: #2778c4;
}
div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step ~ .swal2-progress-step {
  background: var(--swal2-progress-step-background);
  color: #fff;
}
div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step ~ .swal2-progress-step-line {
  background: var(--swal2-progress-step-background);
}
div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line {
  z-index: 10;
  flex-shrink: 0;
  width: 2.5em;
  height: 0.4em;
  margin: 0 -1px;
  background: #2778c4;
}

div:where(.swal2-icon) {
  position: relative;
  box-sizing: content-box;
  justify-content: center;
  width: 5em;
  height: 5em;
  margin: 2.5em auto 0.6em;
  zoom: var(--swal2-icon-zoom);
  border: 0.25em solid transparent;
  border-radius: 50%;
  border-color: #000;
  font-family: inherit;
  line-height: 5em;
  cursor: default;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
div:where(.swal2-icon) .swal2-icon-content {
  display: flex;
  align-items: center;
  font-size: 3.75em;
}
div:where(.swal2-icon).swal2-error {
  border-color: #f27474;
  color: #f27474;
}
div:where(.swal2-icon).swal2-error .swal2-x-mark {
  position: relative;
  flex-grow: 1;
}
div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line] {
  display: block;
  position: absolute;
  top: 2.3125em;
  width: 2.9375em;
  height: 0.3125em;
  border-radius: 0.125em;
  background-color: #f27474;
}
div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left] {
  left: 1.0625em;
  transform: rotate(45deg);
}
div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right] {
  right: 1em;
  transform: rotate(-45deg);
}
@container swal2-popup style(--swal2-icon-animations:true) {
  div:where(.swal2-icon).swal2-error.swal2-icon-show {
    animation: swal2-animate-error-icon 0.5s;
  }
  div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark {
    animation: swal2-animate-error-x-mark 0.5s;
  }
}
div:where(.swal2-icon).swal2-warning {
  border-color: #f8bb86;
  color: #f8bb86;
}
@container swal2-popup style(--swal2-icon-animations:true) {
  div:where(.swal2-icon).swal2-warning.swal2-icon-show {
    animation: swal2-animate-error-icon 0.5s;
  }
  div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content {
    animation: swal2-animate-i-mark 0.5s;
  }
}
div:where(.swal2-icon).swal2-info {
  border-color: #3fc3ee;
  color: #3fc3ee;
}
@container swal2-popup style(--swal2-icon-animations:true) {
  div:where(.swal2-icon).swal2-info.swal2-icon-show {
    animation: swal2-animate-error-icon 0.5s;
  }
  div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content {
    animation: swal2-animate-i-mark 0.8s;
  }
}
div:where(.swal2-icon).swal2-question {
  border-color: #87adbd;
  color: #87adbd;
}
@container swal2-popup style(--swal2-icon-animations:true) {
  div:where(.swal2-icon).swal2-question.swal2-icon-show {
    animation: swal2-animate-error-icon 0.5s;
  }
  div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content {
    animation: swal2-animate-question-mark 0.8s;
  }
}
div:where(.swal2-icon).swal2-success {
  border-color: #a5dc86;
  color: #a5dc86;
}
div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line] {
  position: absolute;
  width: 3.75em;
  height: 7.5em;
  border-radius: 50%;
}
div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left] {
  top: -0.4375em;
  left: -2.0635em;
  transform: rotate(-45deg);
  transform-origin: 3.75em 3.75em;
  border-radius: 7.5em 0 0 7.5em;
}
div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right] {
  top: -0.6875em;
  left: 1.875em;
  transform: rotate(-45deg);
  transform-origin: 0 3.75em;
  border-radius: 0 7.5em 7.5em 0;
}
div:where(.swal2-icon).swal2-success .swal2-success-ring {
  position: absolute;
  z-index: 2;
  top: -0.25em;
  left: -0.25em;
  box-sizing: content-box;
  width: 100%;
  height: 100%;
  border: 0.25em solid rgba(165, 220, 134, 0.3);
  border-radius: 50%;
}
div:where(.swal2-icon).swal2-success .swal2-success-fix {
  position: absolute;
  z-index: 1;
  top: 0.5em;
  left: 1.625em;
  width: 0.4375em;
  height: 5.625em;
  transform: rotate(-45deg);
}
div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
  display: block;
  position: absolute;
  z-index: 2;
  height: 0.3125em;
  border-radius: 0.125em;
  background-color: #a5dc86;
}
div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip] {
  top: 2.875em;
  left: 0.8125em;
  width: 1.5625em;
  transform: rotate(45deg);
}
div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long] {
  top: 2.375em;
  right: 0.5em;
  width: 2.9375em;
  transform: rotate(-45deg);
}
@container swal2-popup style(--swal2-icon-animations:true) {
  div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip {
    animation: swal2-animate-success-line-tip 0.75s;
  }
  div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long {
    animation: swal2-animate-success-line-long 0.75s;
  }
  div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right {
    animation: swal2-rotate-success-circular-line 4.25s ease-in;
  }
}

[class^=swal2] {
  -webkit-tap-highlight-color: transparent;
}

.swal2-show {
  animation: var(--swal2-show-animation);
}

.swal2-hide {
  animation: var(--swal2-hide-animation);
}

.swal2-noanimation {
  transition: none;
}

.swal2-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

.swal2-rtl .swal2-close {
  margin-right: initial;
  margin-left: 0;
}
.swal2-rtl .swal2-timer-progress-bar {
  right: 0;
  left: auto;
}

.swal2-toast {
  box-sizing: border-box;
  grid-column: 1/4 !important;
  grid-row: 1/4 !important;
  grid-template-columns: min-content auto min-content;
  padding: 1em;
  overflow-y: hidden;
  border: var(--swal2-toast-border);
  background: var(--swal2-background);
  box-shadow: var(--swal2-toast-box-shadow);
  pointer-events: all;
}
.swal2-toast > * {
  grid-column: 2;
}
.swal2-toast h2:where(.swal2-title) {
  margin: 0.5em 1em;
  padding: 0;
  font-size: 1em;
  text-align: initial;
}
.swal2-toast .swal2-loading {
  justify-content: center;
}
.swal2-toast input:where(.swal2-input) {
  height: 2em;
  margin: 0.5em;
  font-size: 1em;
}
.swal2-toast .swal2-validation-message {
  font-size: 1em;
}
.swal2-toast div:where(.swal2-footer) {
  margin: 0.5em 0 0;
  padding: 0.5em 0 0;
  font-size: 0.8em;
}
.swal2-toast button:where(.swal2-close) {
  grid-column: 3/3;
  grid-row: 1/99;
  align-self: center;
  width: 0.8em;
  height: 0.8em;
  margin: 0;
  font-size: 2em;
}
.swal2-toast div:where(.swal2-html-container) {
  margin: 0.5em 1em;
  padding: 0;
  overflow: initial;
  font-size: 1em;
  text-align: initial;
}
.swal2-toast div:where(.swal2-html-container):empty {
  padding: 0;
}
.swal2-toast .swal2-loader {
  grid-column: 1;
  grid-row: 1/99;
  align-self: center;
  width: 2em;
  height: 2em;
  margin: 0.25em;
}
.swal2-toast .swal2-icon {
  grid-column: 1;
  grid-row: 1/99;
  align-self: center;
  width: 2em;
  min-width: 2em;
  height: 2em;
  margin: 0 0.5em 0 0;
}
.swal2-toast .swal2-icon .swal2-icon-content {
  display: flex;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
}
.swal2-toast .swal2-icon.swal2-success .swal2-success-ring {
  width: 2em;
  height: 2em;
}
.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
  top: 0.875em;
  width: 1.375em;
}
.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left] {
  left: 0.3125em;
}
.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right] {
  right: 0.3125em;
}
.swal2-toast div:where(.swal2-actions) {
  justify-content: flex-start;
  height: auto;
  margin: 0;
  margin-top: 0.5em;
  padding: 0 0.5em;
}
.swal2-toast button:where(.swal2-styled) {
  margin: 0.25em 0.5em;
  padding: 0.4em 0.6em;
  font-size: 1em;
}
.swal2-toast .swal2-success {
  border-color: #a5dc86;
}
.swal2-toast .swal2-success [class^=swal2-success-circular-line] {
  position: absolute;
  width: 1.6em;
  height: 3em;
  border-radius: 50%;
}
.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left] {
  top: -0.8em;
  left: -0.5em;
  transform: rotate(-45deg);
  transform-origin: 2em 2em;
  border-radius: 4em 0 0 4em;
}
.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right] {
  top: -0.25em;
  left: 0.9375em;
  transform-origin: 0 1.5em;
  border-radius: 0 4em 4em 0;
}
.swal2-toast .swal2-success .swal2-success-ring {
  width: 2em;
  height: 2em;
}
.swal2-toast .swal2-success .swal2-success-fix {
  top: 0;
  left: 0.4375em;
  width: 0.4375em;
  height: 2.6875em;
}
.swal2-toast .swal2-success [class^=swal2-success-line] {
  height: 0.3125em;
}
.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip] {
  top: 1.125em;
  left: 0.1875em;
  width: 0.75em;
}
.swal2-toast .swal2-success [class^=swal2-success-line][class$=long] {
  top: 0.9375em;
  right: 0.1875em;
  width: 1.375em;
}
@container swal2-popup style(--swal2-icon-animations:true) {
  .swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip {
    animation: swal2-toast-animate-success-line-tip 0.75s;
  }
  .swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long {
    animation: swal2-toast-animate-success-line-long 0.75s;
  }
}
.swal2-toast.swal2-show {
  animation: var(--swal2-toast-show-animation);
}
.swal2-toast.swal2-hide {
  animation: var(--swal2-toast-hide-animation);
}

@keyframes swal2-show {
  0% {
    transform: scale(0.7);
  }
  45% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes swal2-hide {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.5);
    opacity: 0;
  }
}
@keyframes swal2-animate-success-line-tip {
  0% {
    top: 1.1875em;
    left: 0.0625em;
    width: 0;
  }
  54% {
    top: 1.0625em;
    left: 0.125em;
    width: 0;
  }
  70% {
    top: 2.1875em;
    left: -0.375em;
    width: 3.125em;
  }
  84% {
    top: 3em;
    left: 1.3125em;
    width: 1.0625em;
  }
  100% {
    top: 2.8125em;
    left: 0.8125em;
    width: 1.5625em;
  }
}
@keyframes swal2-animate-success-line-long {
  0% {
    top: 3.375em;
    right: 2.875em;
    width: 0;
  }
  65% {
    top: 3.375em;
    right: 2.875em;
    width: 0;
  }
  84% {
    top: 2.1875em;
    right: 0;
    width: 3.4375em;
  }
  100% {
    top: 2.375em;
    right: 0.5em;
    width: 2.9375em;
  }
}
@keyframes swal2-rotate-success-circular-line {
  0% {
    transform: rotate(-45deg);
  }
  5% {
    transform: rotate(-45deg);
  }
  12% {
    transform: rotate(-405deg);
  }
  100% {
    transform: rotate(-405deg);
  }
}
@keyframes swal2-animate-error-x-mark {
  0% {
    margin-top: 1.625em;
    transform: scale(0.4);
    opacity: 0;
  }
  50% {
    margin-top: 1.625em;
    transform: scale(0.4);
    opacity: 0;
  }
  80% {
    margin-top: -0.375em;
    transform: scale(1.15);
  }
  100% {
    margin-top: 0;
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes swal2-animate-error-icon {
  0% {
    transform: rotateX(100deg);
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}
@keyframes swal2-rotate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes swal2-animate-question-mark {
  0% {
    transform: rotateY(-360deg);
  }
  100% {
    transform: rotateY(0);
  }
}
@keyframes swal2-animate-i-mark {
  0% {
    transform: rotateZ(45deg);
    opacity: 0;
  }
  25% {
    transform: rotateZ(-25deg);
    opacity: 0.4;
  }
  50% {
    transform: rotateZ(15deg);
    opacity: 0.8;
  }
  75% {
    transform: rotateZ(-5deg);
    opacity: 1;
  }
  100% {
    transform: rotateX(0);
    opacity: 1;
  }
}
@keyframes swal2-toast-show {
  0% {
    transform: translateY(-0.625em) rotateZ(2deg);
  }
  33% {
    transform: translateY(0) rotateZ(-2deg);
  }
  66% {
    transform: translateY(0.3125em) rotateZ(2deg);
  }
  100% {
    transform: translateY(0) rotateZ(0deg);
  }
}
@keyframes swal2-toast-hide {
  100% {
    transform: rotateZ(1deg);
    opacity: 0;
  }
}
@keyframes swal2-toast-animate-success-line-tip {
  0% {
    top: 0.5625em;
    left: 0.0625em;
    width: 0;
  }
  54% {
    top: 0.125em;
    left: 0.125em;
    width: 0;
  }
  70% {
    top: 0.625em;
    left: -0.25em;
    width: 1.625em;
  }
  84% {
    top: 1.0625em;
    left: 0.75em;
    width: 0.5em;
  }
  100% {
    top: 1.125em;
    left: 0.1875em;
    width: 0.75em;
  }
}
@keyframes swal2-toast-animate-success-line-long {
  0% {
    top: 1.625em;
    right: 1.375em;
    width: 0;
  }
  65% {
    top: 1.25em;
    right: 0.9375em;
    width: 0;
  }
  84% {
    top: 0.9375em;
    right: 0;
    width: 1.125em;
  }
  100% {
    top: 0.9375em;
    right: 0.1875em;
    width: 1.375em;
  }
}

@charset "UTF-8";
.cat-card--clickable {
  cursor: pointer;
  transition: box-shadow 0.18s cubic-bezier(0.4, 1.3, 0.6, 1), transform 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

.cat-card--clickable:focus-visible,
.cat-card--clickable:hover {
  box-shadow: 0 0 24px 0 rgb(255, 255, 255), 0 2px 16px 0 rgba(0, 0, 0, 0.5333333333); /* white glow */
  z-index: 2;
}

.cat-card--clickable .cat-card__label {
  transition: font-size 0.18s cubic-bezier(0.4, 1.3, 0.6, 1), text-shadow 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

.cat-card--clickable .cat-card__inner {
  transition: padding 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

.cat-card--clickable:focus-visible .cat-card__label,
.cat-card--clickable:hover .cat-card__label {
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667); /* white glow */
}

.cat-card--clickable:focus-visible .cat-card__icon,
.cat-card--clickable:hover .cat-card__icon {
  text-shadow: 0 0 20px rgb(255, 255, 255), 0 0 30px rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
  transition: all 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

/* ====== FILTER SECTION ====== */
.filter-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.filter-section__title {
  font-size: clamp(24px, 5vw, 48px);
  color: var(--ts-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: clamp(0.01em, 0.3vw, 0.05em);
}

.filter-section__barcode {
  height: clamp(10px, 0.9em, 28px);
  background-color: transparent;
  background-image: repeating-linear-gradient(90deg, transparent 0 8px, var(--ts-color) 8px 12px), repeating-linear-gradient(90deg, transparent 0 13px, var(--ts-color) 13px 15px), repeating-linear-gradient(90deg, transparent 0 21px, var(--ts-color) 21px 25px);
  background-size: 100% 100%;
  background-repeat: repeat;
  opacity: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0 4px, #000 14px calc(100% - 4px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0 4px, #000 14px calc(100% - 4px), transparent 100%);
  flex: 1;
  max-width: 200px;
}

/* Enhanced barcode with better visibility */
.filter-section__barcode-enhanced {
  height: clamp(12px, 1.1em, 32px);
  background-color: transparent;
  background-image: repeating-linear-gradient(90deg, transparent 0 6px, var(--ts-color) 6px 10px), repeating-linear-gradient(90deg, transparent 0 11px, var(--ts-color) 11px 13px), repeating-linear-gradient(90deg, transparent 0 19px, var(--ts-color) 19px 23px), repeating-linear-gradient(90deg, transparent 0 27px, var(--ts-color) 27px 29px);
  background-size: 100% 100%;
  background-repeat: repeat;
  opacity: 0.9;
  /* Enhanced mask for better edge visibility */
  -webkit-mask-image: linear-gradient(to right, transparent 0 2px, #000 8px calc(100% - 2px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0 2px, #000 8px calc(100% - 2px), transparent 100%);
  flex: 1;
  max-width: none;
  min-width: 200px;
  /* Add subtle shadow for depth */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  /* Ensure better contrast on different backgrounds */
  mix-blend-mode: multiply;
}

.filter-section__cards {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.filter-card {
  cursor: pointer;
  transition: box-shadow 0.18s cubic-bezier(0.4, 1.3, 0.6, 1), transform 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
  text-decoration: none;
  color: inherit;
  border: none;
  background: none;
  padding: 0;
}

.filter-card--clickable:focus-visible,
.filter-card--clickable:hover {
  box-shadow: 0 0 24px 0 rgb(255, 255, 255), 0 2px 16px 0 rgba(0, 0, 0, 0.5333333333);
  z-index: 2;
}

.filter-card--clickable .filter-card__label {
  transition: font-size 0.18s cubic-bezier(0.4, 1.3, 0.6, 1), text-shadow 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

.filter-card--clickable .filter-card__inner {
  transition: padding 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

.filter-card--clickable:focus-visible .filter-card__label,
.filter-card--clickable:hover .filter-card__label {
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667);
}

.filter-card__frame {
  background: #FFF;
  padding: 6px;
  border: 4px solid #000;
  min-width: 110px;
}

.filter-card__inner {
  background: #000;
  border: 4px solid #000;
  padding: clamp(4px, 1.2vw, 10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: clamp(28px, 5vw, 40px);
}

.filter-card__label {
  font-family: var(--mp-font-display);
  letter-spacing: clamp(0.01em, 0.2vw, 0.03em);
  color: #fff;
  font-size: clamp(12px, 2.5vw, 18px);
  text-align: center;
  text-transform: uppercase;
  margin: 0;
  flex: 1;
}

.filter-card__chevron {
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

.filter-card--clickable:focus-visible .filter-card__chevron,
.filter-card--clickable:hover .filter-card__chevron {
  transform: rotate(180deg);
}

.filter-card:focus-visible .filter-card__inner,
.filter-card:hover .filter-card__inner {
  outline-offset: 4px;
}

/* Mobile adjustments for filter section */
@media (max-width: 768px) {
  .filter-section {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .filter-section__title {
    font-size: clamp(18px, 4vw, 32px);
    flex-shrink: 0;
    min-width: -moz-fit-content;
    min-width: fit-content;
  }
  .filter-section__barcode,
  .filter-section__barcode-enhanced {
    flex: 1;
    max-width: none;
    min-width: 80px;
    height: clamp(8px, 0.8em, 20px);
    margin: 0 0.5rem;
  }
  .filter-section__cards {
    flex-shrink: 0;
    gap: 0.5rem;
  }
  .filter-card__frame {
    min-width: 85px;
    padding: 3px;
    border: 3px solid #000;
  }
  .filter-card__inner {
    padding: clamp(4px, 1.2vw, 8px);
    min-height: clamp(28px, 5vw, 40px);
    border: 3px solid #000;
  }
  .filter-card__label {
    font-size: clamp(10px, 2.2vw, 14px);
  }
  .filter-card__chevron {
    width: 12px;
    height: 12px;
  }
}
/* ====== BOOKS PAGE TITLE SECTION ====== */
.books-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  min-height: 320px;
  height: 38vw;
  max-height: 420px;
  padding: 0 3vw;
  background: transparent;
  position: relative;
  margin-left: 50%;
  transform: translateX(-49%);
  box-sizing: border-box;
}

.books-title-section__title {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: 100%;
}

/* ====== SEARCH BAR ====== */
.sb {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sb__frame {
  background: var(--mp-grad-lavender);
  padding: 8px; /* marco exterior */
  border: 4px solid #000;
}

.sb__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #000; /* cuadro negro interior */
  padding: clamp(14px, 2vw, 22px);
  border: 4px solid #000; /* borde interior para look cuadrado */
}

.sb__icon {
  color: #3b3b3b;
  width: clamp(28px, 4vw, 56px);
  height: clamp(28px, 4vw, 56px);
  flex: 0 0 auto;
}

.sb__input {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  color: #ffffff; /* texto blanco al escribir */
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(18px, 3.6vw, 40px);
  letter-spacing: 0.2px;
}

.sb__input::-moz-placeholder {
  color: #5a5a5a; /* gris placeholder */
}

.sb__input::placeholder {
  color: #5a5a5a; /* gris placeholder */
}

.sb__bleed {
  height: 0;
}

/* spacing for books header area */
.books-title-section + .sb {
  margin-top: 18px;
}

/* ====== CATEGORIES ====== */
.cats {
  margin-top: 80px;
}

.cats__header {
  margin-bottom: 12px;
}

.cats__title {
  font-family: var(--mp-font-display);
  letter-spacing: clamp(0.01em, 0.3vw, 0.05em);
  font-size: clamp(28px, 6vw, 90px);
  margin: 0 0 8px 0;
  text-transform: uppercase;
}

.cats__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.cat-card {
  grid-column: span 6;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 980px) {
  .cat-card {
    grid-column: span 6;
  }
}
.cat-card__frame {
  background: var(--mp-grad-blue);
  padding: 10px;
  border: 4px solid #000;
}

.cat-card__inner {
  background: #000;
  border: 4px solid #000;
  padding: clamp(4px, 3.5vw, 40px);
  display: grid;
  place-items: center;
  min-height: clamp(60px, 16vw, 120px);
}

.cat-card__icon {
  margin-bottom: 8px;
  font-size: clamp(20px, 5vw, 40px);
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cat-card__label {
  padding: 0;
  font-family: var(--mp-font-display);
  letter-spacing: clamp(0.01em, 0.3vw, 0.05em);
  color: #fff;
  font-size: clamp(16px, 4.5vw, 60px);
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

.cat-card:focus-visible .cat-card__inner,
.cat-card:hover .cat-card__inner {
  outline-offset: 4px;
}

/* ====== COLECTIONS ====== */
.cols {
  margin-top: 120px;
}

.cols__title {
  font-family: var(--mp-font-display);
  letter-spacing: clamp(0.01em, 0.3vw, 0.05em);
  font-size: clamp(28px, 6vw, 84px);
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.cols__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cols-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: filter 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

.cols-item:hover .cols-item__label,
.cols-item:hover .cols-item__chev {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
}

.cols-item__bar {
  height: 8px;
  background: var(--mp-grad-pink);
  border: 2px solid #000;
}

.cols-item__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 6px 6px 6px;
}

.cols-item__label {
  margin: 0;
  color: #fff;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(12px, 4.5vw, 40px);
}

.cols-item__chev {
  color: #fff;
  width: clamp(22px, 6vw, 36px);
  height: clamp(22px, 6vw, 36px);
}

@media (min-width: 980px) {
  .cols {
    margin-top: 46px;
  }
  .cols__list {
    gap: 22px;
  }
  .cols-item__row {
    padding: 14px 8px 8px 8px;
  }
}
.books-title-section__title-img {
  max-width: 100%;
  width: 100%;
  height: 90%;
  min-height: 180px;
  -o-object-fit: contain;
     object-fit: contain;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.6666666667));
}

.books-title-section__barcode {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  height: 100%;
}

.books-title-section__barcode-img {
  width: 97%;
  height: clamp(80px, 90%, 340px);
  min-width: 380px;
  max-width: 900px;
  min-height: clamp(80px, 9vw, 180px);
  max-height: clamp(80px, 18vw, 340px);
  background: linear-gradient(90deg, #fff 0%, #fff 4%, transparent 4%, transparent 8%, #fff 8%, #fff 10%, transparent 10%, transparent 13%, #fff 13%, #fff 17%, transparent 17%, transparent 22%, #fff 22%, #fff 23.5%, transparent 23.5%, transparent 27%, #fff 27%, #fff 32%, transparent 32%, transparent 36%, #fff 36%, #fff 38%, transparent 38%, transparent 41%, #fff 41%, #fff 45%, transparent 45%, transparent 48%, #fff 48%, #fff 49.5%, transparent 49.5%, transparent 53%, #fff 53%, #fff 58%, transparent 58%, transparent 62%, #fff 62%, #fff 64%, transparent 64%, transparent 67%, #fff 67%, #fff 71%, transparent 71%, transparent 75%, #fff 75%, #fff 76.5%, transparent 76.5%, transparent 80%, #fff 80%, #fff 85%, transparent 85%, transparent 89%, #fff 89%, #fff 91%, transparent 91%, transparent 94%, #fff 94%, #fff 98%, transparent 98%, transparent 100%);
  border-radius: 0;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .books-title-section {
    transform: translateX(-45%);
  }
  .books-title-section__title {
    width: 60%;
  }
  .books-title-section__barcode {
    height: auto;
    width: 40%;
  }
  .books-title-section__barcode-img {
    min-width: 10px;
  }
}
/* ───────────────────────────────────────────────────────────
   Mata Packa — Proyecto Libros: tokens + utilidades
   ─────────────────────────────────────────────────────────── */
:root {
  /* Colores base solicitados */
  --mp-rose: #FF8383;
  --mp-sun: #FFDF78;
  --mp-violet: #DD78FF;
  --mp-peach: #FFAC83;
  --mp-cyan: #78FFF8;
  --mp-wine: #9A1B59;
  --mp-cerise: #C32572;
  --mp-black: #0A0A0A;
  --mp-white: #FFFFFF;
  --mp-green: #85FF78;
  /* Gradientes de las capturas (0% / 50% / 100%) */
  --mp-grad-pink: linear-gradient(90deg,#FAA0FF 0%, #F3D6FF 50%, #C972FF 100%);
  --mp-grad-blue: linear-gradient(90deg,#8AACFD 0%, #D7EFFF 50%, #838DFF 100%);
  --mp-grad-lavender: linear-gradient(90deg,#B6A0FF 0%, #DAD6FF 50%, #8772FF 100%);
  /* Superficies */
  --mp-surface: #141414;
  --mp-surface-2: #1b1b1b;
  /* Tipografía */
  --mp-font-display: "Jomhuria", system-ui, sans-serif;
  --mp-font-body: "Kanit", system-ui, sans-serif;
  /* Radios / sombras */
  --mp-radius: 16px;
  --mp-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* Reset suave + base */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body.mp-body {
  margin: 0;
  background: var(--mp-surface);
  color: var(--mp-white);
  font-family: var(--mp-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fondo base negro para la galaxia */
body.mp-body {
  background: #000;
}

/* Canvas del campo estelar detrás de todo */
.bg-stars {
  position: fixed;
  inset: 0; /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 50%;
}

/* Main */
.mp-main {
  padding: 22px;
  position: relative;
  z-index: 1;
}

/* Dashboard grid */
.mp-dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

/* Cards */
.mp-card {
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
  padding: 20px;
  min-height: 120px;
}

.bg-surface {
  background: var(--mp-surface-2);
}

.text-on-dark {
  color: #fff;
}

/* Ubicación de secciones (puedes ajustar a tu gusto) */
#titleSection {
  grid-column: span 12;
}

#progressSection {
  grid-column: span 6;
  min-height: 220px;
}

#newsSection {
  grid-column: span 6;
  min-height: 220px;
}

#booksSection {
  grid-column: span 12;
  min-height: 260px;
}

/* Gradientes de fondo reutilizables */
.bg-grad-pink {
  background: var(--mp-grad-pink);
}

.bg-grad-blue {
  background: var(--mp-grad-blue);
}

.bg-grad-lavender {
  background: var(--mp-grad-lavender);
}

/* Gradiente como texto (para títulos) */
.text-grad-pink, .text-grad-blue, .text-grad-lavender {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-grad-pink {
  background-image: var(--mp-grad-pink);
}

.text-grad-blue {
  background-image: var(--mp-grad-blue);
}

.text-grad-lavender {
  background-image: var(--mp-grad-lavender);
}

/* Tipografías utilitarias */
.font-jomhuria {
  font-family: var(--mp-font-display);
}

.font-kanit {
  font-family: var(--mp-font-body);
}

/* Títulos */
.mp-title {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.9;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.mp-subtitle {
  margin: 0;
  opacity: 0.9;
}

/* Botones de ejemplo con tokens (por si los necesitas pronto) */
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  color: #0b0b0b;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.mp-btn--accent {
  background: var(--mp-sun);
}

.mp-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

/* padding global del main (para calcular el full-bleed) */
.mp-main {
  --page-pad: 22px;
  padding: var(--page-pad);
}

/* card sin padding/bordes/sombra para que el hero pegue al borde */
.mp-card--flush {
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

/* hack full-bleed: rompe el padding lateral del contenedor */
.full-bleed {
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
  width: calc(100% + 2 * var(--page-pad));
  margin-block: calc(-1 * var(--page-pad));
  margin-bottom: 40px;
}

.hero-title {
  margin-top: 80px;
  position: relative;
  width: 100%;
  min-height: clamp(120px, 36vw, 560px); /* altura responsive */
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-title {
    margin-top: 0px;
  }
}
/* Capas del parallax */
.hero-layer {
  position: absolute;
  inset: -16px; /* centra el marco de referencia */
  margin: auto;
  pointer-events: none;
  will-change: transform;
}

/* Imagen del título: ocupa todo el ancho, mantiene proporción */
.hero-title-img {
  z-index: 2;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover; /* ajusta sin recortar */
  -o-object-position: center;
     object-position: center;
}

/* Destellos (ajusta tamaños/posiciones si lo deseas) */
.hero-vector {
  height: auto;
  opacity: 0.8;
}

.hero-vector.v1 {
  z-index: 1;
  width: 60%;
  left: 0%;
  top: -6%;
}

.hero-vector.v2 {
  z-index: 1;
  width: 62%;
  right: -23%;
  top: 10%;
}

.hero-vector.v3 {
  z-index: 3;
  width: 42%;
  right: 4%;
  bottom: -10%;
  opacity: 0.9;
}

/* ---------- Title Section (texto + barras) ---------- */
.ts {
  display: grid;
  grid-template-columns: auto 1fr; /* título + barras llenan resto */
  align-items: center;
  -moz-column-gap: clamp(8px, 1.6vw, 16px);
       column-gap: clamp(8px, 1.6vw, 16px); /* margen peque entre título y barras */
  margin: 6px 0 16px;
  --ts-color: #fff;
}

/* tipografía y tamaños pedidos */
.ts__title {
  font-family: var(--mp-font-display, "Jomhuria", system-ui, sans-serif);
  font-size: clamp(32px, 5vw, 64px); /* 32 móvil / 64 desktop */
  line-height: 0.9;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--ts-color);
  text-transform: uppercase; /* quítalo si no lo quieres en mayúsculas */
}

/* Altura de las barras proporcional al título */
.ts__barcode {
  height: clamp(10px, 0.9em, 28px); /* ligado al tamaño del título */
  background-color: transparent;
  /* 3 capas superpuestas para barras con anchos/gaps distintos */
  background-image: repeating-linear-gradient(90deg, transparent 0 8px, var(--ts-color) 8px 12px), repeating-linear-gradient(90deg, transparent 0 13px, var(--ts-color) 13px 15px), repeating-linear-gradient(90deg, transparent 0 21px, var(--ts-color) 21px 25px);
  background-size: 100% 100%;
  background-repeat: repeat;
  opacity: 1;
  /* borde óptico a los lados para que “respire” un pelín */
  -webkit-mask-image: linear-gradient(to right, transparent 0 4px, #000 14px calc(100% - 4px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0 4px, #000 14px calc(100% - 4px), transparent 100%);
}

/* Si el contenedor padre tiene fondo oscuro, esto asegura contraste */
.ts[data-theme=light] .ts__barcode {
  filter: none;
}

/* ---------- Title Section Parallax (con efecto parallax) ---------- */
.ts-parallax {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr; /* título + barras llenan resto */
  align-items: center;
  -moz-column-gap: clamp(8px, 1.6vw, 16px);
       column-gap: clamp(8px, 1.6vw, 16px); /* margen peque entre título y barras */
  margin: 6px 0 16px;
  --ts-color: #fff;
  overflow: hidden; /* Para contener las imágenes parallax */
}

/* Cuando usa imagen, cambiar el layout */
.ts-parallax:has(.hero-title-img) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

/* tipografía y tamaños para parallax */
.ts-parallax__title {
  font-family: var(--mp-font-display, "Jomhuria", system-ui, sans-serif);
  font-size: clamp(32px, 5vw, 64px); /* 32 móvil / 64 desktop */
  line-height: 0.9;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--ts-color);
  text-transform: uppercase;
  position: relative;
  z-index: 2; /* Por encima de las imágenes parallax */
}

/* Barras para parallax */
.ts-parallax__barcode {
  height: clamp(10px, 0.9em, 28px); /* ligado al tamaño del título */
  background-color: transparent;
  /* 3 capas superpuestas para barras con anchos/gaps distintos */
  background-image: repeating-linear-gradient(90deg, transparent 0 8px, var(--ts-color) 8px 12px), repeating-linear-gradient(90deg, transparent 0 13px, var(--ts-color) 13px 15px), repeating-linear-gradient(90deg, transparent 0 21px, var(--ts-color) 21px 25px);
  background-size: 100% 100%;
  background-repeat: repeat;
  opacity: 1;
  /* borde óptico a los lados para que "respire" un pelín */
  -webkit-mask-image: linear-gradient(to right, transparent 0 4px, #000 14px calc(100% - 4px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0 4px, #000 14px calc(100% - 4px), transparent 100%);
  position: relative;
  z-index: 2; /* Por encima de las imágenes parallax */
}

/* Cuando usa imagen, posicionar el barcode debajo */
.ts-parallax:has(.hero-title-img) .ts-parallax__barcode {
  position: relative;
  margin-top: 16px;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* Reducir tamaño de la imagen del título */
.ts-parallax .hero-title-img {
  width: 60% !important;
  height: auto !important;
  max-width: 400px !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Imágenes parallax dentro del componente */
.ts-parallax .hero-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Por debajo del texto */
}

/* Si el contenedor padre tiene fondo oscuro, esto asegura contraste */
.ts-parallax[data-theme=light] .ts-parallax__barcode {
  filter: none;
}

/* ====== TITLE SECTION WITH PROFILE ====== */
.ts--with-profile {
  display: grid;
  grid-template-columns: auto 1fr auto; /* título + barras + perfil */
  align-items: center;
  -moz-column-gap: clamp(8px, 1.6vw, 16px);
       column-gap: clamp(8px, 1.6vw, 16px);
  margin: 6px 0 16px;
}

.ts--with-profile .ts__title {
  flex-shrink: 0;
}

.ts--with-profile .ts__barcode {
  flex: 1;
  min-width: 0;
}

.ts__profile {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ts-color, #fff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ts__profile-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}

/* Mobile adjustments for title section with profile */
@media (max-width: 768px) {
  .ts--with-profile {
    -moz-column-gap: clamp(6px, 1.2vw, 12px);
         column-gap: clamp(6px, 1.2vw, 12px);
  }
  .ts__profile {
    width: clamp(50px, 6vw, 80px);
    height: clamp(50px, 6vw, 80px);
    border-width: 2px;
  }
}
/* ---------------- Green Button ---------------- */
.green-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gb-bg, var(--mp-green));
  color: var(--gb-text, var(--mp-black));
  border: var(--bd) solid #000;
  border-radius: 0px; /* ajusta si lo quieres recto: 0 */
  padding: clamp(10px, 1.2vw, 14px) clamp(14px, 2vw, 22px);
  min-height: clamp(48px, 8vw, 72px);
  text-decoration: none;
  cursor: pointer;
  isolation: isolate; /* para que las pseudo no tapen el texto */
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.green-btn--full {
  width: 100%;
}

/* círculos “vectoriales” (CSS) al fondo */
.green-btn::before,
.green-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(35px, 4vw, 140px);
  height: clamp(35px, 4vw, 140px);
  border-radius: 9999px;
  pointer-events: none;
  z-index: -1; /* queda detrás del texto */
  opacity: 0.95;
}

.green-btn::before {
  background: var(--gb-left, var(--mp-violet));
  left: clamp(10%, 11vw, 32%);
  transform: translateX(-300%);
}

.green-btn::after {
  background: var(--gb-right, var(--mp-sun));
  left: clamp(55%, 22vw, 70%);
  transform: translateX(-80%);
}

/* texto: Kanit Black */
.green-btn__label {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900; /* Kanit Black */
  font-size: clamp(20px, 3.5vw, 40px); /* responsive */
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25)); /* sombra leve */
}

/* estados */
.green-btn:hover {
  filter: brightness(0.98);
}

.green-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

figure {
  margin-block-start: 0em;
  margin-block-end: 0em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  margin-right: 4px;
}

/* ====== STATS CARD ====== */
.sc {
  --bd: 4px; /* grosor general */
  background: var(--mp-grad-pink);
  color: var(--mp-black, #000);
  border: var(--bd) solid #000;
  padding: 12px;
  margin: 0;
}

/* Title bar */
.sc__titlebar {
  background: #FFF;
  border: var(--bd) solid #000;
  padding: 8px 12px;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
}

.sc__dot {
  width: clamp(12px, 10vw, 80px); /* Cambié 2vw por 10vw para hacerlo más sensible */
  height: clamp(12px, 10vw, 80px); /* Cambié 4vw por 10vw para que sea igual en ambas dimensiones */
  border-radius: 9999px;
  background: var(--mp-cyan, #78FFF8);
  transform: translateX(60%);
  z-index: 0;
}

.sc__title {
  z-index: 1;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 100px);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  transform: translateX(-5%);
}

/* Cuerpo: portada + métricas */
.sc__content {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px;
}

.sc__cover {
  border: var(--bd) solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF;
}

.sc__cover img {
  max-width: 240px;
  height: 370px;
  display: block;
}

.sc__right {
  margin-top: 0;
  background: #FFF;
  border: var(--bd) solid #000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px;
}

.sc__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc__label {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600; /* Semibold */
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
}

/* Barra de progreso: verde (avance) + rojo (pendiente) */
.sc__bar {
  position: relative;
  height: 28px;
  border: var(--bd) solid #000;
  background: var(--mp-rose, #FF8383); /* restante */
  overflow: hidden;
  /* glow leve rojo para coherencia visual */
  box-shadow: 0 0 16px rgba(255, 131, 131, 0.45);
}

.sc__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--pct, 0%);
  background: var(--mp-green, #85FF78);
  box-shadow: 0 0 16px rgba(133, 255, 120, 0.55) inset;
}

.sc__bar-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
}

/* Pills/boxes con "glow" del mismo color */
.sc__pill,
.sc__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border: var(--bd) solid #000;
  font-weight: 600;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  box-shadow: 0 0 18px var(--glow, transparent);
}

/* Estados */
.sc--good {
  background: var(--mp-green, #85FF78);
  --glow: rgba(133,255,120,.65);
}

.sc--warn {
  background: var(--mp-peach, #FFAC83);
  --glow: rgba(255,172,131,.65);
}

.sc--danger {
  background: var(--mp-rose, #FF8383);
  --glow: rgba(255,131,131,.65);
}

.sc--green {
  background: var(--mp-green, #85FF78);
  --glow: rgba(133,255,120,.65);
}

.sc--red {
  background: var(--mp-rose, #FF8383);
  --glow: rgba(255,131,131,.65);
}

.sc--amber {
  background: var(--mp-sun, #FFDF78);
  --glow: rgba(255,223,120,.65);
}

.sc--white {
  background: #FFF;
  --glow: rgba(255,255,255,.6);
}

.sc__cta {
  margin-top: 12px;
}

/* Responsive */
/* Responsive */
/* Responsive */
/* respeta reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .green-btn {
    transition: none;
  }
}
html, body {
  overflow-x: hidden;
}

/* Respeto a usuarios con “reduced motion” */
@media (prefers-reduced-motion: reduce) {
  .hero-layer {
    transform: none !important;
  }
}
/* Responsive */
@media (max-width: 1070px) {
  #progressSection, #newsSection {
    grid-column: span 12;
  }
  .sc__cover {
    display: flex;
  }
  .sc__right {
    display: flex;
  }
  .sc__content {
    grid-template-columns: 1fr;
  }
  .sc__cover {
    aspect-ratio: 16/10;
  }
}
/* ===== PATCH: solo sc__content + sc__right ===== */
/* 1) La primera columna (portada) toma su ancho natural; la derecha ocupa el resto.
      min-width:0 en hijos evita desbordes por min-content. */
.sc__content {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px; /* un respiro entre columnas */
  align-items: start;
}

.sc__content > * {
  min-width: 0;
}

/* 2) Que el panel derecho jamás desborde y calcule bien el ancho interno */
.sc__right {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  overflow: hidden; /* oculta cualquier 1px “rebelde” */
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px;
  background: #FFF;
  border: var(--bd) solid #000;
}

/* Asegura que todo dentro de la derecha no rompa el ancho */
.sc__right .sc__row,
.sc__right .sc__bar,
.sc__right .sc__box,
.sc__right .sc__pill {
  max-width: 100%;
}

/* ====== STATS CARD - MODO SIN RETO ASIGNADO ====== */
.sc__cover--empty {
  background: #f8f9fa;
  border: var(--bd) solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 370px;
}

.sc__add-book-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 20px;
  transition: all 0.3s ease;
  color: #666;
}

.sc__add-book-btn:hover {
  color: var(--mp-green, #85FF78);
  transform: scale(1.05);
}

.sc__add-book-btn svg {
  transition: all 0.3s ease;
}

.sc__add-book-btn:hover svg {
  filter: drop-shadow(0 0 8px rgba(133, 255, 120, 0.6));
}

.sc__add-book-btn span {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sc__row--empty {
  text-align: center;
  padding: 20px;
}

.sc__empty-text {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-size: 14px;
  color: #666;
  margin: 8px 0 0 0;
  line-height: 1.4;
}

/* Colores adicionales para las cajas usando colores existentes */
.sc--green {
  background: var(--mp-green, #85FF78);
  --glow: rgba(133, 255, 120, 0.6);
}

.sc--rose {
  background: var(--mp-rose, #FF8383);
  --glow: rgba(255, 131, 131, 0.6);
}

@media (max-width: 780px) {
  .sc__content {
    grid-template-columns: 1fr;
  }
  .sc__cover--empty {
    min-height: 200px;
  }
  .sc__add-book-btn {
    padding: 15px;
  }
  .sc__add-book-btn span {
    font-size: 14px;
  }
}
/* ====== MONTHLY BOOK MODAL ====== */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--mp-text-secondary);
  background: var(--mp-bg-secondary);
  border-radius: 8px;
  margin: 1rem 0;
}
.empty-state p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.monthly-book-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.monthly-book-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.monthly-book-modal__content {
  position: relative;
  background: #fff;
  border: 4px solid #000;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.monthly-book-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid #000;
  background: var(--mp-grad-blue);
}

.monthly-book-modal__title {
  font-family: var(--mp-font-display);
  font-size: 24px;
  font-weight: 900;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.monthly-book-modal__close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.monthly-book-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.monthly-book-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.monthly-book-modal__search {
  margin-bottom: 24px;
}

.monthly-book-modal__search-input {
  display: flex;
  gap: 12px;
  align-items: center;
}

.monthly-book-modal__input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #000;
  font-family: var(--mp-font-body);
  font-size: 16px;
  background: #fff;
}

.monthly-book-modal__input:focus {
  outline: none;
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px rgba(133, 255, 120, 0.2);
}

.monthly-book-modal__search-btn {
  background: var(--mp-green);
  border: 2px solid #000;
  padding: 12px;
  cursor: pointer;
  color: #000;
  transition: all 0.2s ease;
}

.monthly-book-modal__search-btn:hover {
  background: #6dd85f;
  transform: translateY(-1px);
}

.monthly-book-modal__results {
  margin-bottom: 24px;
}

.monthly-book-modal__empty,
.monthly-book-modal__loading,
.monthly-book-modal__error {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.monthly-book-modal__empty svg,
.monthly-book-modal__loading svg {
  margin-bottom: 16px;
  opacity: 0.6;
}

.monthly-book-modal__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--mp-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.monthly-book-modal__books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.monthly-book-modal__book-card {
  border: 2px solid #000;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.monthly-book-modal__book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--mp-green);
}

.monthly-book-modal__book-cover {
  text-align: center;
  margin-bottom: 12px;
}

.monthly-book-modal__book-cover img {
  width: 80px;
  height: 120px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.monthly-book-modal__book-info {
  text-align: center;
}

.monthly-book-modal__book-title {
  font-family: var(--mp-font-body);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
  line-height: 1.3;
  color: #000;
}

.monthly-book-modal__book-author {
  font-family: var(--mp-font-body);
  font-size: 12px;
  color: #666;
  margin: 0 0 4px 0;
}

.monthly-book-modal__book-year {
  font-family: var(--mp-font-body);
  font-size: 11px;
  color: #999;
  margin: 0;
}

.monthly-book-modal__selected {
  border: 2px solid var(--mp-green);
  padding: 16px;
  background: #f8fff8;
}

.monthly-book-modal__selected-title {
  font-family: var(--mp-font-display);
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 16px 0;
  color: #000;
  text-transform: uppercase;
}

.monthly-book-modal__selected-book-info {
  display: flex;
  gap: 16px;
  align-items: center;
}

.monthly-book-modal__selected-book-cover img {
  width: 60px;
  height: 90px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.monthly-book-modal__selected-book-details {
  flex: 1;
}

.monthly-book-modal__selected-book-title {
  font-family: var(--mp-font-body);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #000;
}

.monthly-book-modal__selected-book-author {
  font-family: var(--mp-font-body);
  font-size: 14px;
  color: #666;
  margin: 0 0 4px 0;
}

.monthly-book-modal__selected-book-year {
  font-family: var(--mp-font-body);
  font-size: 12px;
  color: #999;
  margin: 0 0 8px 0;
}

.monthly-book-modal__change-btn {
  background: var(--mp-rose);
  border: 1px solid #000;
  padding: 4px 8px;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.monthly-book-modal__change-btn:hover {
  background: #e66b6b;
}

.monthly-book-modal__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 2px solid #000;
  background: #f8f9fa;
}

.monthly-book-modal__btn {
  padding: 12px 24px;
  border: 2px solid #000;
  font-family: var(--mp-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.monthly-book-modal__btn--secondary {
  background: #fff;
  color: #000;
}

.monthly-book-modal__btn--secondary:hover {
  background: #f0f0f0;
}

.monthly-book-modal__btn--primary {
  background: var(--mp-green);
  color: #000;
}

.monthly-book-modal__btn--primary:hover:not(:disabled) {
  background: #6dd85f;
  transform: translateY(-1px);
}

.monthly-book-modal__btn--primary:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .monthly-book-modal {
    padding: 10px;
  }
  .monthly-book-modal__content {
    max-height: 95vh;
  }
  .monthly-book-modal__header {
    padding: 16px 20px;
  }
  .monthly-book-modal__title {
    font-size: 20px;
  }
  .monthly-book-modal__body {
    padding: 20px;
  }
  .monthly-book-modal__books-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .monthly-book-modal__book-card {
    padding: 8px;
  }
  .monthly-book-modal__book-cover img {
    width: 60px;
    height: 90px;
  }
  .monthly-book-modal__selected-book-info {
    flex-direction: column;
    text-align: center;
  }
  .monthly-book-modal__footer {
    padding: 16px 20px;
    flex-direction: column;
  }
  .monthly-book-modal__btn {
    width: 100%;
  }
}
/* ====== CHALLENGE CARD ====== */
.challenge-card {
  display: flex;
  justify-content: center;
  background: var(--mp-grad-pink);
  padding: 8px;
  margin: 0 auto 20px auto;
  max-width: 100%;
  min-height: 200px;
}

.challenge-card__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--mp-grad-pink);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.challenge-card__circle {
  position: absolute;
  left: 5%;
  top: 5%;
  width: 100px;
  height: 100px;
  background-color: var(--mp-cyan, #78FFF8);
  border-radius: 9999px;
  z-index: 0;
}

.challenge-card__content {
  background: white;
  padding: 12px;
  border: 4px solid black;
  z-index: 1;
}

.challenge-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.challenge-card__title {
  position: relative;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 4vw, 32px);
  text-transform: uppercase;
  color: black;
  margin: 0;
  line-height: 0.9;
  flex: 1;
  margin-right: 12px;
  z-index: 2;
}

.challenge-card__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}

.challenge-card__avatar-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.7;
}

.challenge-card__subtitle {
  position: relative;
  font-family: "Kanit", sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 3vw, 20px);
  color: black;
  margin: 0 0 6px 0;
  line-height: 1.2;
  z-index: 2;
}

.challenge-card__description {
  position: relative;
  font-family: "Kanit", sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.4;
  z-index: 2;
}

.challenge-card__points {
  margin-bottom: 12px;
}

.challenge-card__points-text {
  position: relative;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 4vw, 28px);
  color: black;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  z-index: 2;
}

.challenge-card__progress {
  margin-bottom: 12px;
}

.challenge-card__progress-label {
  font-family: "Kanit", sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 2vw, 14px);
  color: black;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.challenge-card__progress-bar {
  position: relative;
  width: 100%;
  height: 28px;
  background: #FF8383;
  border: 4px solid #000;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(255, 131, 131, 0.45);
}

.challenge-card__progress-fill {
  height: 100%;
  background: #85FF78;
  box-shadow: 0 0 16px rgba(133, 255, 120, 0.55) inset;
  transition: width 0.3s ease;
}

.challenge-card__progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Kanit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.challenge-card__action {
  margin-top: 12px;
}

.challenge-card__action .green-btn {
  border: 4px solid #000;
}

/* Specific styles for this challenge card instance */
.challenge-card__points-text--large {
  font-size: clamp(24px, 5vw, 36px) !important;
}

.challenge-card__button--small .green-btn__label {
  font-size: clamp(16px, 3vw, 24px) !important;
}

/* Challenge Card Variants - All use pink gradient */
.challenge-card--signup .challenge-card__wrapper {
  background: var(--mp-grad-pink);
}

.challenge-card--progress .challenge-card__wrapper {
  background: var(--mp-grad-pink);
}

.challenge-card--completed .challenge-card__wrapper {
  background: var(--mp-grad-pink);
}

/* ====== CHALLENGE CAROUSEL ====== */
.challenge-carousel {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px auto;
  min-height: 300px;
}

.challenge-carousel__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.challenge-carousel__track {
  display: flex;
  padding: 16px 0;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge-carousel__slide {
  flex: 0 0 auto;
  width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-carousel__slide .challenge-card {
  width: 100%;
  max-width: 100%;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Arrow Navigation - Desktop Only */
.challenge-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.7;
}

.challenge-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.challenge-carousel__arrow--prev {
  left: -24px;
}

.challenge-carousel__arrow--next {
  right: -24px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  .challenge-carousel__arrow {
    display: none;
  }
  .challenge-carousel__viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
  .challenge-carousel__slide {
    width: 320px !important;
  }
  .challenge-carousel__track {
    gap: 16px;
  }
}
/* ====== CONFIRMATION PROGRESS CAROUSEL ====== */
.confirmation-progress-carousel {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px auto;
  min-height: 300px;
}

.confirmation-progress-carousel__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.confirmation-progress-carousel__track {
  display: flex;
  padding: 16px 0;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirmation-progress-carousel__slide {
  flex: 0 0 auto;
  width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-progress-carousel__slide .challenge-card {
  width: 100%;
  max-width: 100%;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Arrow Navigation - Desktop Only */
.confirmation-progress-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.7;
}

.confirmation-progress-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.confirmation-progress-carousel__arrow--prev {
  left: -24px;
}

.confirmation-progress-carousel__arrow--next {
  right: -24px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  .confirmation-progress-carousel__arrow {
    display: none;
  }
  .confirmation-progress-carousel__viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
  .confirmation-progress-carousel__slide {
    width: 320px !important;
  }
  .confirmation-progress-carousel__track {
    gap: 16px;
  }
}
/* ====== MEETING CARD ====== */
.meeting-card {
  display: flex;
  justify-content: center;
  background: var(--mp-grad-lavender);
  padding: 8px;
  margin: 0 auto;
  max-width: 100%;
}

.meeting-card__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--mp-grad-lavender);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.meeting-card__circle {
  position: absolute;
  left: 5%; /* Ajusta la posición horizontal */
  top: 5%; /* Ajusta la posición vertical */
  width: 100px;
  height: 100px;
  background-color: var(--mp-cyan, #78FFF8);
  border-radius: 9999px;
  z-index: 0; /* Asegura que el círculo esté detrás del texto */
}

.meeting-card__content {
  background: white;
  padding: 12px;
  border: 4px solid black;
  z-index: 1;
}

.meeting-card__title {
  position: relative;
  font-family: "Kanit", sans-serif;
  font-weight: 900; /* Black */
  font-size: clamp(32px, 5vw, 48px);
  text-transform: uppercase;
  color: black;
  margin: 0;
  line-height: 0.9;
  z-index: 2;
}

.meeting-card__subtitle {
  position: relative;
  font-family: "Kanit", sans-serif;
  font-weight: 600; /* Semibold */
  font-size: clamp(20px, 4vw, 24px);
  color: black;
  margin: 8px 0;
  z-index: 2;
}

.meeting-card__description {
  position: relative;
  font-family: "Kanit", sans-serif;
  font-weight: 400; /* Normal */
  font-size: clamp(16px, 3vw, 18px);
  color: black;
  margin: 8px 0;
  z-index: 2;
}

/* ====== CARRUSEL ====== */
.carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden; /* Oculta las tarjetas fuera de vista */
}

.carousel-content {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Transición suave al mover */
}

.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

/* Botones glass con tinte rosa */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  z-index: 2;
  /* Glass + tinte */
  background: var(--mp-grad-pink);
  padding: 14px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  /* Glass efecto */
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background-blend-mode: overlay;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -10px;
}

.carousel-next {
  right: -10px;
}

/* ====== BIG BARCODE ====== */
.big-barcode {
  margin-top: 32px;
  margin-left: 12px;
  width: 98%; /* Toma el 100% del ancho del contenedor */
  height: var(--barcode-height, 50px); /* La altura es dinámica */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  overflow: hidden;
}

.barcode-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
}

.barcode {
  background: repeating-linear-gradient(90deg, var(--barcode-color, white) 0%, var(--barcode-color, white) 5%, transparent 5%, transparent 10%, var(--barcode-color, white) 10%, var(--barcode-color, white) 15%, transparent 15%, transparent 20%, var(--barcode-color, white) 20%, var(--barcode-color, white) 25%); /* Barra aún más ancha */
  height: 100%;
  width: 100%;
  animation: barcode-animation 1s infinite linear;
}

@media (max-width: 1070px) {
  .big-barcode {
    display: none;
  }
}
/* ====== BOOK CARD ====== */
.book-card {
  position: relative;
  width: 300px;
  height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
}

.book-card__shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 32px;
  background: #e0e0e0;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.book-card__stand {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 44px;
  background: #fff;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.book-card__image {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: 220px;
  height: 320px;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 3;
  background: #fff;
}

.book-carousel {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px auto;
}

.book-carousel__viewport {
  overflow: hidden; /* Hide scrollbar completely */
  width: 100%;
  max-width: 100vw;
}

.book-carousel__track {
  display: flex;
  padding: 16px 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-carousel__slide {
  flex: 0 0 auto;
  width: 300px;
  height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Arrow Navigation - Desktop Only */
.book-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.7;
}

.book-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.book-carousel__arrow--prev {
  left: -24px;
}

.book-carousel__arrow--next {
  right: -24px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  .book-carousel__arrow {
    display: none;
  }
  .book-carousel__viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Custom scrollbar for mobile */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
  .book-carousel__slide {
    width: 180px !important;
    height: 240px !important;
  }
  .book-card {
    width: 180px !important;
    height: 240px !important;
  }
  .book-card__image {
    width: 130px !important;
    height: 190px !important;
    bottom: 32px !important;
  }
  .book-card__stand {
    bottom: 18px !important;
    height: 32px !important;
  }
  .book-card__shadow {
    height: 24px !important;
  }
}
/* News Carousel Arrow Styles - Matching Book Carousel */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
}

.carousel-prev svg,
.carousel-next svg {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
  left: 4px;
}

.carousel-next {
  right: 4px;
}

/* Keep news carousel arrows visible on mobile */
@media (max-width: 768px) {
  .carousel-prev,
  .carousel-next {
    display: flex;
    width: 32px;
    height: 80px;
  }
  .carousel-prev svg,
  .carousel-next svg {
    width: 20px !important;
    height: 20px !important;
  }
  .carousel-prev {
    left: 8px;
  }
  .carousel-next {
    right: 8px;
  }
}
.book-carousel__viewport::-webkit-scrollbar {
  height: 6px;
}

/* Stats Navigation Cards - Based on Category Card Philosophy */
.stats-nav-cards {
  display: flex;
  justify-content: flex-start;
  gap: clamp(12px, 2vw, 20px);
  margin: 0;
  padding: 0 clamp(20px, 4vw, 40px);
  max-width: 1200px;
  transform: translateY(clamp(-40px, -8vw, -60px));
  position: relative;
  z-index: 5;
}

.stats-nav-card {
  text-decoration: none;
  color: inherit;
  grid-column: span 6;
  width: clamp(140px, 18vw, 200px);
}

.stats-nav-card--clickable {
  cursor: pointer;
  transition: box-shadow 0.18s cubic-bezier(0.4, 1.3, 0.6, 1), transform 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

.stats-nav-card--clickable:focus-visible,
.stats-nav-card--clickable:hover {
  box-shadow: 0 0 24px 0 rgb(255, 255, 255), 0 2px 16px 0 rgba(0, 0, 0, 0.5333333333); /* white glow */
  z-index: 2;
}

.stats-nav-card--clickable .stats-nav-card__label {
  transition: font-size 0.18s cubic-bezier(0.4, 1.3, 0.6, 1), text-shadow 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

.stats-nav-card--clickable .stats-nav-card__inner {
  transition: padding 0.18s cubic-bezier(0.4, 1.3, 0.6, 1);
}

.stats-nav-card--clickable:focus-visible .stats-nav-card__label,
.stats-nav-card--clickable:hover .stats-nav-card__label {
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667); /* white glow */
}

.stats-nav-card__frame {
  padding: 10px;
  border: 4px solid #000;
}

/* Rankings Card - Pink Gradient */
.stats-nav-card:first-child .stats-nav-card__frame {
  background: var(--mp-grad-pink);
}

/* Challenges Card - Blue Gradient */
.stats-nav-card:nth-child(2) .stats-nav-card__frame {
  background: var(--mp-grad-blue);
}

/* Achievements Card - Purple/Lavender Gradient */
.stats-nav-card:last-child .stats-nav-card__frame {
  background: linear-gradient(135deg, #b6a0ff 0%, #8b72ff 50%, #a080ff 100%);
}

.stats-nav-card__inner {
  background: #000;
  border: 4px solid #000;
  padding: clamp(8px, 2vw, 16px) clamp(12px, 3vw, 24px);
  display: grid;
  place-items: center;
  min-height: clamp(40px, 8vw, 60px);
}

.stats-nav-card__label {
  padding: 0;
  font-family: var(--mp-font-display);
  letter-spacing: clamp(0.01em, 0.3vw, 0.05em);
  color: #fff;
  font-size: clamp(16px, 4vw, 32px);
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}

.stats-nav-card:focus-visible .stats-nav-card__inner,
.stats-nav-card:hover .stats-nav-card__inner {
  outline-offset: 4px;
}

/* Responsive adjustments from 900px */
@media (max-width: 1368px) {
  .stats-nav-cards {
    transform: translateY(clamp(-60px, -8vw, -100px));
  }
  .stats-nav-cards {
    align-items: flex-start;
    transform: translateY(clamp(-80px, -10vw, -120px));
    justify-content: flex-start;
    gap: clamp(4px, 1vw, 8px);
    padding-left: clamp(20px, 4vw, 40px);
  }
  .stats-nav-card {
    width: clamp(70px, 18vw, 100px);
  }
  .stats-nav-card__frame {
    padding: 3px;
    border: 2px solid #000;
  }
  .stats-nav-card__inner {
    min-height: clamp(20px, 5vw, 30px);
    padding: clamp(3px, 0.8vw, 6px) clamp(4px, 1.2vw, 8px);
    border: 2px solid #000;
  }
  .stats-nav-card__label {
    font-size: clamp(10px, 2.5vw, 16px);
  }
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .stats-nav-cards {
    align-items: flex-start;
    transform: translateY(clamp(-120px, -15vw, -180px));
    justify-content: flex-start;
    gap: clamp(6px, 1.5vw, 12px);
    padding-left: clamp(20px, 4vw, 40px);
  }
  .stats-nav-card {
    width: clamp(90px, 22vw, 130px);
  }
  .stats-nav-card__frame {
    padding: 4px;
    border: 2px solid #000;
  }
  .stats-nav-card__inner {
    min-height: clamp(28px, 7vw, 40px);
    padding: clamp(4px, 1.2vw, 8px) clamp(6px, 1.5vw, 12px);
    border: 2px solid #000;
  }
  .stats-nav-card__label {
    font-size: clamp(12px, 3vw, 18px);
  }
}
/* Extra small screens - even tighter spacing */
@media (max-width: 480px) {
  .stats-nav-cards {
    transform: translateY(clamp(-140px, -18vw, -200px));
    gap: clamp(4px, 1vw, 8px);
  }
  .stats-nav-card {
    width: clamp(75px, 18vw, 100px);
  }
  .stats-nav-card__inner {
    min-height: clamp(24px, 6vw, 32px);
    padding: clamp(3px, 0.8vw, 6px) clamp(4px, 1.2vw, 8px);
  }
  .stats-nav-card__label {
    font-size: clamp(10px, 2.5vw, 15px);
  }
}
.book-carousel__viewport::-webkit-scrollbar-track {
  background: transparent;
}

.book-carousel__viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.book-carousel__viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ====== NAVBAR (glass, Kanit Black) ====== */
.mp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 6px 12px;
  /* wine glass distortion effect */
  background: linear-gradient(135deg, rgba(240, 240, 240, 0.12) 0%, rgba(200, 200, 200, 0.08) 25%, rgba(180, 180, 180, 0.06) 50%, rgba(220, 220, 220, 0.1) 75%, rgba(250, 250, 250, 0.14) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px) saturate(180%) contrast(120%) hue-rotate(5deg);
  -webkit-backdrop-filter: blur(8px) saturate(180%) contrast(120%) hue-rotate(5deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  /* HD glass artifacts */
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 200, 200, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(200, 255, 200, 0.08) 0%, transparent 50%), linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
}

.mp-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(16px, 6vw, 120px);
}

.mp-nav__link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900; /* Kanit Black */
  letter-spacing: 0.5px;
  font-size: clamp(14px, 3.2vw, 48px);
  text-transform: uppercase;
  padding: 4px 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-stroke: 0.5px transparent;
  -webkit-text-stroke: 0.5px transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* tiny white glow on hover/focus */
.mp-nav__link:hover,
.mp-nav__link:focus-visible {
  color: rgb(255, 255, 255);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Active state - text color matches glow, black stroke */
.mp-nav__link.is-active {
  -webkit-text-stroke: 0.4px #000;
}

@media (min-width: 900px) {
  .mp-nav__link.is-active {
    -webkit-text-stroke: 1.5px #000;
  }
}
.mp-nav__link.is-home {
  color: #ff80c7;
  text-shadow: 0 0 12px rgba(255, 128, 199, 0.8), 0 0 24px rgba(250, 160, 255, 0.6);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mp-nav__link.is-books {
  color: #80aaff;
  text-shadow: 0 0 12px rgba(128, 170, 255, 0.8), 0 0 24px rgba(131, 141, 255, 0.6);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mp-nav__link.is-stats {
  color: #ffdf78;
  text-shadow: 0 0 12px rgba(255, 223, 120, 0.8), 0 0 24px rgba(255, 223, 120, 0.6);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mp-nav__link.is-profile {
  color: #b6a0ff;
  text-shadow: 0 0 12px rgba(182, 160, 255, 0.8), 0 0 24px rgba(135, 114, 255, 0.6);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Hidden state controlled by JS */
.mp-nav--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Mobile Navigation Styles */
.mp-nav__list--desktop {
  display: flex;
}

.mp-nav__list--mobile {
  display: none;
}

/* Mobile Navigation - Always visible, app-style */
@media (max-width: 768px) {
  .mp-nav {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    height: 80px;
    padding: 12px 20px;
    /* Enhanced glass effect with balanced darkness for better icon contrast */
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.75) 0%, rgba(30, 30, 30, 0.7) 25%, rgba(25, 25, 25, 0.65) 50%, rgba(35, 35, 35, 0.72) 75%, rgba(45, 45, 45, 0.78) 100%);
    backdrop-filter: blur(24px) saturate(130%) contrast(125%) brightness(0.85);
    -webkit-backdrop-filter: blur(24px) saturate(130%) contrast(125%) brightness(0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    /* Ensure perfect bottom attachment */
    margin: 0;
    border-radius: 0;
  }
  .mp-nav__list--desktop {
    display: none;
  }
  .mp-nav__list--mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    gap: clamp(8px, 4vw, 24px);
    max-width: 100%;
  }
  .mp-nav__link--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 12vw, 56px);
    height: clamp(48px, 12vw, 56px);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }
  .mp-nav__link--mobile:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  }
  .mp-nav__link--mobile.is-active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  }
  /* Active state color glows for mobile */
  .mp-nav__link--mobile.is-home.is-active {
    background: rgba(255, 128, 199, 0.2);
    box-shadow: 0 0 20px rgba(255, 128, 199, 0.3);
  }
  .mp-nav__link--mobile.is-books.is-active {
    background: rgba(128, 170, 255, 0.2);
    box-shadow: 0 0 20px rgba(128, 170, 255, 0.3);
  }
  .mp-nav__link--mobile.is-stats.is-active {
    background: rgba(255, 223, 120, 0.2);
    box-shadow: 0 0 20px rgba(255, 223, 120, 0.3);
  }
  .mp-nav__link--mobile.is-profile.is-active {
    background: rgba(182, 160, 255, 0.2);
    box-shadow: 0 0 20px rgba(182, 160, 255, 0.3);
  }
  /* Add bottom padding to main content for mobile navbar */
  .mp-main {
    padding-bottom: 22px; /* Reducir el padding excesivo */
  }
  /* Ensure perfect bottom attachment - no gaps */
  body {
    margin: 0;
    padding: 0;
  }
  .mp-nav {
    /* Force perfect bottom alignment */
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    /* Remove any potential margins or borders that could cause gaps */
    margin: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
}
/* ====== USER STATE CARD ====== */
.usc {
  position: relative;
  background: var(--mp-grad-pink);
  border: 4px solid #000;
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--mp-shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 20px;
  min-height: 200px;
  overflow: hidden;
}

.usc__profile {
  position: relative;
  width: clamp(120px, 15vw, 180px);
  height: clamp(120px, 15vw, 180px);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.usc__profile-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}

.usc__profile-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #78FFF8 0%, #DD78FF 50%, #FFDF78 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.usc__profile-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.usc__profile-eyes {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.usc__profile-eye {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  text-shadow: 0 0 8px currentColor;
}

.usc__profile-eye--pink {
  color: #FF80C7;
}

.usc__profile-eye--blue {
  color: #80AAFF;
}

.usc__profile-smile {
  color: #80AAFF;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 8px currentColor;
}

.usc__stats {
  background: #fff;
  border: 4px solid #000;
  padding: 16px;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.usc__stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}

.usc__stats-dot {
  width: 12px;
  height: 12px;
  background: #78FFF8;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.usc__stats-title {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(16px, 3vw, 24px);
  color: #000;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.usc__stats-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usc__stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.usc__stat-label {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(12px, 2.5vw, 16px);
  color: #000;
  margin: 0;
}

.usc__stat-bar {
  height: 24px;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.usc__stat-bar--green {
  background: #85FF78;
  box-shadow: 0 0 12px rgba(133, 255, 120, 0.4);
}

.usc__stat-bar--orange {
  background: #FFAC83;
  box-shadow: 0 0 12px rgba(255, 172, 131, 0.4);
}

.usc__stat-value {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 2.8vw, 18px);
  color: #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.usc__points {
  grid-column: 1/-1;
  background: #85FF78;
  border: 4px solid #000;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(133, 255, 120, 0.3);
}

.usc__points-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.usc__points-dot--pink {
  background: #FF80C7;
  box-shadow: 0 0 8px rgba(255, 128, 199, 0.6);
}

.usc__points-dot--blue {
  background: #80AAFF;
  box-shadow: 0 0 8px rgba(128, 170, 255, 0.6);
}

.usc__points-text {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(18px, 4vw, 28px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .usc {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    padding: 16px;
  }
  .usc__profile {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    justify-self: center;
  }
  .usc__stats {
    padding: 12px;
  }
  .usc__points {
    padding: 10px 16px;
  }
}
/* ====== REVIEW CARD ====== */
.rc {
  position: relative;
  background: var(--mp-grad-blue);
  border: 4px solid #000;
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--mp-shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  min-height: 200px;
  overflow: hidden;
}

.rc__book {
  position: relative;
  width: clamp(200px, 25vw, 300px);
  height: clamp(300px, 40vw, 450px);
  border-radius: 0;
  overflow: hidden;
  border: 4px solid #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: #FFF;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc__book-img {
  max-width: 240px;
  height: 370px;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
}

.rc__book-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8AACFD 0%, #D7EFFF 50%, #838DFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.rc__book-icon {
  font-size: 48px;
  opacity: 0.8;
}

.rc__stats {
  background: #fff;
  border: 4px solid #000;
  padding: 16px;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rc__stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}

.rc__stats-dot {
  width: 12px;
  height: 12px;
  background: #DD78FF;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 8px rgba(221, 120, 255, 0.6);
}

.rc__user-image {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  z-index: 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.rc__user-image:hover {
  opacity: 1;
}

.rc__user-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rc__stats-title {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(16px, 3vw, 24px);
  color: #000;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.rc__stats-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rc__stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rc__stat-label {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(12px, 2.5vw, 16px);
  color: #000;
  margin: 0;
}

.rc__stat-bar {
  position: relative;
  height: 24px;
  background: var(--mp-rose);
  border: 2px solid #000;
  overflow: hidden;
  border-radius: 0;
}

.rc__stat-fill {
  height: 100%;
  background: var(--mp-green);
  position: relative;
  transition: width 0.3s ease;
  border-radius: 0;
}

/* Cut-off effect for the bars */
.rc__stat-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: -2px;
  width: 4px;
  height: 100%;
  background: #000;
  transform: skewX(-15deg);
  transform-origin: top right;
}

.rc__stat-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(12px, 2.5vw, 16px);
  color: #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .rc {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .rc__book {
    width: clamp(150px, 40vw, 200px);
    height: clamp(200px, 50vw, 280px);
    justify-self: center;
  }
  .rc__book-img {
    max-width: 120px;
    height: 180px;
  }
  .rc__stats {
    padding: 12px;
  }
}
/* ====== REVIEW CARD CAROUSEL ====== */
.review-carousel {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px auto;
  min-height: 400px;
}

.review-carousel .carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.review-carousel .carousel-content {
  display: flex;
  transition: transform 2s ease-in-out;
}

.review-carousel .carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

.review-carousel .carousel-item .rc {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

/* Review carousel navigation buttons - matching news carousel style */
.review-carousel .carousel-prev,
.review-carousel .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.8;
}

.review-carousel .carousel-prev svg,
.review-carousel .carousel-next svg {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0;
}

.review-carousel .carousel-prev:hover,
.review-carousel .carousel-next:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.review-carousel .carousel-prev {
  left: 4px;
}

.review-carousel .carousel-next {
  right: 4px;
}

/* Mobile adjustments for review carousel */
@media (max-width: 768px) {
  .review-carousel .carousel-prev,
  .review-carousel .carousel-next {
    display: flex;
    width: 32px;
    height: 80px;
  }
  .review-carousel .carousel-prev svg,
  .review-carousel .carousel-next svg {
    width: 20px !important;
    height: 20px !important;
  }
  .review-carousel .carousel-prev {
    left: 8px;
  }
  .review-carousel .carousel-next {
    right: 8px;
  }
}
/* ====== PROFILE SECTION ====== */
.ps {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

.ps__barcode {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  height: 120px;
  transform: translateY(-50%);
  background-color: transparent;
  background-image: repeating-linear-gradient(90deg, transparent 0 8px, #fff 8px 12px), repeating-linear-gradient(90deg, transparent 0 13px, #fff 13px 15px), repeating-linear-gradient(90deg, transparent 0 21px, #fff 21px 25px);
  background-size: 100% 100%;
  background-repeat: repeat;
  opacity: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0 4px, #000 14px calc(100% - 4px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0 4px, #000 14px calc(100% - 4px), transparent 100%);
  z-index: 1;
}

.ps__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 400px;
  width: 100%;
}

.ps__profile {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: visible;
  border: 4px solid #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ps__profile-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}

.ps__profile-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #78FFF8 0%, #DD78FF 50%, #FFDF78 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ps__profile-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ps__profile-eyes {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.ps__profile-eye {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  text-shadow: 0 0 8px currentColor;
}

.ps__profile-eye--pink {
  color: #FF80C7;
}

.ps__profile-eye--blue {
  color: #80AAFF;
}

.ps__profile-smile {
  color: #80AAFF;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 0 8px currentColor;
}

.ps__edit-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #000;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
}

.ps__edit-btn:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ps__edit-name-btn {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps__edit-name-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
  transform: scale(1.1);
}

.ps__name-card {
  background: #78FFF8;
  border: 3px solid #000;
  padding: 12px 24px;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ps__name-text {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(18px, 4vw, 24px);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  white-space: nowrap;
}

.ps__info-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.ps__info-card {
  padding: 10px 20px;
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ps__info-card--role {
  background: #DD78FF;
}

.ps__info-card--org {
  background: #B6A0FF;
}

.ps__info-text {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 3vw, 18px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ps__stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ps__points {
  text-align: center;
}

.ps__points-text {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(24px, 5vw, 36px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(255, 223, 120, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 0 12px rgba(255, 223, 120, 0.6));
}

.ps__ranking {
  text-align: center;
}

.ps__ranking-text {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(16px, 3.5vw, 20px);
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ps__logout {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.ps__logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: #fff;
  border: none;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ps__logout-btn:hover {
  background: linear-gradient(135deg, #ff5252, #d32f2f);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.ps__logout-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.ps__logout-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .ps {
    min-height: 400px;
    padding: 20px 20px;
  }
  .ps__barcode {
    top: 35%;
  }
  .ps__content {
    max-width: 100%;
    gap: 16px;
  }
  .ps__profile {
    width: 150px;
    height: 150px;
  }
  .ps__edit-btn {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
  }
  .ps__name-card {
    margin: 0 20px;
  }
  .ps__info-cards {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .ps__info-card {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
}
/* ====== EMBLEM REWARD ====== */
.emblem-reward {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 20px; /* Just enough padding for glow effect */
  margin: 2px; /* Even less margin for tighter spacing */
}

/* Add gradient definitions */
.emblem-reward svg {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.emblem-reward svg defs {
  display: none;
}

.emblem-reward:hover {
  transform: scale(1.1);
}

.emblem-reward__star {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.emblem-reward__star-path {
  transition: all 0.3s ease;
}

.emblem-reward__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.emblem-reward__title {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  color: #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1;
  margin: 0;
}

.emblem-reward__subtitle {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  color: #000;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1;
  margin: 0;
}

/* Normal Tier - White with Gold Glow */
.emblem-reward--normal .emblem-reward__star-path {
  fill: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 223, 120, 0.6));
  animation: glow-gold 2s ease-in-out infinite alternate;
}

.emblem-reward--normal .emblem-reward__title {
  font-size: 14px;
}

.emblem-reward--normal .emblem-reward__subtitle {
  font-size: 10px;
  margin-top: 2px;
}

/* Rare Tier - Bronze */
.emblem-reward--rare .emblem-reward__star-path {
  fill: #CD7F32; /* Bronze color */
  filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.6));
  animation: glow-bronze 2s ease-in-out infinite alternate;
}

.emblem-reward--rare .emblem-reward__title {
  font-size: 14px;
}

.emblem-reward--rare .emblem-reward__subtitle {
  font-size: 10px;
  margin-top: 2px;
}

/* Epic Tier - Silver */
.emblem-reward--epic .emblem-reward__star-path {
  fill: #C0C0C0; /* Silver color */
  filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.6));
  animation: glow-silver 2s ease-in-out infinite alternate;
}

.emblem-reward--epic .emblem-reward__title {
  font-size: 14px;
}

.emblem-reward--epic .emblem-reward__subtitle {
  font-size: 10px;
  margin-top: 2px;
}

/* Legendary Tier - Gold */
.emblem-reward--legendary .emblem-reward__star-path {
  fill: #FFD700; /* Gold color */
  filter: drop-shadow(0 0 12px rgba(255, 223, 120, 0.8));
  animation: glow-gold 2s ease-in-out infinite alternate;
}

.emblem-reward--legendary .emblem-reward__title {
  font-size: 14px;
}

.emblem-reward--legendary .emblem-reward__subtitle {
  font-size: 10px;
  margin-top: 2px;
}

/* Size adjustments based on content */
.emblem-reward:not(.emblem-reward--has-subtitle) .emblem-reward__title {
  font-size: 16px;
}

/* Glow Animations */
@keyframes glow-gold {
  0% {
    filter: drop-shadow(0 0 8px rgba(255, 223, 120, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 16px rgb(255, 223, 120));
  }
}
@keyframes glow-bronze {
  0% {
    filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 16px rgb(255, 140, 0));
  }
}
@keyframes glow-silver {
  0% {
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 16px rgb(192, 192, 192));
  }
}
/* ====== EMBLEM CAROUSEL ====== */
.emblem-carousel {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px auto;
  min-height: 120px;
}

.emblem-carousel__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.emblem-carousel__track {
  display: flex;
  padding: 16px 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 5px; /* Even less gap for tighter spacing */
}

.emblem-carousel__slide {
  flex: 0 0 auto;
  width: 420px; /* Much larger to accommodate HUGE emblems */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px; /* Minimal padding for tightest spacing */
}

/* Arrow Navigation - Desktop Only */
.emblem-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.7;
}

.emblem-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.emblem-carousel__arrow--prev {
  left: -24px;
}

.emblem-carousel__arrow--next {
  right: -24px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  .emblem-carousel__arrow {
    display: none;
  }
  .emblem-carousel__viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
  .emblem-carousel__slide {
    width: 350px !important; /* Optimized size for mobile */
  }
  .emblem-carousel__track {
    gap: 8px; /* Even tighter on mobile */
  }
}
/* ====== BOOKS LAYOUT ====== */
.books-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.books-layout__mobile-top,
.books-layout__mobile-bottom {
  width: 100%;
}

/* Desktop: Two-column layout */
@media (min-width: 1064px) {
  .books-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .books-layout__mobile-top {
    order: 1; /* Search + Categories on the left */
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .books-layout__mobile-bottom {
    order: 2; /* Collections on the right */
  }
  /* ONLY make the individual card components smaller on desktop - leave titles and search bar alone */
  .cat-card {
    padding: 0.8rem 1.2rem !important;
    margin: 0.4rem 0 !important;
  }
  .cat-card__label {
    font-size: 1.3rem !important;
  }
  .cols-item {
    padding: 0.8rem 1.2rem !important;
    margin: 0.4rem 0 !important;
  }
  .cols-item__label {
    font-size: 1.3rem !important;
  }
  .cats__grid {
    gap: 1rem !important;
  }
  .cols__list {
    gap: 0.8rem !important;
  }
  /* Reduce titles and search bar text on desktop - just a little */
  .cats__title,
  .cols__title {
    font-size: clamp(2.7rem, 6vw, 3.75rem) !important;
  }
  .sb__input {
    font-size: 1.65rem !important;
  }
}
/* ====== RANKING CONTAINER ====== */
.ranking-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Desktop: Cap the width of the ranking card */
@media (min-width: 1064px) {
  .ranking-container {
    max-width: 1200px;
    margin: 0 auto;
  }
}
/* ====== STATS CONTAINER ====== */
.stats-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Desktop: Cap the width of the stats card */
@media (min-width: 1064px) {
  .stats-container {
    max-width: 1400px;
    margin: 0 auto;
  }
}
/* ====== USER STATE CONTAINER ====== */
.user-state-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Desktop: Cap the width of the user state card */
@media (min-width: 1064px) {
  .user-state-container {
    max-width: 1400px;
    margin: 0 auto;
  }
}
/* ====== REVIEW CAROUSEL CONTAINER ====== */
.review-carousel-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Desktop: Cap the width of the review carousel with more width */
@media (min-width: 1064px) {
  .review-carousel-container {
    max-width: 1400px;
    margin: 0 auto;
  }
}
/* ====== SWEETALERT2 CUSTOM STYLES ====== */
/* ====== SWEETALERT2 CUSTOM STYLES ====== */
/* Custom styles for SweetAlert2 to match Galaxy Reads design system */
/* Import SweetAlert2 base styles */
/* Override SweetAlert2 styles to match app design */
.swal2-popup {
  background: #000 !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25) !important;
  max-width: 450px !important; /* Reduced from 500px */
  width: 90% !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Alert container with gradient background - only show when needed */
.swal2-popup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mp-grad-pink);
  z-index: -1;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show gradient background only when popup is fully loaded and not during transitions */
.swal2-show .swal2-popup::before {
  opacity: 1;
}

/* Prevent gradient from showing during button clicks or transitions */
.swal2-popup.swal2-no-backdrop::before,
.swal2-popup[style*="display: none"]::before {
  opacity: 0 !important;
}

/* Ensure proper z-index stacking */
.swal2-popup .swal2-title,
.swal2-popup .swal2-content,
.swal2-popup .swal2-html-container {
  position: relative !important;
  z-index: 2 !important;
}

/* Remove any conflicting styles from buttons */
.swal2-popup .swal2-styled:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Remove forced structure - let SweetAlert2 handle its own layout */
/* Title styling */
.swal2-title {
  font-family: var(--mp-font-display, "Jomhuria", system-ui, sans-serif) !important;
  font-weight: 900 !important;
  font-size: clamp(20px, 4vw, 36px) !important; /* Reduced from 48px to 36px */
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 12px 0 !important; /* Reduced from 16px to 12px */
  line-height: 1.1 !important;
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667) !important;
}

/* Content text styling - only style text, not structure */
.swal2-content {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(14px, 2.5vw, 18px) !important; /* Reduced from 20px to 18px */
  color: #fff !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

/* HTML container styling - only style text, not structure */
.swal2-html-container {
  color: #fff !important;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(14px, 2.5vw, 16px) !important; /* Reduced from 18px to 16px */
  line-height: 1.4 !important;
}

/* Icon styling */
.swal2-icon {
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  margin: 0 auto 20px auto !important;
  width: 80px !important;
  height: 80px !important;
}

/* Success icon */
.swal2-icon.swal2-success {
  border-color: var(--mp-green) !important;
  color: var(--mp-green) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border: 4px solid var(--mp-green) !important;
  border-radius: 0 !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
  background-color: var(--mp-green) !important;
  border-radius: 0 !important;
}

/* Error icon */
.swal2-icon.swal2-error {
  border-color: var(--mp-rose) !important;
  color: var(--mp-rose) !important;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
  background-color: var(--mp-rose) !important;
  border-radius: 0 !important;
}

/* Warning icon */
.swal2-icon.swal2-warning {
  border-color: var(--mp-sun) !important;
  color: var(--mp-sun) !important;
}

.swal2-icon.swal2-warning .swal2-warning-ring {
  border: 4px solid var(--mp-sun) !important;
  border-radius: 0 !important;
}

/* Info icon */
.swal2-icon.swal2-info {
  border-color: var(--mp-cyan) !important;
  color: var(--mp-cyan) !important;
}

.swal2-icon.swal2-info .swal2-info-ring {
  border: 4px solid var(--mp-cyan) !important;
  border-radius: 0 !important;
}

/* Question icon */
.swal2-icon.swal2-question {
  border-color: var(--mp-violet) !important;
  color: var(--mp-violet) !important;
}

.swal2-icon.swal2-question .swal2-question-ring {
  border: 4px solid var(--mp-violet) !important;
  border-radius: 0 !important;
}

/* Action buttons container - only style when present */
.swal2-actions {
  gap: 12px !important;
  justify-content: center !important;
}

/* Button styling */
.swal2-styled {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 900 !important;
  font-size: clamp(16px, 3vw, 20px) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  padding: 12px 24px !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  min-width: 120px !important;
  height: auto !important;
  line-height: 1 !important;
  position: relative !important;
  z-index: 2 !important;
  background-clip: padding-box !important;
  -webkit-background-clip: padding-box !important;
}

/* Confirm button (primary) */
.swal2-confirm {
  background: var(--mp-green) !important;
  color: #000 !important;
  border-color: #000 !important;
}

.swal2-confirm:hover {
  background: #85FF78 !important;
  transform: translateY(1px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
}

.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(133, 255, 120, 0.3) !important;
}

/* Cancel button (secondary) */
.swal2-cancel {
  background: var(--mp-rose) !important;
  color: #000 !important;
  border-color: #000 !important;
}

.swal2-cancel:hover {
  background: #FF8383 !important;
  transform: translateY(1px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
}

.swal2-cancel:focus {
  box-shadow: 0 0 0 3px rgba(255, 131, 131, 0.3) !important;
}

/* Deny button (warning) */
.swal2-deny {
  background: var(--mp-sun) !important;
  color: #000 !important;
  border-color: #000 !important;
}

.swal2-deny:hover {
  background: #FFDF78 !important;
  transform: translateY(1px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
}

.swal2-deny:focus {
  box-shadow: 0 0 0 3px rgba(255, 223, 120, 0.3) !important;
}

/* Input styling - only when input is present */
.swal2-input {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(16px, 3vw, 18px) !important;
  color: #000 !important;
  background: #fff !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.swal2-input:focus {
  outline: none !important;
  border-color: var(--mp-cyan) !important;
  box-shadow: 0 0 0 3px rgba(120, 255, 248, 0.3) !important;
}

.swal2-input::-moz-placeholder {
  color: #666 !important;
  font-style: italic !important;
}

.swal2-input::placeholder {
  color: #666 !important;
  font-style: italic !important;
}

/* Select styling - only when select is present */
.swal2-select {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(16px, 3vw, 18px) !important;
  color: #000 !important;
  background: #fff !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.swal2-select:focus {
  outline: none !important;
  border-color: var(--mp-cyan) !important;
  box-shadow: 0 0 0 3px rgba(120, 255, 248, 0.3) !important;
}

/* Textarea styling - only when textarea is present */
.swal2-textarea {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(16px, 3vw, 18px) !important;
  color: #000 !important;
  background: #fff !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  resize: vertical !important;
  min-height: 100px !important;
}

.swal2-textarea:focus {
  outline: none !important;
  border-color: var(--mp-cyan) !important;
  box-shadow: 0 0 0 3px rgba(120, 255, 248, 0.3) !important;
}

/* File input styling - only when file input is present */
.swal2-file {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(16px, 3vw, 18px) !important;
  color: #000 !important;
  background: #fff !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  cursor: pointer !important;
}

/* Style the internal file input button and text */
.swal2-file::-webkit-file-upload-button {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 600 !important;
  font-size: clamp(14px, 2.5vw, 16px) !important;
  color: #000 !important;
  background: var(--mp-cyan) !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  padding: 8px 12px !important;
  margin-right: 12px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  -webkit-transition: all 0.3s ease !important;
  transition: all 0.3s ease !important;
}

.swal2-file::-webkit-file-upload-button:hover {
  background: #78FFF8 !important;
  transform: translateY(1px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
}

/* Style the file input text */
.swal2-file::file-selector-button {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 600 !important;
  font-size: clamp(14px, 2.5vw, 16px) !important;
  color: #000 !important;
  background: var(--mp-cyan) !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  padding: 8px 12px !important;
  margin-right: 12px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  transition: all 0.3s ease !important;
}

.swal2-file::file-selector-button:hover {
  background: #78FFF8 !important;
  transform: translateY(1px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4) !important;
}

.swal2-file:focus {
  outline: none !important;
  border-color: var(--mp-cyan) !important;
  box-shadow: 0 0 0 3px rgba(120, 255, 248, 0.3) !important;
}

/* Range input styling - only when range is present */
.swal2-range {
  width: 100% !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
       appearance: none !important;
  height: 12px !important; /* Increased height for better visibility */
  background: transparent !important; /* Make the entire range input transparent */
  border: none !important; /* Remove all borders */
  border-radius: 0 !important;
  outline: none !important;
  margin: 0 0 16px 0 !important; /* Add proper bottom margin to prevent collision with buttons */
  position: relative !important;
}

/* Force override for all range input elements */
input[type=range].swal2-range {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
       appearance: none !important;
  background: transparent !important; /* Make transparent */
  border: none !important; /* Remove all borders */
  border-radius: 0 !important;
  height: 12px !important;
}

/* Override any inherited styles */
.swal2-popup input[type=range] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
       appearance: none !important;
  background: transparent !important; /* Make transparent */
  border: none !important; /* Remove all borders */
  border-radius: 0 !important;
  height: 12px !important;
}

/* Style the range track (the background area) - ROJO para parte no avanzada */
.swal2-range::-webkit-slider-track,
input[type=range].swal2-range::-webkit-slider-track,
.swal2-popup input[type=range]::-webkit-slider-track {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 12px !important;
  background: var(--mp-rose) !important; /* ROJO para la parte no avanzada */
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  z-index: 1 !important; /* Ensure track is below progress */
}

/* Style the range track for Firefox - ROJO para parte no avanzada */
.swal2-range::-moz-range-track,
input[type=range].swal2-range::-moz-range-track,
.swal2-popup input[type=range]::-moz-range-track {
  height: 12px !important;
  background: var(--mp-rose) !important; /* ROJO para la parte no avanzada */
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  z-index: 1 !important; /* Ensure track is below progress */
}

/* Style the range progress area (filled portion) for WebKit - Multiple selectors for maximum coverage */
.swal2-range::-webkit-slider-runnable-track,
input[type=range].swal2-range::-webkit-slider-runnable-track,
.swal2-popup input[type=range]::-webkit-slider-runnable-track {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 12px !important;
  background: var(--mp-green) !important; /* Use your green color for progress */
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  z-index: 2 !important; /* Ensure progress is above track */
}

/* Style the range progress area for Firefox - Multiple selectors for maximum coverage */
.swal2-range::-moz-range-progress,
input[type=range].swal2-range::-moz-range-progress,
.swal2-popup input[type=range]::-moz-range-progress {
  height: 12px !important;
  background: var(--mp-green) !important; /* Use your green color for progress */
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
}

/* Range input container for better spacing */
.swal2-input-label {
  margin-bottom: 12px !important;
  display: block !important;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Range value display */
.swal2-range + .swal2-input-label {
  margin-top: 8px !important;
  margin-bottom: 16px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* Style the range thumb (the draggable circle) for WebKit browsers - Multiple selectors for maximum coverage */
.swal2-range::-webkit-slider-thumb,
input[type=range].swal2-range::-webkit-slider-thumb,
.swal2-popup input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 24px !important; /* Slightly larger for better usability */
  height: 24px !important;
  background: var(--mp-cyan) !important; /* Use your cyan color */
  border: 3px solid #000 !important; /* Thicker border for better visibility */
  border-radius: 0 !important; /* No curves - square shape */
  cursor: pointer !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important; /* Match your design system */
  -webkit-transition: all 0.3s ease !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  top: -6px !important; /* Center the thumb on the track */
}

/* Hover effect for the thumb - Multiple selectors for maximum coverage */
.swal2-range::-webkit-slider-thumb:hover,
input[type=range].swal2-range::-webkit-slider-thumb:hover,
.swal2-popup input[type=range]::-webkit-slider-thumb:hover {
  background: #78FFF8 !important; /* Lighter cyan on hover */
  transform: scale(1.1) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Active state for the thumb - Multiple selectors for maximum coverage */
.swal2-range::-webkit-slider-thumb:active,
input[type=range].swal2-range::-webkit-slider-thumb:active,
.swal2-popup input[type=range]::-webkit-slider-thumb:active {
  background: #78FFF8 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5) !important;
}

/* Style the range thumb for Firefox - Multiple selectors for maximum coverage */
.swal2-range::-moz-range-thumb,
input[type=range].swal2-range::-moz-range-thumb,
.swal2-popup input[type=range]::-moz-range-thumb {
  width: 24px !important;
  height: 24px !important;
  background: var(--mp-cyan) !important; /* Use your cyan color */
  border: 3px solid #000 !important; /* Thicker border for better visibility */
  border-radius: 0 !important; /* No curves - square shape */
  cursor: pointer !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important; /* Match your design system */
  -moz-transition: all 0.3s ease !important;
  transition: all 0.3s ease !important;
}

/* Hover effect for Firefox thumb - Multiple selectors for maximum coverage */
.swal2-range::-moz-range-thumb:hover,
input[type=range].swal2-range::-moz-range-thumb:hover,
.swal2-popup input[type=range]::-moz-range-thumb:hover {
  background: #78FFF8 !important; /* Lighter cyan on hover */
  transform: scale(1.1) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Active state for Firefox thumb - Multiple selectors for maximum coverage */
.swal2-range::-moz-range-thumb:active,
input[type=range].swal2-range::-moz-range-thumb:active,
.swal2-popup input[type=range]::-moz-range-thumb:active {
  background: #78FFF8 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5) !important;
}

/* Additional selectors for SweetAlert2 generated elements */
.swal2-html-container input[type=range],
.swal2-content input[type=range],
.swal2-input-group input[type=range] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
       appearance: none !important;
  background: transparent !important; /* Make transparent */
  border: none !important; /* Remove all borders */
  border-radius: 0 !important;
  height: 12px !important;
}

/* Track for SweetAlert2 generated elements - ROJO para parte no avanzada */
.swal2-html-container input[type=range]::-webkit-slider-track,
.swal2-content input[type=range]::-webkit-slider-track,
.swal2-input-group input[type=range]::-webkit-slider-track {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 12px !important;
  background: var(--mp-rose) !important; /* ROJO para la parte no avanzada */
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  z-index: 1 !important; /* Ensure track is below progress */
}

/* Progress for SweetAlert2 generated elements */
.swal2-html-container input[type=range]::-webkit-slider-runnable-track,
.swal2-content input[type=range]::-webkit-slider-runnable-track,
.swal2-input-group input[type=range]::-webkit-slider-runnable-track {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 12px !important;
  background: var(--mp-green) !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
}

/* Thumb for SweetAlert2 generated elements */
.swal2-html-container input[type=range]::-webkit-slider-thumb,
.swal2-content input[type=range]::-webkit-slider-thumb,
.swal2-input-group input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  background: var(--mp-cyan) !important;
  border: 3px solid #000 !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  -webkit-transition: all 0.3s ease !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  top: -6px !important;
}

/* Track (fondo completo) - ROJO para parte no avanzada */
input[type=range]::-webkit-slider-track,
* input[type=range]::-webkit-slider-track {
  background: var(--mp-rose) !important; /* ROJO para la parte no avanzada */
  border: 2px solid #000 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  height: 12px !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Track para Firefox - ROJO para parte no avanzada */
input[type=range]::-moz-range-track,
* input[type=range]::-moz-range-track {
  background: var(--mp-rose) !important; /* ROJO para la parte no avanzada */
  border: 2px solid #000 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  height: 12px !important;
  border-radius: 0 !important;
}

/* PROGRESO - TRANSPARENTE para que se vea el rojo de fondo */
input[type=range]::-webkit-slider-runnable-track {
  background: transparent !important; /* TRANSPARENTE para que se vea el rojo */
  border: none !important;
  box-shadow: none !important;
  height: 12px !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative !important;
  z-index: 1 !important;
}

/* PROGRESO para Firefox - TRANSPARENTE para que se vea el rojo de fondo */
input[type=range]::-moz-range-progress {
  background: transparent !important; /* TRANSPARENTE para que se vea el rojo */
  border: none !important;
  box-shadow: none !important;
  height: 12px !important;
  border-radius: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* FORZAR que el track sea morado y el progreso sea verde */
input[type=range] {
  background: var(--mp-purple) !important; /* MORADO de fondo */
  position: relative !important;
  border: 2px solid #000 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  border-radius: 0 !important;
  height: 12px !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
       appearance: none !important;
  z-index: 2 !important; /* ENCIMA del pseudo-elemento verde */
}

/* Crear el progreso verde con pseudo-elemento que se actualiza dinámicamente */
input[type=range]::before {
  content: "" !important;
  position: absolute !important;
  top: -2px !important;
  left: -2px !important;
  height: 12px !important;
  background: var(--mp-green) !important; /* VERDE para el progreso */
  border: 2px solid #000 !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35) !important;
  border-radius: 0 !important;
  z-index: 1 !important; /* DEBAJO del track morado para que se vea el morado */
  width: var(--slider-progress, 50%) !important; /* Se actualiza dinámicamente con JavaScript */
  pointer-events: none !important; /* No interferir con el slider */
}

/* Hacer el runnable-track transparente para que se vea el track morado */
input[type=range]::-webkit-slider-runnable-track {
  background: transparent !important; /* TRANSPARENTE para que se vea el morado */
  border: none !important;
  box-shadow: none !important;
  height: 12px !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Track debe ser TRANSPARENTE para que se vea el fondo morado del input */
input[type=range]::-webkit-slider-track,
* input[type=range]::-webkit-slider-track,
.swal2-range::-webkit-slider-track,
input[type=range].swal2-range::-webkit-slider-track,
.swal2-popup input[type=range]::-webkit-slider-track,
div:where(.swal2-container) .swal2-range input::-webkit-slider-track {
  background: transparent !important; /* TRANSPARENTE para que se vea el fondo morado */
  border: none !important;
  box-shadow: none !important;
  height: 12px !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Progress debe ser TRANSPARENTE para que se vea el track morado */
input[type=range]::-webkit-slider-runnable-track,
* input[type=range]::-webkit-slider-runnable-track,
.swal2-range::-webkit-slider-runnable-track,
input[type=range].swal2-range::-webkit-slider-runnable-track,
.swal2-popup input[type=range]::-webkit-slider-runnable-track,
div:where(.swal2-container) .swal2-range input::-webkit-slider-runnable-track {
  background: transparent !important; /* TRANSPARENTE para que se vea el morado */
  border: none !important;
  box-shadow: none !important;
  height: 12px !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Track para Firefox - TRANSPARENTE */
input[type=range]::-moz-range-track {
  background: transparent !important; /* TRANSPARENTE para que se vea el fondo morado */
  border: none !important;
  box-shadow: none !important;
  height: 12px !important;
  border-radius: 0 !important;
}

/* Progress para Firefox - TRANSPARENTE */
input[type=range]::-moz-range-progress {
  background: transparent !important; /* TRANSPARENTE para que se vean los pseudo-elementos */
  border: none !important;
  box-shadow: none !important;
  height: 12px !important;
  border-radius: 0 !important;
}

/* SOLO el texto del valor del slider - BLANCO BLANCO BLANCO - SOBRESCRIBIR SweetAlert2 */
div:where(.swal2-container) .swal2-range output,
div:where(.swal2-container) div:where(.swal2-popup) .swal2-range output,
.swal2-range-output,
.swal2-popup .swal2-range-output,
.swal2-html-container .swal2-range-output,
.swal2-popup .swal2-html-container .swal2-range-output {
  color: #ffffff !important; /* BLANCO BLANCO BLANCO */
  --swal2-color: #ffffff !important; /* SOBRESCRIBIR la variable CSS */
  font-weight: 700 !important;
  font-size: 16px !important;
  position: relative !important;
  top: -6px !important; /* Subir el texto para alinearlo con el slider */
  vertical-align: middle !important;
  display: inline-block !important;
  margin-left: 10px !important;
  line-height: 1 !important;
  text-shadow: 0 0 2px #000 !important; /* Sombra negra para contraste */
}

/* Progress bar styling */
.swal2-progress-steps {
  background: #000 !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  padding: 20px !important;
  margin: 0 0 20px 0 !important;
}

.swal2-progress-step {
  background: var(--mp-cyan) !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 8px 12px !important;
  margin: 0 4px !important;
}

.swal2-progress-step.swal2-active-progress-step {
  background: var(--mp-green) !important;
  box-shadow: 0 0 12px rgba(133, 255, 120, 0.6) !important;
}

/* Timer styling */
.swal2-timer-progress-bar {
  background: var(--mp-cyan) !important;
  height: 4px !important;
  border-radius: 0 !important;
}

/* Close button styling */
.swal2-close {
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  top: 10px !important;
  right: 10px !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid #fff !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
}

.swal2-close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Header styling */
.swal2-header {
  padding: 20px 20px 0 20px !important;
  margin: 0 !important;
}

/* Footer styling */
.swal2-footer {
  background: #000 !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  color: #fff !important;
  text-align: center !important;
}

/* HTML container styling - removed duplicate, handled above */
/* Validation message styling */
.swal2-validation-message {
  background: var(--mp-rose) !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  padding: 8px 12px !important;
  margin: 0 0 16px 0 !important;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-align: center !important;
}

/* Loading spinner styling */
.swal2-loader {
  border: 4px solid rgba(255, 255, 255, 0.3) !important;
  border-top: 4px solid var(--mp-cyan) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  animation: swal2-spin 1s linear infinite !important;
}

@keyframes swal2-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .swal2-popup {
    width: 95% !important;
    max-width: 400px !important;
  }
  .swal2-title {
    font-size: clamp(20px, 4vw, 32px) !important;
  }
  .swal2-content,
  .swal2-html-container {
    font-size: clamp(14px, 2.5vw, 16px) !important;
  }
  .swal2-styled {
    font-size: clamp(14px, 2.5vw, 16px) !important;
    padding: 10px 20px !important;
    min-width: 100px !important;
  }
  .swal2-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .swal2-styled {
    width: 100% !important;
  }
}
/* Dark theme overrides */
@media (prefers-color-scheme: dark) {
  .swal2-popup {
    background: #000 !important;
  }
  .swal2-popup::before {
    background: var(--mp-grad-pink) !important;
  }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
  .swal2-popup {
    border-width: 6px !important;
  }
  .swal2-styled {
    border-width: 6px !important;
  }
  .swal2-input,
  .swal2-select,
  .swal2-textarea,
  .swal2-file {
    border-width: 6px !important;
  }
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .swal2-styled,
  .swal2-close,
  .swal2-loader {
    transition: none !important;
    animation: none !important;
  }
  .swal2-styled:hover {
    transform: none !important;
  }
  .swal2-close:hover {
    transform: none !important;
  }
}
/* ====== BOOK MODAL STYLES ====== */
/* Book Modal Styles - Using Mata Packa Design System */
.book-modal-popup {
  max-width: 90vw !important;
  max-height: 90vh !important;
  overflow: hidden !important;
  background: rgba(20, 20, 20, 0.95) !important;
  border: 4px solid #000 !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
  position: relative !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.book-modal-content {
  max-height: 80vh !important;
  overflow-y: auto !important;
  padding: 0 !important;
  background: transparent !important;
  height: 100% !important;
}

.book-modal {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: transparent;
  color: var(--mp-white);
  font-family: var(--mp-font-body);
}

/* Header Section */
.book-modal__header {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 4px solid #000;
  background: rgba(138, 172, 253, 0.2);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.book-modal__image {
  flex-shrink: 0;
  width: 200px;
  height: 280px;
  position: relative;
}

.book-modal__cover {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 4px solid #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.book-modal__placeholder {
  width: 100%;
  height: 100%;
  background: rgba(250, 160, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: var(--mp-white);
  border: 4px solid #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-family: var(--mp-font-display);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.book-modal__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-modal__title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  margin: 0 0 8px 0;
  color: var(--mp-white);
  line-height: 1.2;
  font-family: var(--mp-font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 0px #000;
}

.book-modal__author {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--mp-white);
  margin: 0 0 16px 0;
  font-weight: 600;
  opacity: 0.9;
}

.book-modal__rating {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--mp-sun);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 0 8px rgba(255, 223, 120, 0.6);
}

.book-modal__meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.book-modal__pages,
.book-modal__year,
.book-modal__language {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border: 2px solid #000;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mp-black);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.book-modal__publisher {
  margin-bottom: 16px;
}

.book-modal__publisher-text {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border: 2px solid #000;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mp-white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-block;
}

.book-modal__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-modal__category {
  background: rgba(221, 120, 255, 0.3);
  color: var(--mp-white);
  padding: 4px 12px;
  border: 2px solid #000;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Description Section */
.book-modal__description {
  padding: 20px;
  border-bottom: 4px solid #000;
  background: rgba(27, 27, 27, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.book-modal__description h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 900;
  margin: 0 0 12px 0;
  color: var(--mp-white);
  font-family: var(--mp-font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0px #000;
}

.book-modal__description p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
  color: var(--mp-white);
  margin: 0;
  opacity: 0.9;
}

/* Actions Section */
.book-modal__actions {
  padding: 20px;
  flex: 1;
  background: transparent;
}

.book-modal__organization,
.book-modal__progress,
.book-modal__review,
.book-modal__reviews {
  margin-bottom: 24px;
  background: rgba(27, 27, 27, 0.3);
  padding: 16px;
  border: 2px solid #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.book-modal__organization h3,
.book-modal__progress h3,
.book-modal__review h3,
.book-modal__reviews h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 900;
  margin: 0 0 12px 0;
  color: var(--mp-white);
  font-family: var(--mp-font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0px #000;
}

/* Buttons - Using Mata Packa Button Style */
.btn {
  padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 28px);
  border: 4px solid #000;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: var(--mp-font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
  background: var(--mp-green);
  color: var(--mp-black);
}

.btn-primary:hover {
  background: var(--mp-sun);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(133, 255, 120, 0.3);
}

.btn-organization {
  background: var(--mp-green);
  color: var(--mp-black);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  padding: clamp(12px, 2.5vw, 16px) clamp(24px, 5vw, 32px);
}

.btn-organization:hover {
  background: var(--mp-sun);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(133, 255, 120, 0.3);
}

.btn-remove {
  background: var(--mp-rose);
  color: var(--mp-white);
}

.btn-remove:hover {
  background: var(--mp-peach);
  box-shadow: 0 4px 12px rgba(255, 131, 131, 0.3);
}

/* Progress Display */
.progress-display {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: var(--mp-white);
}

.progress-bar {
  width: 100%;
  height: 24px;
  background: var(--mp-rose);
  border: 2px solid #000;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(255, 131, 131, 0.45);
}

.progress-fill {
  height: 100%;
  background: var(--mp-green);
  transition: width 0.3s ease;
  box-shadow: 0 0 16px rgba(133, 255, 120, 0.55) inset;
}

.progress-notes {
  font-style: italic;
  color: var(--mp-white);
  margin-top: 8px;
  font-family: var(--mp-font-body);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-status-pending {
  background: rgba(255, 193, 7, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 193, 7, 0.4);
  padding: 12px;
  margin: 12px 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}
.progress-status-pending .status-text {
  color: var(--mp-white);
  font-weight: bold;
  font-size: 14px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Review Display */
.review-display {
  background: var(--mp-white);
  padding: 16px;
  border: 2px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.review-ratings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.review-rating {
  background: var(--mp-surface-2);
  padding: 12px;
  border: 2px solid #000;
  color: var(--mp-white);
  font-family: var(--mp-font-body);
  font-weight: 600;
}

.review-notes {
  font-style: italic;
  color: var(--mp-black);
  margin-top: 8px;
  font-family: var(--mp-font-body);
  font-weight: 600;
}

/* Reviews Carousel - Use existing carousel styles */
.reviews-carousel-container {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
}

.reviews-carousel-container .carousel-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.reviews-carousel-container .carousel-content {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.reviews-carousel-container .carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px;
}

.reviews-carousel-container .rc {
  margin: 0;
  background: rgba(138, 172, 253, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Progress Modal */
.progress-modal-popup {
  max-width: 600px !important;
  background: var(--mp-surface) !important;
  border: 4px solid #000 !important;
  border-radius: var(--mp-radius) !important;
  box-shadow: var(--mp-shadow) !important;
}

.progress-modal {
  padding: 20px;
  background: var(--mp-surface);
  color: var(--mp-white);
  font-family: var(--mp-font-body);
}

.progress-modal__book {
  text-align: center;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--mp-surface-2);
  border: 2px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-modal__book h3 {
  margin: 0 0 8px 0;
  color: var(--mp-white);
  font-family: var(--mp-font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0px #000;
}

.progress-modal__slider {
  margin-bottom: 24px;
}

.progress-modal__slider label {
  display: block;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--mp-white);
  font-family: var(--mp-font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0px #000;
}

.page-slider {
  width: 100%;
  height: 12px;
  border: 2px solid #000;
  background: var(--mp-rose);
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  box-shadow: 0 0 16px rgba(255, 131, 131, 0.45);
}

.page-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #000;
  background: var(--mp-green);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.page-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid #000;
  background: var(--mp-green);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.progress-modal__notes label {
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--mp-white);
  font-family: var(--mp-font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0px #000;
}

.progress-notes-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #000;
  background: var(--mp-white);
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  font-family: var(--mp-font-body);
  color: var(--mp-black);
}

.progress-notes-textarea:focus {
  outline: none;
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px rgba(133, 255, 120, 0.3);
}

/* Review Modal */
.review-modal-popup {
  max-width: 600px !important;
  background: var(--mp-surface) !important;
  border: 4px solid #000 !important;
  box-shadow: var(--mp-shadow) !important;
}

.review-modal {
  padding: 24px;
  background: var(--mp-surface);
  color: var(--mp-white);
  font-family: var(--mp-font-body);
}

.review-modal__ratings {
  margin-bottom: 24px;
}

.rating-item {
  margin-bottom: 20px;
}

.rating-item label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--mp-white);
  font-size: 16px;
}

.rating-item input[type=range] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

.rating-item input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mp-accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.rating-item input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mp-accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.review-modal__recommend {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.recommend-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--mp-white);
}

.recommend-toggle input[type=checkbox] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin-right: 12px;
  transition: background 0.3s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.recommend-toggle input[type=checkbox]:checked + .toggle-slider {
  background: var(--mp-green);
}

.recommend-toggle input[type=checkbox]:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.review-modal__notes label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--mp-white);
  font-size: 16px;
}

.review-notes-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--mp-white);
  font-family: var(--mp-font-body);
}

.review-notes-textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.review-notes-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.review-notes-textarea:focus {
  outline: none;
  border-color: var(--mp-accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .book-modal__header {
    flex-direction: column;
    text-align: center;
  }
  .book-modal__image {
    width: 150px;
    height: 210px;
    margin: 0 auto;
  }
  .book-modal__title {
    font-size: 2rem;
  }
  .book-modal__meta {
    justify-content: center;
  }
  .book-modal__categories {
    justify-content: center;
  }
  .reviews-track {
    padding: 12px;
  }
  .review-card {
    flex: 0 0 250px;
  }
}
/* Text utilities */
.text-muted {
  color: #7f8c8d !important;
}

/* Ensure proper scrolling behavior */
.swal2-popup.book-modal-popup {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.swal2-html-container.book-modal-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 80vh !important;
  padding: 0 !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Ensure the book modal content can scroll - remove duplicate scrolling */
.book-modal {
  overflow: visible !important;
  flex: 1 !important;
}

/* Prevent body scroll when modal is open - manual approach */
/* COMMENTED OUT: This was causing scroll issues - let SweetAlert handle it naturally
body {
  &.swal2-shown {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    padding-right: 0 !important;
  }
}
*/
/* Ensure the modal content can scroll properly */
.swal2-html-container {
  overflow-y: auto !important;
  max-height: 80vh !important;
}

/* Additional scroll prevention */
.swal2-popup {
  overflow: visible !important;
}

/* Organization Toggle Switch */
.organization-toggle .toggle-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.organization-toggle .toggle-switch input[type=checkbox] {
  display: none;
}
.organization-toggle .toggle-switch .toggle-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background: var(--mp-rose);
  border: 2px solid #000;
  border-radius: 12px;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 16px rgba(255, 131, 131, 0.45);
}
.organization-toggle .toggle-switch .toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--mp-white);
  border: 2px solid #000;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.organization-toggle .toggle-switch .toggle-label {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--mp-white);
  font-weight: 600;
  font-family: var(--mp-font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0px #000;
}
.organization-toggle .toggle-switch input[type=checkbox]:checked + .toggle-slider {
  background: var(--mp-green);
  box-shadow: 0 0 16px rgba(133, 255, 120, 0.45);
}
.organization-toggle .toggle-switch input[type=checkbox]:checked + .toggle-slider::before {
  transform: translateX(22px);
}
.organization-toggle .toggle-switch:hover .toggle-slider {
  background: var(--mp-peach);
  box-shadow: 0 0 16px rgba(255, 131, 131, 0.6);
}
.organization-toggle .toggle-switch input[type=checkbox]:checked + .toggle-slider:hover {
  background: var(--mp-sun);
  box-shadow: 0 0 16px rgba(255, 223, 120, 0.6);
}

/* Progress Section with Existing Progress */
.progress-section .progress-display {
  background: var(--mp-white);
  padding: 16px;
  border: 2px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
}
.progress-section .progress-display .progress-bar {
  width: 100%;
  height: 24px;
  background: var(--mp-rose);
  border: 2px solid #000;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(255, 131, 131, 0.45);
}
.progress-section .progress-display .progress-bar .progress-fill {
  height: 100%;
  background: var(--mp-green);
  transition: width 0.3s ease;
  box-shadow: 0 0 16px rgba(133, 255, 120, 0.55) inset;
}
.progress-section .progress-display p {
  margin: 0.25rem 0;
  color: var(--mp-black);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--mp-font-body);
}
.progress-section .progress-display .progress-notes {
  font-style: italic;
  color: var(--mp-black);
  margin-top: 8px;
  font-family: var(--mp-font-body);
  font-weight: 600;
}

/* Empty States for Reviews */
.empty-reviews {
  text-align: center;
  padding: 20px;
  color: var(--mp-white);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.empty-reviews p {
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  font-family: var(--mp-font-body);
  opacity: 0.9;
}

/* ====== BOOKS SEARCH STYLES ====== */
/* ====== BOOKS SEARCH STYLES ====== */
/* Search results and filtering styles using Mata Packa design system */
/* Search Results Container */
.search-results {
  background: var(--mp-grad-blue);
  border: 4px solid #000;
  margin: 20px 0;
  padding: 24px;
  position: relative;
  z-index: 2;
  /* Asegurar que no haya limitaciones de altura */
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Search Results Header */
.search-results__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.search-results__info {
  flex: 1;
  min-width: 200px;
}

.search-results__title {
  font-family: var(--mp-font-display);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--mp-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667);
}

.search-results__count {
  font-family: var(--mp-font-body);
  font-weight: 400;
  font-size: clamp(14px, 2.5vw, 16px);
  color: var(--mp-white);
  margin: 0;
  opacity: 0.8;
}

/* Filters */
.search-results__filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.filter-label {
  font-family: var(--mp-font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--mp-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  font-family: var(--mp-font-body);
  font-weight: 400;
  font-size: 16px;
  color: #000;
  background: var(--mp-white);
  border: 3px solid #000;
  padding: 12px 16px;
  cursor: pointer;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}
.filter-select:focus {
  outline: none;
  border-color: var(--mp-cyan);
  box-shadow: 0 0 0 3px rgba(120, 255, 248, 0.3);
}
.filter-select:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

/* Loading Spinner */
.search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 16px;
}

.search-loading__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--mp-cyan);
  border-radius: 50%;
  animation: search-spin 1s linear infinite;
}

@keyframes search-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.search-loading__text {
  font-family: var(--mp-font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--mp-white);
  margin: 0;
}

/* Books Grid */
.search-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* Search Book Card */
.search-book-card {
  background: rgba(30, 30, 30, 0.4);
  border: 3px solid #000;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}
.search-book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: rgba(40, 40, 40, 0.5);
}
.search-book-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--mp-grad-pink);
  z-index: 1;
}

.search-book-card__image {
  width: 100%;
  height: 200px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border: 2px solid #000;
}

.search-book-card__cover {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

.search-book-card:hover .search-book-card__cover {
  transform: scale(1.05);
}

.search-book-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--mp-grad-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
}

.search-book-card__placeholder-text {
  font-family: var(--mp-font-display);
  font-weight: 900;
  font-size: 24px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-book-card__info {
  position: relative;
  z-index: 2;
}

.search-book-card__title {
  font-family: var(--mp-font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--mp-white);
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.search-book-card__author {
  font-family: var(--mp-font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--mp-white);
  margin: 0 0 12px 0;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-book-card__meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.search-book-card__year,
.search-book-card__pages {
  font-family: var(--mp-font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--mp-white);
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-book-card__categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.search-book-card__category {
  font-family: var(--mp-font-body);
  font-weight: 500;
  font-size: 11px;
  color: #000;
  background: var(--mp-violet);
  padding: 2px 6px;
  border: 1px solid #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* No Results */
.search-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--mp-white);
}

.search-no-results__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.search-no-results__title {
  font-family: var(--mp-font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--mp-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.search-no-results__text {
  font-family: var(--mp-font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--mp-white);
  margin: 0;
  opacity: 0.8;
}

/* Error State */
.search-error {
  text-align: center;
  padding: 60px 20px;
  color: var(--mp-white);
}

.search-error__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.search-error__title {
  font-family: var(--mp-font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--mp-rose);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.search-error__text {
  font-family: var(--mp-font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--mp-white);
  margin: 0;
  opacity: 0.8;
}

/* Pagination */
.search-pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination__btn {
  font-family: var(--mp-font-body);
  font-weight: 600;
  font-size: 14px;
  color: #000;
  background: var(--mp-white);
  border: 3px solid #000;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.pagination__btn:hover:not(.pagination__btn--active) {
  background: var(--mp-cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}
.pagination__btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.pagination__btn--active {
  background: var(--mp-green);
  color: #000;
  cursor: default;
}

.pagination__btn--prev,
.pagination__btn--next {
  background: var(--mp-violet);
  color: #000;
}
.pagination__btn--prev:hover,
.pagination__btn--next:hover {
  background: #DD78FF;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-results {
    margin: 16px 0;
    padding: 16px;
  }
  .search-results__header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .search-results__filters {
    flex-direction: column;
    gap: 12px;
  }
  .filter-group {
    min-width: auto;
  }
  .search-books-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  .search-book-card {
    padding: 12px;
  }
  .search-book-card__image {
    height: 160px;
  }
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pagination__btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .search-books-grid {
    grid-template-columns: 1fr;
  }
  .search-book-card__meta {
    flex-direction: column;
    gap: 6px;
  }
}
/* ====== RANKING CARD ====== */
.ranking-card {
  background: var(--mp-grad-blue);
  border: 4px solid #000;
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--mp-shadow);
}

.ranking-card__content {
  background: #fff;
  border: 4px solid #000;
  overflow: hidden;
}

.ranking-card__header {
  padding: 20px;
  border-bottom: 2px solid #FAA0FF;
}

.ranking-card__title-section {
  text-align: center;
  position: relative;
}

.ranking-card__title {
  font-family: var(--mp-font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  color: var(--mp-cerise);
  text-shadow: 2px 2px 0px #000;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(1deg);
  line-height: 0.8;
}

.ranking-card__month-year {
  font-family: var(--mp-font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  color: var(--mp-cerise);
  text-shadow: 2px 2px 0px #000;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(1deg);
  line-height: 0.8;
}

.ranking-entry {
  display: flex;
  align-items: center;
  padding: clamp(12px, 2vw, 20px) clamp(16px, 3vw, 24px);
  border-bottom: 2px solid #FAA0FF;
  gap: clamp(25px, 4.5vw, 35px); /* Responsive gap that scales properly */
  transition: background-color 0.2s ease;
}

.ranking-entry:last-child {
  border-bottom: none;
}

.ranking-entry:hover {
  background-color: #f8f8f8;
}

.ranking-entry__rank {
  flex-shrink: 0;
}

.ranking-entry__star {
  width: clamp(65px, 8vw, 100px); /* Smaller on mobile, bigger on desktop */
  height: clamp(65px, 8vw, 100px); /* Smaller on mobile, bigger on desktop */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: clamp(18px, 3.5vw, 25px); /* Responsive padding for glow */
  margin: clamp(-18px, -3.5vw, -25px); /* Compensate for padding */
  margin-left: clamp(12px, 2.5vw, 20px); /* Responsive left margin */
  will-change: transform, filter; /* Optimize for animations */
  transform: translateZ(0); /* Force hardware acceleration */
}

.ranking-entry__star-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.ranking-entry__star-number {
  position: relative;
  z-index: 2;
  font-family: var(--mp-font-display);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.ranking-entry__star-path--1 {
  fill: url(#gold-gradient);
  animation: glow-gold-star 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 clamp(2px, 0.5vw, 4px) rgba(255, 223, 120, 0.4));
}

.ranking-entry__star-path--2 {
  fill: url(#silver-gradient);
  animation: glow-silver-star 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 clamp(2px, 0.5vw, 4px) rgba(192, 192, 192, 0.4));
}

.ranking-entry__star-path--3 {
  fill: url(#bronze-gradient);
  animation: glow-bronze-star 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 clamp(2px, 0.5vw, 4px) rgba(255, 140, 0, 0.4));
}

.ranking-entry__star-path--4,
.ranking-entry__star-path--5,
.ranking-entry__star-path--6,
.ranking-entry__star-path--7,
.ranking-entry__star-path--8,
.ranking-entry__star-path--9,
.ranking-entry__star-path--10 {
  fill: #333;
}

/* Add gradient definitions */
.ranking-card__content {
  background: #fff;
  border: 4px solid #000;
  overflow: hidden;
  position: relative;
}

.ranking-card__content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 223, 120, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(192, 192, 192, 0.1) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Optimized glow animations - responsive and properly sized */
@keyframes glow-gold-star {
  0% {
    filter: drop-shadow(0 0 clamp(2px, 0.5vw, 4px) rgba(255, 223, 120, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 clamp(4px, 1vw, 6px) rgba(255, 223, 120, 0.7));
  }
}
@keyframes glow-silver-star {
  0% {
    filter: drop-shadow(0 0 clamp(2px, 0.5vw, 4px) rgba(192, 192, 192, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 clamp(4px, 1vw, 6px) rgba(192, 192, 192, 0.7));
  }
}
@keyframes glow-bronze-star {
  0% {
    filter: drop-shadow(0 0 clamp(2px, 0.5vw, 4px) rgba(255, 140, 0, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 clamp(4px, 1vw, 6px) rgba(255, 140, 0, 0.7));
  }
}
.ranking-entry__info {
  flex: 1;
  min-width: 0;
}

.ranking-entry__name {
  font-family: var(--mp-font-body);
  font-weight: 900;
  font-size: clamp(16px, 3vw, 24px);
  color: #C32572;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ranking-entry__stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ranking-entry__books,
.ranking-entry__challenges {
  font-family: var(--mp-font-body);
  font-weight: 400;
  font-size: clamp(8px, 3vw, 16px);
  color: #C32572;
  margin: 0;
}

.ranking-entry__points {
  font-family: var(--mp-font-display);
  font-weight: 900;
  font-size: clamp(16px, 4vw, 40px);
  text-shadow: 1px 1px 0px #000;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: all 0.3s ease;
  will-change: transform, text-shadow; /* Optimize for animations */
  transform: translateZ(0); /* Force hardware acceleration */
}

.ranking-entry__points--1 {
  color: #FFDF78; /* Yellow */
  animation: glow-gold-text 2s ease-in-out infinite alternate;
  text-shadow: 1px 1px 0px #000, 0 0 6px rgba(255, 223, 120, 0.6);
}

.ranking-entry__points--2 {
  color: #808080; /* Gray */
  animation: glow-silver-text 2s ease-in-out infinite alternate;
  text-shadow: 1px 1px 0px #000, 0 0 6px rgba(192, 192, 192, 0.6);
}

.ranking-entry__points--3 {
  color: #FF8C00; /* Orange */
  animation: glow-bronze-text 2s ease-in-out infinite alternate;
  text-shadow: 1px 1px 0px #000, 0 0 6px rgba(255, 140, 0, 0.6);
}

.ranking-entry__points--4,
.ranking-entry__points--5,
.ranking-entry__points--6,
.ranking-entry__points--7,
.ranking-entry__points--8,
.ranking-entry__points--9,
.ranking-entry__points--10 {
  color: #FAA0FF; /* Pink */
}

/* Optimized text glow animations - simplified for better performance */
@keyframes glow-gold-text {
  0% {
    text-shadow: 1px 1px 0px #000, 0 0 6px rgba(255, 223, 120, 0.6);
    transform: scale(1);
  }
  100% {
    text-shadow: 1px 1px 0px #000, 0 0 12px rgb(255, 223, 120);
    transform: scale(1.08);
  }
}
@keyframes glow-silver-text {
  0% {
    text-shadow: 1px 1px 0px #000, 0 0 6px rgba(192, 192, 192, 0.6);
    transform: scale(1);
  }
  100% {
    text-shadow: 1px 1px 0px #000, 0 0 12px rgb(192, 192, 192);
    transform: scale(1.08);
  }
}
@keyframes glow-bronze-text {
  0% {
    text-shadow: 1px 1px 0px #000, 0 0 6px rgba(255, 140, 0, 0.6);
    transform: scale(1);
  }
  100% {
    text-shadow: 1px 1px 0px #000, 0 0 12px rgb(255, 140, 0);
    transform: scale(1.08);
  }
}
.ranking-entry__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #DD78FF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  overflow: hidden;
}

.ranking-entry__avatar-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}

.ranking-entry__avatar-icon {
  font-size: 20px;
  color: #fff;
}

.ranking-card__empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-family: var(--mp-font-body);
  font-size: 18px;
}

/* Empty state styles for "PUESTO NO TOMADO" */
.ranking-entry--empty {
  opacity: 0.6;
  background-color: #f9f9f9;
}

.ranking-entry--empty:hover {
  background-color: #f0f0f0;
}

.ranking-entry__name--empty {
  color: #999 !important;
  font-style: italic;
}

.ranking-entry__avatar-icon--empty {
  color: #ccc !important;
  font-size: 16px;
}

/* Mobile-specific adjustments for better spacing */
@media (max-width: 768px) {
  .ranking-entry {
    gap: 20px; /* Reduced gap on mobile to prevent text pressure */
    padding: 12px 16px; /* Reduced padding on mobile */
    display: flex;
    align-items: center;
  }
  .ranking-entry__star {
    width: 60px; /* Smaller stars on mobile */
    height: 60px;
    margin-left: 8px; /* Much less left separation */
    padding: 15px; /* Reduced padding for smaller stars */
    margin: -15px; /* Compensate for reduced padding */
    flex-shrink: 0;
  }
  .ranking-entry__star-number {
    font-size: 18px; /* Smaller number on mobile */
  }
  .ranking-entry__info {
    flex: 1;
    min-width: 0;
    margin-right: 8px; /* Space before points */
  }
  .ranking-entry__name {
    font-size: clamp(14px, 3.5vw, 18px); /* Smaller name on mobile */
    margin-bottom: 2px; /* Reduced margin */
  }
  .ranking-entry__stats {
    gap: 1px; /* Reduced gap between stats */
  }
  .ranking-entry__books,
  .ranking-entry__challenges {
    font-size: clamp(10px, 2.5vw, 12px); /* Smaller stats text */
  }
  /* Create a tight container for points and avatar - MOBILE ONLY */
  .ranking-entry__points-container {
    display: flex;
    flex-direction: column; /* Stack vertically */
    align-items: flex-end; /* Align to right side */
    gap: 2px; /* Very tight gap between points and avatar */
    flex-shrink: 0;
    justify-content: space-between; /* Distribute space */
    height: 100%; /* Take full height of parent */
  }
  .ranking-entry__points {
    order: 2; /* Points go second (bottom) */
    margin: 0;
    padding: 0;
  }
  .ranking-entry__avatar {
    order: 1; /* Avatar goes first (top) */
    margin: 0;
    padding: 0;
  }
}
/* Desktop layout - normal positioning */
@media (min-width: 769px) {
  .ranking-entry__points-container {
    display: contents; /* Remove container on desktop - points and avatar are separate */
  }
}
/* Import progress confirmation modal styles */
/* ====== PROGRESS CONFIRMATION MODAL STYLES ====== */
/* Styles for the progress confirmation modal */
.progress-confirmation-modal {
  padding: 20px;
  color: #fff;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  max-width: 100%;
  overflow-y: auto;
}

.progress-confirmation-modal__header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.progress-confirmation-modal__user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-confirmation-modal__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.progress-confirmation-modal__avatar-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.progress-confirmation-modal__user-info {
  flex: 1;
}

.progress-confirmation-modal__user-name {
  font-family: var(--mp-font-display, "Jomhuria", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(20px, 4vw, 28px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
  line-height: 1.1;
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667);
}

.progress-confirmation-modal__challenge {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  margin: 0;
  opacity: 0.9;
}

.progress-confirmation-modal__book {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
}

.progress-confirmation-modal__book-cover {
  width: 80px;
  height: 120px;
  border-radius: 0;
  overflow: hidden;
  border: 3px solid #000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.progress-confirmation-modal__book-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.progress-confirmation-modal__book-placeholder {
  width: 100%;
  height: 100%;
  background: var(--mp-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000;
}

.progress-confirmation-modal__book-icon {
  font-size: 32px;
  color: #000;
}

.progress-confirmation-modal__book-info {
  flex: 1;
}

.progress-confirmation-modal__book-title {
  font-family: var(--mp-font-display, "Jomhuria", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(16px, 3vw, 20px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
  line-height: 1.1;
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667);
}

.progress-confirmation-modal__book-author {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(12px, 2vw, 14px);
  color: #fff;
  margin: 0;
  opacity: 0.8;
}

.progress-confirmation-modal__explanation {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.progress-confirmation-modal__explanation h4 {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

.progress-confirmation-modal__explanation p {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(12px, 2vw, 14px);
  color: #fff;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

.progress-confirmation-modal__progress {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.progress-confirmation-modal__progress h4 {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}

.progress-confirmation-modal__points-section {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.progress-confirmation-modal__points-section h4 {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px 0;
}

.progress-confirmation-modal__points-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-confirmation-modal__points-label {
  display: block;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.progress-confirmation-modal__points-slider {
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background: var(--mp-purple);
  border: 2px solid #000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  border-radius: 0;
  margin-bottom: 8px;
  position: relative;
}

.progress-confirmation-modal__points-slider::-webkit-slider-track {
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.progress-confirmation-modal__points-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--mp-cyan);
  border: 3px solid #000;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  top: -6px;
}

.progress-confirmation-modal__points-slider::-webkit-slider-thumb:hover {
  background: #78FFF8;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.progress-confirmation-modal__points-slider::-moz-range-track {
  height: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.progress-confirmation-modal__points-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--mp-cyan);
  border: 3px solid #000;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.progress-confirmation-modal__points-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: 12px;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 8px;
}

.progress-confirmation-modal__points-explanation {
  margin-top: 8px;
}

.progress-confirmation-modal__points-explanation p {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(11px, 1.8vw, 13px);
  color: #fff;
  line-height: 1.4;
  margin: 0;
  opacity: 0.7;
  font-style: italic;
}

.progress-confirmation-modal__actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.progress-confirmation-modal__action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.progress-confirmation-modal__action-buttons .btn {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(14px, 2.5vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 4px solid #000;
  border-radius: 0;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.progress-confirmation-modal__action-buttons .btn-confirm {
  background: var(--mp-green);
  color: #000;
  border-color: #000;
}

.progress-confirmation-modal__action-buttons .btn-confirm:hover {
  background: #85FF78;
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.progress-confirmation-modal__action-buttons .btn-confirm:focus {
  box-shadow: 0 0 0 3px rgba(133, 255, 120, 0.3);
}

.progress-confirmation-modal__action-buttons .btn-reject {
  background: var(--mp-rose);
  color: #000;
  border-color: #000;
}

.progress-confirmation-modal__action-buttons .btn-reject:hover {
  background: #FF8383;
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.progress-confirmation-modal__action-buttons .btn-reject:focus {
  box-shadow: 0 0 0 3px rgba(255, 131, 131, 0.3);
}

.progress-confirmation-modal__action-buttons .btn-icon {
  font-size: 16px;
  font-weight: 900;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .progress-confirmation-modal {
    padding: 16px;
  }
  .progress-confirmation-modal__user {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .progress-confirmation-modal__avatar {
    width: 50px;
    height: 50px;
  }
  .progress-confirmation-modal__book {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .progress-confirmation-modal__book-cover {
    width: 60px;
    height: 90px;
  }
  .progress-confirmation-modal__action-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .progress-confirmation-modal__action-buttons .btn {
    width: 100%;
    min-width: auto;
  }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
  .progress-confirmation-modal__header,
  .progress-confirmation-modal__book,
  .progress-confirmation-modal__explanation,
  .progress-confirmation-modal__progress,
  .progress-confirmation-modal__actions {
    border-width: 4px;
  }
  .progress-confirmation-modal__action-buttons .btn {
    border-width: 6px;
  }
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .progress-confirmation-modal__action-buttons .btn {
    transition: none;
  }
  .progress-confirmation-modal__action-buttons .btn:hover {
    transform: none;
  }
}
/* Import challenge card modal styles */
/* ====== CHALLENGE CARD MODAL STYLES ====== */
/* Styles for challenge card modals (add progress, view progress, signup) */
/* ===== ADD PROGRESS MODAL ===== */
.add-progress-modal {
  padding: 20px;
  color: #fff;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  max-width: 100%;
  overflow-y: auto;
}

.add-progress-modal__header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.add-progress-modal__title {
  font-family: var(--mp-font-display, "Jomhuria", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(20px, 4vw, 28px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
  line-height: 1.1;
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667);
}

.add-progress-modal__subtitle {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  margin: 0 0 8px 0;
  opacity: 0.9;
}

.add-progress-modal__points {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(16px, 3vw, 20px);
  color: var(--mp-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.add-progress-modal__book {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
}

.add-progress-modal__book-cover {
  width: 80px;
  height: 120px;
  border-radius: 0;
  overflow: hidden;
  border: 3px solid #000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.add-progress-modal__book-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.add-progress-modal__book-placeholder {
  width: 100%;
  height: 100%;
  background: var(--mp-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000;
}

.add-progress-modal__book-icon {
  font-size: 32px;
  color: #000;
}

.add-progress-modal__book-info {
  flex: 1;
}

.add-progress-modal__book-title {
  font-family: var(--mp-font-display, "Jomhuria", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(16px, 3vw, 20px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
  line-height: 1.1;
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667);
}

.add-progress-modal__book-author {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(12px, 2vw, 14px);
  color: #fff;
  margin: 0 0 8px 0;
  opacity: 0.8;
}

.add-progress-modal__book-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.add-progress-modal__pages-read,
.add-progress-modal__pages-total {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(12px, 2vw, 14px);
  color: #fff;
  margin: 0;
}

.add-progress-modal__progress {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.add-progress-modal__progress h4 {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}

.add-progress-modal__progress-bar {
  position: relative;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.add-progress-modal__progress-fill {
  height: 100%;
  background: var(--mp-green);
  transition: width 0.3s ease;
}

.add-progress-modal__progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: 14px;
  color: #000;
  text-shadow: 0 0 2px #fff;
}

.add-progress-modal__form {
  margin-bottom: 24px;
}

.add-progress-modal__slider-section {
  margin-bottom: 20px;
}

.add-progress-modal__slider-label {
  display: block;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.add-progress-modal__slider {
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background: var(--mp-purple);
  border: 2px solid #000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  border-radius: 0;
  margin-bottom: 8px;
  position: relative;
}

.add-progress-modal__slider::-webkit-slider-track {
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.add-progress-modal__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--mp-cyan);
  border: 3px solid #000;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  top: -6px;
}

.add-progress-modal__slider::-webkit-slider-thumb:hover {
  background: #78FFF8;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.add-progress-modal__slider::-moz-range-track {
  height: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.add-progress-modal__slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--mp-cyan);
  border: 3px solid #000;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.add-progress-modal__slider-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: 12px;
  color: #fff;
  opacity: 0.8;
}

.add-progress-modal__comment-section {
  margin-bottom: 20px;
}

.add-progress-modal__comment-label {
  display: block;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.add-progress-modal__comment-textarea {
  width: 100%;
  min-height: 100px;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #000;
  background: #fff;
  border: 4px solid #000;
  border-radius: 0;
  padding: 12px 16px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  resize: vertical;
  box-sizing: border-box;
}

.add-progress-modal__comment-textarea:focus {
  outline: none;
  border-color: var(--mp-cyan);
  box-shadow: 0 0 0 3px rgba(120, 255, 248, 0.3);
}

.add-progress-modal__comment-textarea::-moz-placeholder {
  color: #666;
  font-style: italic;
}

.add-progress-modal__comment-textarea::placeholder {
  color: #666;
  font-style: italic;
}

.add-progress-modal__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.add-progress-modal__actions .btn {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(14px, 2.5vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 4px solid #000;
  border-radius: 0;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.add-progress-modal__actions .btn-cancel {
  background: var(--mp-rose);
  color: #000;
  border-color: #000;
}

.add-progress-modal__actions .btn-cancel:hover {
  background: #FF8383;
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.add-progress-modal__actions .btn-confirm {
  background: var(--mp-green);
  color: #000;
  border-color: #000;
}

.add-progress-modal__actions .btn-confirm:hover {
  background: #85FF78;
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

/* ===== VIEW PROGRESS MODAL ===== */
.view-progress-modal {
  padding: 20px;
  color: #fff;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  max-width: 100%;
  overflow-y: auto;
}

.view-progress-modal__header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.view-progress-modal__title {
  font-family: var(--mp-font-display, "Jomhuria", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(20px, 4vw, 28px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
  line-height: 1.1;
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667);
}

.view-progress-modal__subtitle {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  margin: 0;
  opacity: 0.9;
}

.view-progress-modal__book {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
}

.view-progress-modal__book-cover {
  width: 80px;
  height: 120px;
  border-radius: 0;
  overflow: hidden;
  border: 3px solid #000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.view-progress-modal__book-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.view-progress-modal__book-placeholder {
  width: 100%;
  height: 100%;
  background: var(--mp-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000;
}

.view-progress-modal__book-icon {
  font-size: 32px;
  color: #000;
}

.view-progress-modal__book-info {
  flex: 1;
}

.view-progress-modal__book-title {
  font-family: var(--mp-font-display, "Jomhuria", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(16px, 3vw, 20px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
  line-height: 1.1;
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667);
}

.view-progress-modal__book-author {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(12px, 2vw, 14px);
  color: #fff;
  margin: 0;
  opacity: 0.8;
}

.view-progress-modal__description,
.view-progress-modal__progress,
.view-progress-modal__points {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.view-progress-modal__description h4,
.view-progress-modal__progress h4,
.view-progress-modal__points h4 {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}

.view-progress-modal__description p {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(12px, 2vw, 14px);
  color: #fff;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

.view-progress-modal__progress-bar {
  position: relative;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.view-progress-modal__progress-fill {
  height: 100%;
  background: var(--mp-green);
  transition: width 0.3s ease;
}

.view-progress-modal__progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 700;
  font-size: 14px;
  color: #000;
  text-shadow: 0 0 2px #fff;
}

.view-progress-modal__progress-stats {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(12px, 2vw, 14px);
  color: #fff;
  margin: 0;
}

.view-progress-modal__points-display {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(18px, 3.5vw, 24px);
  color: var(--mp-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.view-progress-modal__actions {
  display: flex;
  justify-content: center;
}

.view-progress-modal__actions .btn {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(14px, 2.5vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 4px solid #000;
  border-radius: 0;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.view-progress-modal__actions .btn-primary {
  background: var(--mp-cyan);
  color: #000;
  border-color: #000;
}

.view-progress-modal__actions .btn-primary:hover {
  background: #78FFF8;
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

/* ===== SIGNUP CONFIRMATION MODAL ===== */
.signup-confirmation-modal {
  padding: 20px;
  color: #fff;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  text-align: center;
}

.signup-confirmation-modal__header h3 {
  font-family: var(--mp-font-display, "Jomhuria", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(20px, 4vw, 28px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
  line-height: 1.1;
  text-shadow: 0 0 18px rgb(255, 255, 255), 0 2px 8px rgba(0, 0, 0, 0.6666666667);
}

.signup-confirmation-modal__header p {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  margin: 0 0 16px 0;
  opacity: 0.9;
}

.signup-confirmation-modal__description {
  margin-bottom: 20px;
}

.signup-confirmation-modal__description p {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: clamp(12px, 2vw, 14px);
  color: #fff;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

.signup-confirmation-modal__points {
  margin-bottom: 20px;
}

.signup-confirmation-modal__points strong {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 900;
  font-size: clamp(16px, 3vw, 20px);
  color: var(--mp-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signup-confirmation-modal__question {
  margin-bottom: 20px;
}

.signup-confirmation-modal__question p {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 600;
  font-size: clamp(14px, 2.5vw, 16px);
  color: #fff;
  margin: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .add-progress-modal,
  .view-progress-modal {
    padding: 16px;
  }
  .add-progress-modal__book,
  .view-progress-modal__book {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .add-progress-modal__book-cover,
  .view-progress-modal__book-cover {
    width: 60px;
    height: 90px;
  }
  .add-progress-modal__actions {
    flex-direction: column;
    gap: 12px;
  }
  .add-progress-modal__actions .btn {
    width: 100%;
    min-width: auto;
  }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
  .add-progress-modal__book,
  .add-progress-modal__progress,
  .add-progress-modal__slider-section,
  .add-progress-modal__comment-section,
  .view-progress-modal__book,
  .view-progress-modal__description,
  .view-progress-modal__progress,
  .view-progress-modal__points {
    border-width: 4px;
  }
  .add-progress-modal__actions .btn,
  .view-progress-modal__actions .btn {
    border-width: 6px;
  }
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .add-progress-modal__actions .btn,
  .view-progress-modal__actions .btn,
  .add-progress-modal__slider::-webkit-slider-thumb {
    -webkit-transition: none;
    transition: none;
  }
  .add-progress-modal__actions .btn:hover,
  .view-progress-modal__actions .btn:hover,
  .add-progress-modal__slider::-webkit-slider-thumb:hover {
    transform: none;
  }
}
.challenge-create-modal__points-container {
  margin-bottom: 16px;
}

.challenge-create-modal__points-label {
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}

.challenge-create-modal__points-slider {
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background: #e0e0e0;
  border: 2px solid #000;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  border-radius: 0;
  margin-bottom: 8px;
  position: relative;
}

.challenge-create-modal__points-slider::-webkit-slider-track {
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.challenge-create-modal__points-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--mp-green);
  border: 3px solid #000;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  top: -6px;
}

.challenge-create-modal__points-slider::-webkit-slider-thumb:hover {
  background: #78FF78;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.challenge-create-modal__points-slider::-moz-range-track {
  height: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.challenge-create-modal__points-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--mp-green);
  border: 3px solid #000;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  -moz-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.challenge-create-modal__points-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--mp-font-body, "Kanit", system-ui, sans-serif);
  font-weight: 400;
  font-size: 12px;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 8px;
}

/* Collections Styles */
/* Collection Item Clickable Styles */
.cols-item--clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}
.cols-item--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.cols-item--clickable.cols-item--active {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
  border-left: 4px solid var(--primary-color);
}
.cols-item--clickable.cols-item--active .cols-item__chev {
  transform: rotate(90deg);
}

/* Collection Carousel Styles */
.collection-carousel {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.collection-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.collection-carousel__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mp-white);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.collection-carousel__recommended-by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(138, 43, 226, 0.3);
  font-size: 0.9rem;
  color: var(--mp-white);
}

.collection-carousel__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.collection-carousel__content {
  min-height: 200px;
}

/* Collection Books Grid */
.collection-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

/* Collection Empty State */
.collection-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}
.collection-empty p {
  color: var(--mp-white);
  font-size: 1.1rem;
  opacity: 0.7;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .collection-carousel {
    margin-top: 1rem;
    padding: 1rem;
  }
  .collection-carousel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .collection-carousel__title {
    font-size: 1.25rem;
  }
  .collection-books-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .collection-books-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }
  .collection-carousel__recommended-by {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .collection-carousel__avatar {
    width: 28px;
    height: 28px;
  }
}
/* Profile Edit Modal Styles */
.profile-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.profile-edit-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.profile-edit-modal__content {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 4px solid #000;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid #000;
  background: var(--mp-grad-blue);
}

.modal-title {
  font-family: var(--mp-font-display);
  font-size: 24px;
  font-weight: 900;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  transition: background-color 0.2s ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.profile-edit-form {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--mp-font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #000;
  font-family: var(--mp-font-body);
  font-size: 16px;
  background: #fff;
  color: #000;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--mp-green);
  box-shadow: 0 0 0 3px rgba(133, 255, 120, 0.2);
}
.form-input::-moz-placeholder {
  color: #666;
}
.form-input::placeholder {
  color: #666;
}

.form-error {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}
.form-error.show {
  display: block;
}

/* Image Upload Styles */
.image-upload-section {
  text-align: center;
}

.image-preview-container {
  margin-bottom: 1rem;
}

.image-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  margin: 0 auto;
  display: block;
}

.image-upload-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.image-input {
  display: none;
}

.image-upload-btn,
.image-remove-btn {
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.image-upload-btn {
  background: var(--mp-accent-color);
  color: var(--mp-white);
}
.image-upload-btn:hover {
  background: #7a2dcc; /* Darker purple for hover */
}

.image-remove-btn {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}
.image-remove-btn:hover {
  background: rgba(255, 107, 107, 0.3);
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #000;
}

.btn {
  padding: 12px 24px;
  border: 2px solid #000;
  font-family: var(--mp-font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn.btn-secondary:hover {
  background: #f0f0f0;
}
.btn.btn-primary {
  background: var(--mp-green);
  color: #000;
}
.btn.btn-primary:hover {
  background: var(--mp-green-dark, #66bb6a);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading state */
.btn.loading {
  position: relative;
  color: transparent;
}
.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid var(--mp-white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* Responsive */
@media (max-width: 768px) {
  .profile-edit-modal__content {
    margin: 10% auto;
    width: 95%;
  }
  .form-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
/* Import landing page styles */
.landing-body {
  font-family: var(--mp-font-body);
  line-height: 1.6;
  color: var(--mp-white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--mp-surface);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.landing-header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 24px 0 rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.landing-logo .logo-img {
  width: 40px;
  height: 40px;
}
.landing-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mp-white);
  font-family: var(--mp-font-display);
}
.landing-logo .landing-logo-title .ts-parallax__title {
  font-size: 1.5rem !important;
  margin: 0 !important;
  line-height: 1 !important;
  background: var(--mp-grad-pink) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.landing-logo .landing-logo-title .ts-parallax__barcode {
  height: 2px !important;
  margin-top: 4px !important;
  background: var(--mp-grad-pink) !important;
  background-image: none !important; /* Sobrescribir el patrón de barras */
  opacity: 1 !important;
  -webkit-mask-image: none !important;
          mask-image: none !important; /* Quitar la máscara para que se vea completo */
}

.landing-footer .landing-logo-title .ts-parallax__title {
  font-size: 1.5rem !important;
  margin: 0 !important;
  line-height: 1 !important;
  background: var(--mp-grad-pink) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.landing-footer .landing-logo-title .ts-parallax__barcode {
  height: 2px !important;
  margin-top: 4px !important;
  background: var(--mp-grad-pink) !important;
  background-image: none !important;
  opacity: 1 !important;
  -webkit-mask-image: none !important;
          mask-image: none !important;
}

.landing-nav-menu {
  display: flex;
  gap: 2rem;
}
.landing-nav-menu .nav-link {
  color: var(--mp-white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: var(--mp-font-body);
}
.landing-nav-menu .nav-link:hover {
  color: var(--mp-sun);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.landing-hero {
  background: var(--mp-surface);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  color: var(--mp-white);
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin: 0 0 1rem 0;
  line-height: 1;
}
.hero-title .title-main {
  display: block;
  background: var(--mp-grad-sun);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--mp-font-display);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
}
.hero-title .title-sub {
  display: block;
  color: var(--mp-white);
  font-size: 3rem;
  font-family: var(--mp-font-display);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
}
.hero-title.ts-parallax .ts-parallax__title {
  font-size: 4rem !important;
  font-weight: 900 !important;
  margin: 0 0 1rem 0 !important;
  line-height: 1 !important;
  background: var(--mp-grad-sun) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-family: var(--mp-font-display) !important;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.3) !important;
}
.hero-title.ts-parallax .ts-parallax__barcode {
  height: 4px !important;
  margin-top: 8px !important;
  background: var(--mp-grad-sun) !important;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--mp-white);
  font-family: var(--mp-font-body);
}

.hero-description {
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-family: var(--mp-font-body);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 0px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.btn.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}
.btn.btn-primary {
  background: #FFDF78;
  color: #FFFFFF;
}
.btn.btn-primary:hover {
  background: rgb(255, 210.9111111111, 69);
  transform: translateY(-2px);
}
.btn.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}
.btn.btn-secondary:hover {
  background: #FFFFFF;
  color: #DD78FF;
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual .main-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.landing-features {
  padding: 6rem 0;
  background: var(--mp-surface-2);
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 3rem 0;
  color: var(--mp-white);
  font-family: var(--mp-font-display);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
}
.section-title.ts-parallax .ts-parallax__title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  margin: 0 0 3rem 0 !important;
  color: var(--mp-white) !important;
  font-family: var(--mp-font-display) !important;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.3) !important;
  text-align: center !important;
}
.section-title.ts-parallax .ts-parallax__barcode {
  height: 3px !important;
  margin-top: 6px !important;
  background: var(--mp-grad-sun) !important;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--mp-surface);
  padding: 2rem;
  border-radius: 0px;
  box-shadow: 0 0 24px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  color: var(--mp-white);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 32px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--mp-grad-violet);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 24px 0 rgba(255, 255, 255, 0.2);
}
.feature-icon i {
  font-size: 2rem;
  color: var(--mp-white);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--mp-white);
  font-family: var(--mp-font-body);
}

.feature-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
  font-family: var(--mp-font-body);
}

.landing-about {
  padding: 6rem 0;
  background: var(--mp-surface);
  position: relative;
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-description {
  font-size: 1.1rem;
  color: #6b7280;
  margin: 0 0 1.5rem 0;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}
.stat-item .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #DD78FF;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: #6b7280;
}

.about-image {
  display: flex;
  justify-content: center;
}
.about-image .about-img {
  max-width: 100%;
  height: auto;
}

.landing-contact {
  padding: 6rem 0;
  background: linear-gradient(135deg, #DD78FF, #C32572);
  color: #FFFFFF;
  text-align: center;
}

.contact-description {
  font-size: 1.2rem;
  margin: 0 0 2rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-footer {
  background: var(--mp-black);
  color: var(--mp-white);
  padding: 3rem 0 1rem 0;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links .footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links .footer-link:hover {
  color: #FFFFFF;
}

.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social .social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: background 0.3s ease;
}
.footer-social .social-link:hover {
  background: #DD78FF;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-title .title-sub {
    font-size: 2.5rem;
  }
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-stats {
    justify-content: center;
  }
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .landing-nav-menu {
    display: none;
  }
  .hero-actions {
    justify-content: center;
  }
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-title .title-sub {
    font-size: 2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }
}
/* Import galaxy animations */
@keyframes galaxyFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.8);
    filter: blur(10px);
  }
  50% {
    opacity: 0.7;
    transform: translateY(20px) scale(0.9);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes galaxyFadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px) rotate(-5deg);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    filter: blur(0);
  }
}
@keyframes galaxyFadeInRight {
  0% {
    opacity: 0;
    transform: translateX(60px) rotate(5deg);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    filter: blur(0);
  }
}
@keyframes galaxyScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(180deg);
    filter: blur(15px);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.7) rotate(90deg);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}
@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
@keyframes starFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}
@keyframes nebulaGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(221, 120, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(221, 120, 255, 0.6), 0 0 60px rgba(195, 37, 114, 0.4);
  }
}
@keyframes cosmicPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.2);
  }
}
.galaxy-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.galaxy-fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.galaxy-fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.galaxy-scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.galaxy-animated {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

.galaxy-twinkle {
  animation: starTwinkle 2s ease-in-out infinite;
}

.galaxy-float {
  animation: starFloat 3s ease-in-out infinite;
}

.galaxy-glow {
  animation: nebulaGlow 3s ease-in-out infinite;
}

.galaxy-pulse {
  animation: cosmicPulse 2s ease-in-out infinite;
}

.hero-title.galaxy-fade-in-up {
  animation-delay: 0.2s;
}

.hero-subtitle.galaxy-fade-in-up {
  animation-delay: 0.4s;
}

.hero-description.galaxy-fade-in-up {
  animation-delay: 0.6s;
}

.hero-actions.galaxy-fade-in-up {
  animation-delay: 0.8s;
}

.hero-image.galaxy-fade-in-right {
  animation-delay: 0.3s;
}

.feature-card.galaxy-fade-in-up {
  animation-delay: calc(var(--delay, 0) * 0.1s);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(221, 120, 255, 0.2);
  transition: all 0.3s ease;
}

.about-text.galaxy-fade-in-left {
  animation-delay: 0.2s;
}

.about-image.galaxy-fade-in-right {
  animation-delay: 0.4s;
}

.section-title.galaxy-fade-in-up {
  animation-delay: 0.1s;
}

.galaxy-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #DD78FF, transparent);
  border-radius: 50%;
  animation: starTwinkle 2s ease-in-out infinite;
}
.galaxy-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.galaxy-particle:nth-child(2) {
  top: 40%;
  left: 80%;
  animation-delay: 0.5s;
}
.galaxy-particle:nth-child(3) {
  top: 60%;
  left: 20%;
  animation-delay: 1s;
}
.galaxy-particle:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-delay: 1.5s;
}
.galaxy-particle:nth-child(5) {
  top: 30%;
  left: 50%;
  animation-delay: 2s;
}

.galaxy-wave {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(221, 120, 255, 0.3);
  border-radius: 50%;
  animation: starFloat 4s ease-in-out infinite;
}
.galaxy-wave:nth-child(1) {
  animation-delay: 0s;
}
.galaxy-wave:nth-child(2) {
  animation-delay: 1s;
}
.galaxy-wave:nth-child(3) {
  animation-delay: 2s;
}

@media (max-width: 768px) {
  .galaxy-fade-in-up,
  .galaxy-fade-in-left,
  .galaxy-fade-in-right,
  .galaxy-scale-in {
    animation-duration: 0.8s;
  }
  .galaxy-particle {
    width: 2px;
    height: 2px;
  }
}
.feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(221, 120, 255, 0.3);
  transition: all 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.05) rotate(2deg);
  transition: all 0.5s ease;
}

.about-image:hover {
  transform: scale(1.03) rotate(-1deg);
  transition: all 0.4s ease;
}

/* Import landing modals styles */
.landing-modal .swal2-popup {
  border-radius: 0px;
  padding: 2rem;
  max-width: 90vw !important;
  max-height: 90vh !important;
  width: auto !important;
  min-width: 400px;
  overflow-y: auto;
}
.landing-modal .swal2-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0A0A0A;
  margin-bottom: 1.5rem;
}
.landing-modal .swal2-html-container {
  max-height: 60vh;
  overflow-y: auto;
  margin: 1rem 0;
}
.landing-modal .swal2-actions {
  margin-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: stretch;
}
.landing-modal.multi-step-modal .swal2-popup {
  max-width: 95vw !important;
  max-height: 95vh !important;
  min-width: 600px;
  width: 80vw !important;
}
.landing-modal.multi-step-modal .swal2-html-container {
  max-height: 70vh;
}

.landing-modal-title {
  color: #0A0A0A;
  font-weight: 600;
}

.login-form,
.institution-form,
.user-form,
.previously-read-form,
.confirmation-form {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 1rem;
}
.login-form .form-group,
.institution-form .form-group,
.user-form .form-group,
.previously-read-form .form-group,
.confirmation-form .form-group {
  margin-bottom: 1.5rem;
}
.login-form .form-group label,
.institution-form .form-group label,
.user-form .form-group label,
.previously-read-form .form-group label,
.confirmation-form .form-group label {
  display: block;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}
.login-form .form-group .form-input,
.institution-form .form-group .form-input,
.user-form .form-group .form-input,
.previously-read-form .form-group .form-input,
.confirmation-form .form-group .form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 0px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.login-form .form-group .form-input:focus,
.institution-form .form-group .form-input:focus,
.user-form .form-group .form-input:focus,
.previously-read-form .form-group .form-input:focus,
.confirmation-form .form-group .form-input:focus {
  outline: none;
  border-color: #DD78FF;
}
.login-form .form-group .form-input::-moz-placeholder, .institution-form .form-group .form-input::-moz-placeholder, .user-form .form-group .form-input::-moz-placeholder, .previously-read-form .form-group .form-input::-moz-placeholder, .confirmation-form .form-group .form-input::-moz-placeholder {
  color: #6b7280;
}
.login-form .form-group .form-input::placeholder,
.institution-form .form-group .form-input::placeholder,
.user-form .form-group .form-input::placeholder,
.previously-read-form .form-group .form-input::placeholder,
.confirmation-form .form-group .form-input::placeholder {
  color: #6b7280;
}
.login-form .form-group .form-help,
.institution-form .form-group .form-help,
.user-form .form-group .form-help,
.previously-read-form .form-group .form-help,
.confirmation-form .form-group .form-help {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}
.login-form .form-actions,
.institution-form .form-actions,
.user-form .form-actions,
.previously-read-form .form-actions,
.confirmation-form .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}
.login-form .form-actions .btn,
.institution-form .form-actions .btn,
.user-form .form-actions .btn,
.previously-read-form .form-actions .btn,
.confirmation-form .form-actions .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 0px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.login-form .form-actions .btn.btn-sm,
.institution-form .form-actions .btn.btn-sm,
.user-form .form-actions .btn.btn-sm,
.previously-read-form .form-actions .btn.btn-sm,
.confirmation-form .form-actions .btn.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}
.login-form .form-actions .btn.btn-primary,
.institution-form .form-actions .btn.btn-primary,
.user-form .form-actions .btn.btn-primary,
.previously-read-form .form-actions .btn.btn-primary,
.confirmation-form .form-actions .btn.btn-primary {
  background: #DD78FF;
  color: #FFFFFF;
}
.login-form .form-actions .btn.btn-primary:hover,
.institution-form .form-actions .btn.btn-primary:hover,
.user-form .form-actions .btn.btn-primary:hover,
.previously-read-form .form-actions .btn.btn-primary:hover,
.confirmation-form .form-actions .btn.btn-primary:hover {
  background: rgb(208.1555555556, 69, 255);
}
.login-form .form-actions .btn.btn-secondary,
.institution-form .form-actions .btn.btn-secondary,
.user-form .form-actions .btn.btn-secondary,
.previously-read-form .form-actions .btn.btn-secondary,
.confirmation-form .form-actions .btn.btn-secondary {
  background: #f9fafb;
  color: #0A0A0A;
  border: 2px solid #e5e7eb;
}
.login-form .form-actions .btn.btn-secondary:hover,
.institution-form .form-actions .btn.btn-secondary:hover,
.user-form .form-actions .btn.btn-secondary:hover,
.previously-read-form .form-actions .btn.btn-secondary:hover,
.confirmation-form .form-actions .btn.btn-secondary:hover {
  background: rgb(233.7, 237.25, 240.8);
}
.login-form .form-actions .btn.btn-danger,
.institution-form .form-actions .btn.btn-danger,
.user-form .form-actions .btn.btn-danger,
.previously-read-form .form-actions .btn.btn-danger,
.confirmation-form .form-actions .btn.btn-danger {
  background: #FF8383;
  color: #FFFFFF;
}
.login-form .form-actions .btn.btn-danger:hover,
.institution-form .form-actions .btn.btn-danger:hover,
.user-form .form-actions .btn.btn-danger:hover,
.previously-read-form .form-actions .btn.btn-danger:hover,
.confirmation-form .form-actions .btn.btn-danger:hover {
  background: #ff5050;
}

.step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}
.step-indicator .step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  background: #f9fafb;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}
.step-indicator .step.active {
  background: #DD78FF;
  color: #FFFFFF;
  border-color: #DD78FF;
}
.step-indicator .step.completed {
  background: #78FFF8;
  color: #FFFFFF;
  border-color: #78FFF8;
}

.login-form .login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.login-form .login-footer a {
  color: #DD78FF;
  text-decoration: none;
  font-weight: 500;
}
.login-form .login-footer a:hover {
  text-decoration: underline;
}

.landing-modal .form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}
.landing-modal .form-actions .green-btn {
  width: 100%;
  margin: 0.5rem 0;
}

.image-upload .image-preview {
  margin: 1rem 0;
  text-align: center;
}
.image-upload .image-preview .preview-image {
  max-width: 100px;
  max-height: 100px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100px;
  height: 100px;
}

.book-search .search-input {
  display: flex;
  gap: 0.5rem;
}
.book-search .search-input .form-input {
  flex: 1;
}
.book-search .search-results {
  margin-top: 1rem;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0px;
  padding: 1rem;
}
.book-search .search-results .loading {
  text-align: center;
  color: #6b7280;
  padding: 2rem;
}
.book-search .search-results .book-result {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
.book-search .search-results .book-result:hover {
  background: #f9fafb;
}
.book-search .search-results .book-result .book-thumbnail {
  width: 50px;
  height: 70px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0px;
}
.book-search .search-results .book-result .book-info {
  flex: 1;
  min-width: 0;
}
.book-search .search-results .book-result .book-info h5 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0A0A0A;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.book-search .search-results .book-result .book-info p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.selected-books {
  margin-top: 2rem;
}
.selected-books h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0A0A0A;
  margin-bottom: 1rem;
}
.selected-books .no-books {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 2rem;
  background: #f9fafb;
  border-radius: 0px;
}
.selected-books .books-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0px;
  padding: 1rem;
}
.selected-books .books-list .selected-book {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0px;
  background: #f9fafb;
  margin-bottom: 0.5rem;
}
.selected-books .books-list .selected-book:last-child {
  margin-bottom: 0;
}
.selected-books .books-list .selected-book .book-thumbnail {
  width: 40px;
  height: 56px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0px;
}
.selected-books .books-list .selected-book .book-info {
  flex: 1;
}
.selected-books .books-list .selected-book .book-info h6 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0A0A0A;
}
.selected-books .books-list .selected-book .book-info p {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.confirmation-form .confirmation-content .confirmation-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0px;
}
.confirmation-form .confirmation-content .confirmation-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0A0A0A;
  margin: 0 0 0.75rem 0;
}
.confirmation-form .confirmation-content .confirmation-section p {
  margin: 0.5rem 0;
  color: #0A0A0A;
}
.confirmation-form .confirmation-content .confirmation-section p strong {
  color: #0A0A0A;
}

.form-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.landing-modal .swal2-html-container::-webkit-scrollbar {
  width: 8px;
}
.landing-modal .swal2-html-container::-webkit-scrollbar-track {
  background: #f9fafb;
}
.landing-modal .swal2-html-container::-webkit-scrollbar-thumb {
  background: #DD78FF;
  border-radius: 0px;
}
.landing-modal .swal2-html-container::-webkit-scrollbar-thumb:hover {
  background: rgb(208.1555555556, 69, 255);
}
.landing-modal .long-content {
  max-height: 50vh;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

@media (max-width: 768px) {
  .landing-modal .swal2-popup {
    width: 95% !important;
    margin: 1rem auto;
    max-height: 95vh !important;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .search-input {
    flex-direction: column;
  }
  .book-result,
  .selected-book {
    flex-direction: column;
    text-align: center;
  }
  .book-result .book-info,
  .selected-book .book-info {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .landing-modal .swal2-popup {
    padding: 1rem;
  }
  .step-indicator {
    gap: 0.5rem;
  }
  .step-indicator .step {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
  }
}
.form-error {
  color: #FF8383;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
  font-weight: 500;
}

.form-input.error {
  border-color: #FF8383 !important;
  box-shadow: 0 0 0 3px rgba(255, 131, 131, 0.1) !important;
}

.form-input.error:focus {
  border-color: #FF8383 !important;
  box-shadow: 0 0 0 3px rgba(255, 131, 131, 0.2) !important;
}

.form-error {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pagination-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #e5e7eb;
  gap: 1rem;
}
.pagination-controls > span:first-child {
  display: flex;
  justify-content: flex-start;
}
.pagination-controls > span:last-child {
  display: flex;
  justify-content: flex-end;
}
.pagination-controls .pagination-info {
  color: #6b7280;
  font-size: 0.875rem;
  text-align: center;
  justify-self: center;
}
.pagination-controls .btn {
  white-space: nowrap;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #DD78FF;
  font-size: 1rem;
}
.loading i {
  margin-right: 0.5rem;
}

.no-results,
.error-message {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.error-message {
  color: #FF8383;
}

/* Import web layout styles */
.web-body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #0A0A0A;
  margin: 0;
  padding: 0;
  background: #f9fafb;
  min-height: 100vh;
}

.web-nav {
  background: #FFFFFF;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0A0A0A;
}
.nav-brand .brand-link .brand-logo {
  width: 40px;
  height: 40px;
}
.nav-brand .brand-link .brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #DD78FF;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 0px;
  text-decoration: none;
  color: #0A0A0A;
  font-weight: 500;
  transition: all 0.3s ease;
}
.nav-menu .nav-link:hover {
  background: #f9fafb;
  color: #DD78FF;
}
.nav-menu .nav-link.active {
  background: #DD78FF;
  color: #FFFFFF;
}
.nav-menu .nav-link i {
  font-size: 1rem;
}

.nav-user .user-menu {
  position: relative;
}
.nav-user .user-menu .user-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 0px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.nav-user .user-menu .user-button:hover {
  background: #f9fafb;
}
.nav-user .user-menu .user-button .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.nav-user .user-menu .user-button .user-name {
  font-weight: 500;
  color: #0A0A0A;
}
.nav-user .user-menu .user-button i {
  font-size: 0.875rem;
  color: #6b7280;
  transition: transform 0.3s ease;
}
.nav-user .user-menu .user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #FFFFFF;
  border-radius: 0px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.nav-user .user-menu .user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-user .user-menu .user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #0A0A0A;
  transition: background 0.3s ease;
}
.nav-user .user-menu .user-dropdown .dropdown-item:hover {
  background: #f9fafb;
}
.nav-user .user-menu .user-dropdown .dropdown-item i {
  width: 16px;
  text-align: center;
}

.web-main {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
    height: 60px;
  }
  .nav-menu {
    display: none;
  }
  .nav-brand .brand-link .brand-text {
    font-size: 1.25rem;
  }
  .web-main {
    margin-top: 60px;
    padding: 1rem 0;
  }
  .nav-user .user-menu .user-button .user-name {
    display: none;
  }
}
@media (max-width: 480px) {
  .nav-container {
    padding: 0 12px;
  }
  .nav-brand .brand-link {
    gap: 8px;
  }
  .nav-brand .brand-link .brand-logo {
    width: 32px;
    height: 32px;
  }
  .nav-brand .brand-link .brand-text {
    font-size: 1.125rem;
  }
}
/* Import user registration styles */
/* User Registration Styles - PREFIXED TO AVOID CONFLICTS */
.ur-registration-section {
  padding: 22px;
  min-height: calc(100vh - 44px);
}

.ur-registration-container {
  max-width: 800px;
  margin: 0 auto;
}

.ur-registration-card {
  background: var(--mp-surface-2);
  border: 4px solid #000;
  padding: 40px;
  box-shadow: var(--mp-shadow);
}

.ur-registration-header {
  text-align: center;
  margin-bottom: 40px;
}

.ur-registration-title {
  font-family: var(--mp-font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  color: var(--mp-cerise);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ur-registration-subtitle {
  font-family: var(--mp-font-body);
  font-size: 1.1rem;
  color: var(--mp-white);
  margin: 0;
}

.institution-info {
  background: var(--mp-surface);
  border: 2px solid #000;
  padding: 15px;
  margin-top: 20px;
}

.institution-info p {
  font-family: var(--mp-font-body);
  font-size: 0.9rem;
  color: var(--mp-white);
  margin: 5px 0;
}

.institution-info strong {
  color: var(--mp-cerise);
}

/* Form Steps */
.ur-form-step {
  display: none;
}

.ur-form-step.active {
  display: block;
}

.step-title {
  font-family: var(--mp-font-display);
  font-size: clamp(32px, 6vw, 48px);
  color: var(--mp-white);
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
}

.step-description {
  font-family: var(--mp-font-body);
  font-size: 1rem;
  color: var(--mp-white);
  text-align: center;
  margin-bottom: 30px;
}

/* Password Input */
.ur-password-input {
  position: relative;
}

.ur-password-input .ur-form-input {
  padding-right: 45px; /* Space for toggle button */
}

.ur-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--mp-white);
  cursor: pointer;
  font-size: 1rem;
  padding: 5px;
}

/* Form Elements */
.ur-form-group {
  margin-bottom: 25px;
}

.ur-form-label {
  display: block;
  font-family: var(--mp-font-body);
  font-size: 1rem;
  color: var(--mp-white);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.ur-form-input,
.ur-form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--mp-surface);
  border: 2px solid #000;
  color: var(--mp-white);
  font-family: var(--mp-font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.ur-form-input:focus,
.ur-form-select:focus {
  outline: none;
  border-color: var(--mp-cerise);
  box-shadow: 0 0 0 2px rgba(195, 37, 114, 0.2);
}

.ur-form-input::-moz-placeholder {
  color: #888;
}

.ur-form-input::placeholder {
  color: #888;
}

.ur-form-error {
  color: var(--mp-rose);
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
  font-family: var(--mp-font-body);
}

/* Password Input */
.password-input {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--mp-white);
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--mp-cerise);
}

/* Image Upload Section */
.image-upload-section {
  text-align: center;
}

.image-preview-container {
  margin-bottom: 20px;
}

.image-preview {
  width: 150px;
  height: 150px;
  border: 3px solid var(--mp-cerise);
  -o-object-fit: cover;
     object-fit: cover;
  transition: border-color 0.3s ease;
}

.image-upload-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.image-input {
  display: none;
}

.image-upload-btn,
.image-remove-btn {
  padding: 10px 20px;
  border: 2px solid #000;
  font-family: var(--mp-font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-weight: 500;
}

.image-upload-btn {
  background: var(--mp-grad-pink);
  color: #000;
}

.image-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow);
}

.image-remove-btn {
  background: var(--mp-surface);
  color: var(--mp-rose);
  border-color: var(--mp-rose);
}

.image-remove-btn:hover {
  background: var(--mp-surface-2);
  transform: translateY(-2px);
}

/* Books Search Section */
.books-search-section {
  max-width: 600px;
  margin: 0 auto;
}

.search-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--mp-surface);
  border: 2px solid #000;
  color: var(--mp-white);
  font-family: var(--mp-font-body);
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--mp-cerise);
}

.search-btn {
  padding: 12px 20px;
  background: var(--mp-grad-blue);
  border: 2px solid #000;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--mp-font-body);
  font-weight: 500;
  text-transform: uppercase;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow);
}

/* Removed duplicate .search-results styles - handled in books-search.scss */
.book-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #000;
  transition: background 0.3s ease;
}

.book-result:hover {
  background: var(--mp-surface-2);
}

.book-info {
  flex: 1;
}

.book-title {
  font-family: var(--mp-font-body);
  font-size: 1.1rem;
  color: var(--mp-white);
  margin: 0 0 5px 0;
  font-weight: 500;
}

.book-author {
  font-family: var(--mp-font-body);
  font-size: 0.9rem;
  color: var(--mp-white);
  margin: 0 0 5px 0;
}

.book-description {
  font-family: var(--mp-font-body);
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

.add-book-btn {
  padding: 8px 15px;
  background: var(--mp-green);
  border: 2px solid #000;
  color: #000;
  font-family: var(--mp-font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 500;
}

.add-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow);
}

.selected-books {
  margin-top: 20px;
}

.selected-books h4 {
  font-family: var(--mp-font-body);
  font-size: 1.2rem;
  color: var(--mp-white);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.selected-books-list {
  max-height: 200px;
  overflow-y: auto;
}

.selected-book {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--mp-surface);
  border: 2px solid #000;
  margin-bottom: 10px;
}

.remove-book-btn {
  padding: 5px 10px;
  background: var(--mp-surface);
  border: 2px solid var(--mp-rose);
  color: var(--mp-rose);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--mp-font-body);
  font-weight: 500;
}

.remove-book-btn:hover {
  background: var(--mp-surface-2);
}

.no-books,
.no-results,
.loading,
.error {
  text-align: center;
  padding: 20px;
  font-family: var(--mp-font-body);
  color: var(--mp-white);
}

.error {
  color: var(--mp-rose);
}

/* Confirmation Summary */
.confirmation-summary {
  background: var(--mp-surface);
  border: 2px solid #000;
  padding: 20px;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--mp-font-body);
}

.summary-item strong {
  color: var(--mp-white);
}

.summary-item span {
  color: var(--mp-white);
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
}

.nav-btn {
  padding: 12px 24px;
  border: 2px solid #000;
  font-family: var(--mp-font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-btn--primary {
  background: var(--mp-grad-pink);
  color: #000;
}

.nav-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow);
}

.nav-btn--secondary {
  background: var(--mp-surface);
  color: var(--mp-white);
  border-color: var(--mp-white);
}

.nav-btn--secondary:hover {
  background: var(--mp-surface-2);
  transform: translateY(-2px);
}

.nav-btn--success {
  background: var(--mp-green);
  color: #000;
}

.nav-btn--success:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .registration-card {
    padding: 20px;
  }
  .form-navigation {
    flex-direction: column;
  }
  .nav-btn {
    width: 100%;
    justify-content: center;
  }
  .search-container {
    flex-direction: column;
  }
  .image-upload-controls {
    flex-direction: column;
    align-items: center;
  }
  .book-result {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .add-book-btn {
    align-self: flex-end;
  }
}
/* Admin buttons container styles */
.admin-buttons-container {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.admin-buttons-container .green-button {
  margin-bottom: 2rem;
}
.admin-buttons-container .green-button:last-child {
  margin-bottom: 0;
}

/* =========================================
   ADMIN PANEL STYLES
   ========================================= */
/* Admin Users Page */
/* Admin Users Page Styles */
/* Solo para la página de gestión de usuarios del admin panel */
/* Admin page header */
.admin-page-header {
  text-align: center;
  margin: 4rem 0 3rem 0;
  padding: 0 1rem;
}

.admin-page-title {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 20px rgba(255, 128, 199, 0.5);
}

.admin-page-title i {
  color: #ff80c7;
  margin-right: 0.5rem;
}

.admin-page-subtitle {
  color: #ccc;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin: 0;
  opacity: 0.8;
}

.admin-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-card-header h2 {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin: 0;
}

.admin-card-body {
  color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-page-header {
    margin: 2rem 0 1.5rem 0;
  }
  .admin-card {
    padding: 1rem;
  }
  .admin-card-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .admin-card-header h2 {
    margin-bottom: 0.5rem;
  }
}
/* DataTables styling */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tabla Simple */
.admin-table {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  min-width: 600px; /* Minimum width for table */
}

.admin-table thead th {
  background: rgba(255, 128, 199, 0.2);
  color: #fff;
  font-weight: 600;
  padding: clamp(8px, 2vw, 12px) clamp(4px, 1vw, 8px);
  border: none;
  text-align: center;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  white-space: nowrap;
}

.admin-table tbody td {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: clamp(6px, 1.5vw, 10px) clamp(4px, 1vw, 8px);
  border: none;
  text-align: center;
  vertical-align: middle;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
}

.admin-table tbody tr:hover {
  background: rgba(255, 128, 199, 0.1);
}

/* Badges para roles y estados */
.role-badge, .status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-admin {
  background: rgba(255, 99, 99, 0.2);
  color: #ff6363;
}

.role-leader {
  background: rgba(128, 170, 255, 0.2);
  color: #80aaff;
}

.role-user {
  background: rgba(255, 223, 120, 0.2);
  color: #ffdf78;
}

.status-activo {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.status-inactivo {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

/* Mobile table adjustments */
@media (max-width: 768px) {
  .table-responsive {
    margin: 0 -1rem;
    padding: 0 1rem;
  }
  .admin-table {
    min-width: 500px;
  }
  .admin-table thead th,
  .admin-table tbody td {
    padding: 6px 4px;
    font-size: 0.75rem;
  }
  /* Hide less important columns on mobile */
  .admin-table th:nth-child(6),
  .admin-table td:nth-child(6),
  .admin-table th:nth-child(7),
  .admin-table td:nth-child(7) {
    display: none;
  }
}
/* DataTables controls styling */
.dataTables_wrapper {
  color: #fff;
}

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
  color: #fff !important;
}

.dataTables_length select,
.dataTables_filter input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
  outline: none;
  border-color: #ff80c7;
  box-shadow: 0 0 8px rgba(255, 128, 199, 0.3);
}

.dataTables_paginate .paginate_button {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  border-radius: 4px !important;
  margin: 0 2px !important;
  padding: 4px 8px !important;
  font-size: clamp(0.75rem, 1.8vw, 0.85rem) !important;
}

.dataTables_paginate .paginate_button:hover {
  background: rgba(255, 128, 199, 0.2) !important;
  border-color: #ff80c7 !important;
}

.dataTables_paginate .paginate_button.current {
  background: rgba(255, 128, 199, 0.3) !important;
  border-color: #ff80c7 !important;
}

/* Mobile DataTables controls */
@media (max-width: 768px) {
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
  }
  .dataTables_wrapper .dataTables_length select,
  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }
  .dataTables_wrapper .dataTables_info {
    text-align: center;
    margin: 1rem 0;
  }
  .dataTables_wrapper .dataTables_paginate {
    text-align: center;
    margin-top: 1rem;
  }
  .dataTables_paginate .paginate_button {
    padding: 3px 6px !important;
    font-size: 0.75rem !important;
    margin: 0 1px !important;
  }
}
/* Action buttons */
.action-btn {
  padding: clamp(3px, 1vw, 4px) clamp(6px, 1.5vw, 8px);
  margin: 0 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: clamp(10px, 2vw, 12px);
  transition: all 0.3s ease;
  min-width: 28px;
  text-align: center;
}

.action-btn.edit {
  background: rgba(128, 170, 255, 0.2);
  color: #80aaff;
}

.action-btn.edit:hover {
  background: rgba(128, 170, 255, 0.3);
}

.action-btn.delete {
  background: rgba(255, 99, 99, 0.2);
  color: #ff6363;
}

.action-btn.delete:hover {
  background: rgba(255, 99, 99, 0.3);
}

.action-btn.view {
  background: rgba(255, 223, 120, 0.2);
  color: #ffdf78;
}

.action-btn.view:hover {
  background: rgba(255, 223, 120, 0.3);
}

/* Mobile action buttons */
@media (max-width: 768px) {
  .action-btn {
    padding: 2px 4px;
    margin: 0 0.5px;
    font-size: 10px;
    min-width: 24px;
  }
}
/* Admin Modal Styles */
.admin-modal-content {
  text-align: left;
  color: #333;
}

.admin-modal-content .form-group {
  margin-bottom: 1rem;
}

.admin-modal-content label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.admin-modal-content input,
.admin-modal-content select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.admin-modal-content input:focus,
.admin-modal-content select:focus {
  outline: none;
  border-color: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.user-details {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.user-image {
  flex-shrink: 0;
}

.user-info {
  flex: 1;
}

.user-info p {
  margin: 0.5rem 0;
  font-size: 14px;
}

.user-info strong {
  color: #333;
  font-weight: 600;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: bold;
}

/* Admin New User Button */
.admin-new-user-btn {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #000;
  border: none;
  border-radius: 0;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
}

.admin-new-user-btn:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

.admin-new-user-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(74, 222, 128, 0.3);
}

.admin-new-user-btn i {
  font-size: 1.1rem;
  color: #000;
}

/* Mobile admin button */
@media (max-width: 768px) {
  .admin-new-user-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 140px;
    width: 100%;
    max-width: 200px;
  }
}
.content-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-activo {
  background-color: #10b981;
  color: white;
}

.status-general {
  background-color: #6b7280;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  line-height: 1;
}

.stat-content p {
  color: #a1a1aa;
  margin: 0;
  font-size: 0.875rem;
}

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .charts-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.chart-card .admin-card-body {
  height: 400px;
  position: relative;
}

.role-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.role-admin {
  background-color: #ef4444;
  color: white;
}

.role-leader {
  background-color: #f59e0b;
  color: white;
}

.role-user {
  background-color: #4ade80;
  color: white;
}

.role-no_role {
  background-color: #6b7280;
  color: white;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .stat-card {
    padding: 1rem;
  }
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .stat-content h3 {
    font-size: 1.5rem;
  }
}
