@charset "UTF-8";
:root {
  --pt-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pt-font-arabic: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --pt-text-body: 0.875rem;
  --pt-leading-body: 1.55;
  --pt-leading-heading: 1.25;
  --pt-primary: #4f46e5;
  --pt-primary-dark: #3730a3;
  --pt-accent: #14b8a6;
  --pt-heading: #17153b;
  --pt-text: #676582;
  --pt-surface: #ffffff;
  --pt-surface-soft: #f6f7ff;
  --pt-border: #e8e9f5;
  --pt-shadow: 0 20px 50px rgba(41, 37, 100, 0.1);
}
/* RTL languages (see configs/rtl-css.php: this file is mirrored automatically into the -rtl.css copy) */
[dir="rtl"] { --pt-font-sans: var(--pt-font-arabic); }
[dir="rtl"] body,
[dir="rtl"] :is(h1, h2, h3, h4, h5, h6) { font-family: var(--pt-font-arabic); }
[dir="rtl"] .pt-quiz-wrapper :is(.fa-arrow-left, .fa-arrow-right, .fa-sign-in-alt) { transform: scaleX(-1); }
[dir="rtl"] .pt-question-card.is-collapsed .pt-question-collapse > i:last-child { transform: rotate(90deg); }

/* Slim brand scrollbars for inner scroll areas (lists, modals, chip rows), without arrow buttons.
   Chrome draws arrows when scrollbar-width/color are set, so those are kept for Firefox only. */
body *::-webkit-scrollbar { width: 6px; height: 6px; }
body *::-webkit-scrollbar-track { background: transparent; }
body *::-webkit-scrollbar-thumb { border-radius: 999px; background: #cbbcf0; }
body *::-webkit-scrollbar-thumb:hover { background: #9b7ce0; }
body *::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) {
  body * { scrollbar-width: thin; scrollbar-color: #cbbcf0 transparent; }
}* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background: var(--pt-surface);
  color: var(--pt-text);
  font-family: var(--pt-font-sans);
  font-size: var(--pt-text-body);
  line-height: var(--pt-leading-body);
  resize: 0;
  /* Bootstrap sets text-align: left on body; start follows the page direction */
  text-align: start;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pt-font-sans);
  line-height: var(--pt-leading-heading);
}

input,
textarea,
button,
select {
  outline: none !important;
  font-family: inherit;
  font-size: var(--pt-text-body);
}

a,
a:hover,
a:focus {
  text-decoration: none;
  color: #6220df;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--pt-heading);
}

.MJXc-display,
mjx-container[jax="CHTML"][display="true"] {
	display: inline-block !important;
}

.pt-wrapper {
  overflow: hidden;
}

.form-group {
  text-align: left;
}

.padding {
  padding: 24px;
}

.pt-dtable {
  display: table;
}

.pt-vmiddle {
  display: table-cell;
  vertical-align: middle;
}

.w-60 {
  width: 60%;
  margin: 0 auto;
}

.relative {
  position: relative;
}

.world {
  height: 400px;
  margin: 0 auto;
}

.pt-worldss {
  min-height: 300px;
}

.pt-echart {
  width: 100%;
  height: 260px;
}

.pt-box {
  background: #FFF;
  padding: 12px;
  margin-bottom: 32px;
  box-shadow: 1px 6px 14px 0px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  margin-top: 24px;
}
.pt-box h3 {
  font-size: 18px;
  margin: 5px 0 3px 0;
}
.pt-box h3 a {
  font-size: 14px;
}

.pt-breadcrumb:after {
  content: "";
  clear: both;
  display: block;
}
.pt-breadcrumb .pt-title {
  font-size: 22px;
  float: left;
}
.pt-breadcrumb .pt-title i.ic {
  background: #FFF;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 18px;
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #F7F7F7, 0 0 0 4px #6220df;
  margin-right: 12px;
}
.pt-breadcrumb p {
  font-size: 12px;
  color: #999;
  margin-left: 47px;
}
.pt-breadcrumb .pt-options {
  float: right;
}

.pt-pagination {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  overflow: hidden;
  display: table;
  margin-top: 32px;
}
.pt-pagination li {
  float: left;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  background: #FFF;
  box-shadow: 0 0 3px #EEE;
  margin: 3px;
  text-align: center;
  color: #6220df;
  border-radius: 50%;
}
.pt-pagination li a {
  display: inline-block;
  width: 22px;
  height: 22px;
  color: #6220df;
}
.pt-pagination li.pt-active {
  background: #6220df;
  color: #FFF;
}
.pt-pagination li.pt-disabled {
  background: #F7F7F7 !important;
  box-shadow: 0 0 3px #EEE !important;
}

input[type=text],
input[type=password],
input[type=number],
input[type=email],
input[type=phone],
textarea,
select {
  border: 1px solid #F7F7F7;
  border-bottom: 3px solid #e0ebff;
  background: #FFF;
  width: 100%;
  border-radius: 10px;
  height: 44px;
  padding: 12px;
  font-size: 14px;
}

textarea {
  min-height: 100px;
}

label {
  font-weight: 700;
  margin: 0px 6px 2px;
  display: block;
  color: #666;
  text-align: left;
}

.pt-phone,
.pt-country {
  position: relative;
}
.pt-phone .pt-flags,
.pt-country .pt-flags {
  position: absolute;
  top: 5px;
  left: 6px;
  z-index: 2;
}
.pt-phone .inp,
.pt-country .inp {
  padding-left: 84px;
}

.pt-form-icon {
  position: relative;
  position: relative;
}
.pt-form-icon span {
  position: absolute;
  top: 8px;
  left: 12px;
}
.pt-form-icon input {
  padding-left: 35px;
}

.pt-notice {
  font-size: 12px;
  color: #a1b4d7;
  font-weight: 500;
  line-height: 22px;
  margin: 0;
  padding: 4px;
}
.pt-notice i {
  margin-right: 3px;
}

.form-control:focus {
  border-color: #6220df;
  box-shadow: 0 0 6px rgba(98, 32, 223, 0.25);
}

.pt-rating {
  margin-left: 6px;
}
.pt-rating input[type=radio] {
  -webkit-appearance: none;
  margin: 0;
  box-shadow: none;
}
.pt-rating input[type=radio]:after {
  content: "";
  font-size: 22px;
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
}
.pt-rating input[type=radio]:invalid::after {
  color: #ddd;
}
.pt-rating input[type=radio]:valid {
  color: #6220df;
}
.pt-rating:hover input[type=radio]:invalid:after {
  color: #888;
  font-weight: 400;
}
.pt-rating:hover input[type=radio]:valid:after {
  color: #6220df;
}
.pt-rating input[type=radio]:checked ~ input[type=radio]:not(:checked)::after {
  content: "";
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  color: #ccc;
}

.pt-rating:hover input[type=radio]:hover ~ input[type=radio]:invalid::after,
.pt-rating input[type=radio]:focus ~ input[type=radio]:invalid::after {
  color: #ddd;
}

.alert-danger {
  color: #da747d;
  background-color: #fff5f6;
  border-color: #fff2f3;
}

.alert-success {
  color: #57b56d;
  background-color: #f0fdf3;
  border-color: #e4f9e9;
}

.alert-warning {
  color: #d4b458;
  background-color: #fffbef;
  border-color: #fff5d5;
}

.alert-info {
  color: #2a98ab;
  background-color: #f1fdff;
  border-color: #d7f6fb;
}

.modal-dialog .close {
  background: #fff1e6;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
  margin: 0;
}

.pt-page-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 34px 0 32px;
  color: #17163f;
  text-align: center;
  background:
    radial-gradient(circle at 8% 20%, rgba(129, 78, 230, 0.09) 0 90px, transparent 92px),
    radial-gradient(circle at 92% 35%, rgba(129, 78, 230, 0.08) 0 120px, transparent 122px),
    linear-gradient(120deg, #f8f6ff, #f0edff 54%, #f8f6ff);
}
.pt-page-hero:before,
.pt-page-hero:after {
  content: "";
  position: absolute;
  width: 170px;
  height: 42px;
  border-radius: 50%;
  background: rgba(124, 72, 224, 0.05);
  transform: rotate(-38deg);
}
.pt-page-hero:before { top: 8px; left: -40px; }
.pt-page-hero:after { right: -32px; bottom: 3px; }
.pt-page-hero-copy {
  position: relative;
  z-index: 1;
}
.pt-page-hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.pt-page-hero-title > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 13px;
  color: #7040df;
  background: #e9ddff;
  box-shadow: 0 8px 20px rgba(91, 49, 184, 0.12);
  font-size: 22px;
}
.pt-page-hero-copy h1 {
  margin: 0;
  color: #111238;
  font-size: 28px;
}
.pt-page-hero-copy p {
  margin: 7px auto 0;
  color: #555671;
  font-size: 15px;
}
.pt-page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.pt-page-hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d9cbf7;
  border-radius: 11px;
  color: #4b1fb0;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(91, 49, 184, .08);
}
.pt-page-hero-actions a:hover { color: #4b1fb0; background: #f6f1ff; }
.pt-page-hero-actions a.is-primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, #6220df, #8334eb); }
.pt-page-hero-actions a.is-primary:hover { color: #fff; filter: brightness(1.05); }
.pt-page-hero-compact {
  margin-bottom: 34px;
  padding: 28px 0 25px;
}
.pt-page-hero-compact .pt-page-hero-title > span {
  width: 44px;
  height: 44px;
  font-size: 19px;
}
.pt-page-hero-compact .pt-page-hero-copy h1 {
  font-size: 24px;
}
.pt-quiz-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
}
.pt-quiz-toolbar nav {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pt-quiz-toolbar nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 20px;
  color: #24234c;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.pt-quiz-toolbar nav a:hover {
  color: #6e34d9;
  background: #f4efff;
  transform: translateY(-1px);
}
.pt-quiz-toolbar nav a.is-active {
  color: #FFF;
  background: linear-gradient(110deg, #6130d7, #8038e3);
  box-shadow: 0 7px 17px rgba(102, 46, 211, 0.22);
}
.pt-quiz-view-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #e1dbef;
  border-radius: 12px;
  background: #faf9fe;
  box-shadow: 0 5px 13px rgba(58, 38, 105, 0.07);
}
.pt-quiz-view-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #4b357f;
  font-size: 13px;
}
.pt-quiz-view-switch a.is-active {
  color: #FFF;
  background: linear-gradient(135deg, #7439df, #6030cd);
  box-shadow: 0 5px 12px rgba(91, 41, 190, 0.2);
}
/* Public quizzes listing: search hero, category chips, toolbar, and quiz cards */
.pt-quizzes-search {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin: 20px auto 0;
  padding: 6px;
  border: 1px solid #e4dbf7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(62, 31, 119, 0.06);
}
.pt-quizzes-search:focus-within { border-color: #b69af0; box-shadow: 0 0 0 3px rgba(98, 32, 223, 0.1); }
.pt-quizzes-search > i { margin-inline-start: 10px; color: #8a7bb5; }
.pt-quizzes-search input[type=search] { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: none; font-size: 14px; }
.pt-quizzes-search .pt-btn { margin: 0; height: 42px; padding: 0 20px; border-radius: 11px; background: #5b21b6; line-height: 42px; box-shadow: none; }
.pt-quizzes-search .pt-btn:hover { background: #4c1a9a; }
.pt-quizzes-categories { border-bottom: 1px solid #ece6f7; background: #fff; }
.pt-quizzes-categories nav { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.pt-quizzes-categories nav::-webkit-scrollbar { display: none; }
/* Arrows that scroll the category chips; customs.js hides each one at its end of the list */
.pt-categories-scroller { position: relative; }
.pt-categories-arrow {
  position: absolute;
  inset-block-start: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e3d9f6;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px #2a1a5a24;
  color: #5b21b6;
  font-size: 12px;
  transform: translateY(-50%);
}
.pt-categories-arrow[hidden] { display: none; }
.pt-categories-arrow:hover { background: #5b21b6; border-color: #5b21b6; color: #fff; }
.pt-categories-arrow.is-start { inset-inline-start: 4px; }
.pt-categories-arrow.is-end { inset-inline-end: 4px; }
[dir="rtl"] .pt-categories-arrow i { transform: scaleX(-1); }
/* Leave room under the arrows so they never cover a chip */
.pt-categories-scroller:has(.pt-categories-arrow:not([hidden])) nav { padding-inline: 44px; }
.pt-quizzes-categories a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid #e8e1f6;
  border-radius: 999px;
  color: #3b3760;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pt-quizzes-categories a:hover { border-color: #b9a2f2; color: #5b21b6; text-decoration: none; }
.pt-quizzes-categories a.is-active { border-color: transparent; background: #5b21b6; color: #fff; }
.pt-quizzes-listing { padding-block: 26px 50px; }
.pt-quizzes-count { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: #74758b; font-size: 13px; }
.pt-quizzes-count strong { color: #17183e; font-size: 16px; }
.pt-quizzes-count a { color: #c0263b; font-weight: 600; }
.pt-quiz-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pt-quiz-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.pt-quiz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #ece6f7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px #2d1b5c0f;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pt-quiz-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px #2d1b5c1f; }
/* The card itself does not clip (the options menu may overflow it), so the cover rounds its own corners */
.pt-quiz-card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 17px 17px 0 0; background: #efe8fb; }
.pt-quiz-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.pt-quiz-card:hover .pt-quiz-card-cover img { transform: scale(1.04); }
.pt-quiz-card-cover.is-fallback {
  background-image: url("../img/quiz-card-fallbacks-v1.webp");
  background-size: 300% 200%;
  background-position: var(--fallback-position, 0 0);
}
.pt-quiz-card-badges { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 64px); }
/* A long category name stays on one line, cut with "…" (full name in the tooltip) */
.pt-quiz-card-category { max-width: 100%; min-width: 0; }
.pt-quiz-card-category > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-quiz-card-category,
.pt-quiz-card-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffffeb;
  color: var(--category-color);
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 2px 10px #17123e26;
}
.pt-quiz-card-flag { color: #3b3760; }
.pt-quiz-card-flag.is-draft { background: #fff4dc; color: #a46300; }
/* Owner options: one "⋯" button opening a small menu */
.pt-quiz-card-actions { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 3; }
.pt-quiz-card-menu-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #17123eb3;
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.pt-quiz-card-menu-toggle:is(:hover, [aria-expanded="true"]) { background: #5b21b6; }
.pt-quiz-card-menu {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 180px;
  padding: 6px;
  border: 1px solid #ece6f7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px #2a1a5a2e;
  animation: pt-menu-in .14s ease-out;
}
.pt-quiz-card-menu[hidden] { display: none; }
.pt-quiz-card-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #2d2950;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.pt-quiz-card-menu a i { width: 16px; color: #7c3aed; text-align: center; }
.pt-quiz-card-menu a:is(:hover, :focus-visible) { background: #f4effd; color: #5b21b6; outline: none; }
.pt-quiz-card-menu a.is-delete { margin-top: 4px; border-top: 1px solid #f1ecf9; border-radius: 0 0 8px 8px; color: #c0263b; }
.pt-quiz-card-menu a.is-delete i { color: #c0263b; }
.pt-quiz-card-menu a.is-delete:hover { background: #fff1f3; color: #c0263b; }
.pt-quiz-card.has-open-menu { z-index: 5; }
@keyframes pt-menu-in { from { opacity: 0; transform: translateY(-4px); } }
.pt-quiz-card-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.pt-quiz-card-body h3 { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.pt-quiz-card-body h3 a { color: #17183e; }
.pt-quiz-card-body h3 a:hover { color: #5b21b6; text-decoration: none; }
.pt-quiz-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; color: #6b6883; font-size: 12.5px; }
.pt-quiz-card-meta i { margin-inline-end: 4px; color: #7c3aed; }
.pt-quiz-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f1ecf9; }
.pt-quiz-card-author { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #3b3760; font-size: 12.5px; font-weight: 600; }
.pt-quiz-card-author > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-quiz-card-avatar { position: relative; display: grid; flex: none; place-items: center; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; background: #efe8fb; color: #9a8bc7; font-size: 11px; }
.pt-quiz-card-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pt-quiz-card-start { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; background: #5b21b6; color: #fff; font-size: 12.5px; font-weight: 700; }
.pt-quiz-card-start:hover { background: #4c1a9a; color: #fff; text-decoration: none; }
[dir="rtl"] .pt-quiz-card-start i { transform: scaleX(-1); }
.pt-quiz-view-list { grid-template-columns: minmax(0, 1fr); }
.pt-quiz-view-list .pt-quiz-card { flex-direction: row; }
.pt-quiz-view-list .pt-quiz-card-cover { flex: 0 0 260px; aspect-ratio: auto; min-height: 150px; border-radius: 17px 0 0 17px; }
/* In the list view the options button sits over the body: keep the title clear of it
   (physical side on purpose: the title is dir="auto", the button follows the page direction) */
.pt-quiz-view-list .pt-quiz-card:has(.pt-quiz-card-actions) .pt-quiz-card-body h3 { padding-right: 44px; }
.pt-quizzes-empty { padding: 50px 20px; border: 1px dashed #ddd3f2; border-radius: 18px; text-align: center; }
.pt-quizzes-empty > span { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 16px; background: #efe8fb; color: #6d28d9; font-size: 22px; }
.pt-quizzes-empty h2 { margin: 0 0 6px; font-size: 19px; }
.pt-quizzes-empty p { color: #74758b; }
.pt-quizzes-empty .pt-btn { height: 42px; margin: 6px 0 0; padding: 0 22px; line-height: 42px; }
.pt-load-more-wrap { margin-top: 30px; text-align: center; }
@media (max-width: 700px) {
  .pt-quiz-view-list .pt-quiz-card { flex-direction: column; }
  .pt-quiz-view-list .pt-quiz-card-cover { flex: none; aspect-ratio: 16 / 9; min-height: 0; border-radius: 17px 17px 0 0; }
  .pt-quiz-view-list .pt-quiz-card:has(.pt-quiz-card-actions) .pt-quiz-card-body h3 { padding-right: 0; }
  .pt-quiz-toolbar-actions { width: 100%; justify-content: space-between; }
  /* Cards are always one column on phones, so the grid/list switch is not needed */
  .pt-quiz-view-switch { display: none; }
}

@media only screen and (max-width: 700px) {
  .pt-page-hero {
    padding: 25px 0 23px;
  }
  .pt-page-hero-title > span {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .pt-page-hero-copy h1 {
    margin: 0;
    font-size: 22px;
  }
  .pt-page-hero-copy p {
    max-width: 88%;
    font-size: 11px;
    line-height: 1.55;
  }
  .pt-quiz-toolbar nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .pt-quiz-toolbar nav a {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }
}

.pt-btn {
  display: inline-block;
  font-size: 16px;
  width: auto;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #6220df, #7c3aed);
  color: #FFF;
  margin-left: 6px;
  box-shadow: 0 4px 12px rgba(98, 32, 223, 0.18);
  padding: 0px 16px;
  font-weight: 700;
  position: relative;
  border: 0;
  transition: all 0.3s;
}
.pt-btn i {
  margin-right: 6px;
}
.pt-btn:hover, .pt-btn:active, .pt-btn:focus {
  color: #FFF;
}
.pt-btn[disabled=disabled] {
  background: #7f8fa6 !important;
  box-shadow: 0 3px 10px rgba(127, 143, 166, 0.5) !important;
  cursor: no-drop;
  opacity: 0.6;
  color: #cdd8e9;
}
.pt-btn:hover {
  filter: brightness(1.06);
}

.pt-disabled {
  background: #7f8fa6 !important;
  box-shadow: 0 3px 10px rgba(127, 143, 166, 0.5) !important;
  cursor: no-drop;
  opacity: 0.6;
  color: #cdd8e9;
  border-color: #7f8fa6 !important;
}
.pt-disabled:hover, .pt-disabled:active, .pt-disabled:focus {
  color: #cdd8e9;
}

.afterDisabled {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #FFF;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: no-drop;
}

.tips {
  padding: 0;
  width: 32px;
}
.tips i {
  margin: 0;
}
.tips b {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: -30px;
  right: -8px;
  background: rgba(0, 0, 0, 0.48);
  font-size: 10px;
  height: 22px;
  line-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}
.tips b:before {
  content: "";
  position: absolute;
  top: -3px;
  right: 24px;
  border-bottom: 3px solid rgba(0, 0, 0, 0.48);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
}
.tips:hover b {
  visibility: visible;
  opacity: 1;
  bottom: -26px;
}

.input-group.file-caption-main .btn {
  font-size: 10px;
  padding: 0 10px;
  height: 34px;
  line-height: 34px;
}

.file-input .file-caption {
  height: 34px;
  line-height: 34px;
  font-size: 12px;
}

.file-input .file-caption i {
  margin-right: 4px;
}

.file-preview, .file-drop-zone {
  min-height: 182px;
}

.file-input .input-group-btn {
  margin-left: 4px;
}

.file-thumbnail-footer .file-footer-caption {
  line-height: 16px;
}
.file-thumbnail-footer .file-thumb-progress {
  display: none;
}
.file-thumbnail-footer .file-footer-buttons .btn {
  padding: 0;
}
.file-thumbnail-footer .file-actions {
  margin: 0;
}

.file-preview-frame {
  display: block;
  height: 162px;
  width: 134px !important;
}

.file-preview-image {
  max-width: 100%;
}

.file-footer-caption {
  width: 100%;
}

.progress {
  margin: 12px 0;
}

.file-live-thumbs:after {
  content: "";
  display: block;
  clear: both;
}

.pt-image-append {
  margin-top: 12px;
}
.pt-image-append:after {
  content: "";
  clear: both;
  display: block;
}
.pt-image-append div {
  width: 139px;
  height: 100px;
  overflow: hidden;
  position: relative;
  margin: 10px 8px 0 0;
  border-radius: 5px;
  box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.11);
  float: left;
}
.pt-image-append div img {
  width: 100%;
  min-height: 100%;
}
.pt-image-append div span {
  position: absolute;
  font-size: 10px;
  padding: 0;
  text-align: center;
  top: 6px;
  left: 6px;
  cursor: pointer;
  color: #FFF;
  width: 24px !important;
  height: 24px !important;
  line-height: 24px;
}
.pt-image-append div span i {
  margin: 0;
}
.pt-image-append div span:nth-of-type(2) {
  left: 34px;
}
.pt-image-append div span:nth-of-type(3) {
  left: 62px;
}

.file-upload {
  display: block;
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
}

.file-upload .file-select {
  display: block;
  border: 2px solid #6220df;
  color: #6220df;
  cursor: pointer;
  height: 40px;
  line-height: 40px;
  text-align: left;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}

.file-upload .file-select .file-select-button {
  background: #6220df;
  padding: 0 10px;
  display: inline-block;
  height: 40px;
  line-height: 40px;
  color: #FFF;
}

.file-upload .file-select .file-select-name {
  line-height: 40px;
  display: inline-block;
  padding: 0 10px;
}

.file-upload .file-select:hover {
  border-color: #34495e;
  transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
}

.file-upload .file-select:hover .file-select-button {
  background: #34495e;
  color: #FFFFFF;
  transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
}

.file-upload.active .file-select {
  border-color: #3fa46a;
  transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
}

.file-upload.active .file-select .file-select-button {
  background: #3fa46a;
  color: #FFFFFF;
  transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
}

.file-upload .file-select input[type=file] {
  z-index: 100;
  cursor: pointer;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  filter: alpha(opacity=0);
}

.file-upload .file-select.file-select-disabled {
  opacity: 0.65;
}

.file-upload .file-select.file-select-disabled:hover {
  cursor: default;
  display: block;
  border: 2px solid #dce4ec;
  color: #34495e;
  cursor: pointer;
  height: 40px;
  line-height: 40px;
  margin-top: 5px;
  text-align: left;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
}

.file-upload .file-select.file-select-disabled:hover .file-select-button {
  background: #dce4ec;
  color: #666666;
  padding: 0 10px;
  display: inline-block;
  height: 40px;
  line-height: 40px;
}

.file-upload .file-select.file-select-disabled:hover .file-select-name {
  line-height: 40px;
  display: inline-block;
  padding: 0 10px;
}

.sresults {
  position: relative;
}
.sresults .pt-drop {
  position: absolute;
  width: 100%;
  background: #FFF;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  margin: 0;
  padding: 6px;
  list-style: none;
  right: 0;
  top: 5px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s;
}
.sresults .pt-drop li {
  border-bottom: 1px solid #F7F7F7;
  padding: 6px 12px;
  font-size: 13px;
}
.sresults .pt-drop li a {
  display: block;
  color: #333;
}
.sresults .pt-drop li:last-of-type {
  border-bottom: 0;
}
.sresults .pt-drop .pt-thumb {
  margin-left: 6px;
}
.sresults .pt-drop .pt-cnt {
  font-size: 10px;
  line-height: 15px;
  padding: 7px;
  margin-left: 42px;
  color: #777;
}
.sresults .pt-drop .pt-cnt b {
  font-weight: 700;
  color: #fd5c5c;
}
.sresults .pt-drop .pt-cnt a {
  color: #20b395;
}
.sresults .pt-drop.open {
  top: 0px;
  visibility: visible;
  opacity: 1;
}





.pt-quiz-wrapper .pt-quizresults {
  padding: 0 12px;
}
.pt-quiz-wrapper .pt-quizresults h4 {
  margin-top: -32px;
  font-size: 18px;
}
.pt-quiz-wrapper .pt-quizresults .pt-box.bg-gy {
  color: #FFF;
  margin-bottom: 0;
}
.pt-quiz-wrapper .pt-quizresults .pt-box.bg-gy a {
  color: #EEE;
}
.pt-quiz-wrapper .pt-copy {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin: auto;
  width: 300px;
  margin-top: 24px;
}
.pt-quiz-wrapper .pt-copy h3 {
  font-size: 18px;
}
.pt-quiz-wrapper .pt-copy a {
  color: #333;
}
.pt-quiz-wrapper .pt-left {
  position: fixed;
  height: 100%;
  width: 40%;
  left: 0;
  box-shadow: -3px 0px 20px 0px #0b1f3c;
}
.pt-quiz-wrapper .pt-left .pt-image-left {
  position: absolute;
  height: 100%;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(1px);
}
.pt-quiz-wrapper .pt-left .pt-image-left:after {
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.2) 100%);
  position: absolute;
  height: 100%;
  width: 100%;
}
.pt-quiz-wrapper .pt-left .pt-left-content {
  position: relative;
  padding: 24px 60px;
}
.pt-quiz-wrapper .pt-left .pt-left-content .pt-logo {
  height: 48px;
}
.pt-quiz-wrapper .pt-left .pt-left-content .pt-logo img {
  height: 100%;
}
.pt-quiz-wrapper .pt-left .pt-left-content .pt-logo .pt-social {
  float: right;
  padding: 8px;
  border-radius: 6px;
}
.pt-quiz-wrapper .pt-left .pt-left-content .pt-logo .pt-social b {
  color: #FFF;
}
.pt-quiz-wrapper .pt-left .pt-left-content .pt-logo .pt-social a {
  display: inline-block;
  background: #FFF;
  box-shadow: 0 10px 14px rgba(0, 0, 0, 0.1);
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-size: 18px;
  border-radius: 50%;
  color: #00469d;
}
.pt-quiz-wrapper .pt-left .pt-left-content .pt-content {
  padding: 120px 48px;
}
.pt-quiz-wrapper .pt-left .pt-left-content .pt-content .pt-links a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 12px;
  border-radius: 50px;
  color: #FFF;
  margin-right: 3px;
  font-size: 12px;
}
.pt-quiz-wrapper .pt-left .pt-left-content .pt-content h3 {
  color: #FFF;
  font-size: 38px;
  margin: 36px 0 12px 0;
}
.pt-quiz-wrapper .pt-left .pt-left-content .pt-content p {
  font-size: 16px;
  font-weight: 600;
  color: #aeb4c8;
}
.pt-quiz-wrapper .pt-right {
  position: absolute;
  width: 60%;
  left: 40%;
}
.pt-quiz-wrapper .pt-right .pt-questions {
  padding: 96px 144px;
}
.pt-quiz-wrapper .pt-right .pt-questions .pt-subtitle {
  font-size: 16px;
  color: #18e48f;
  text-transform: uppercase;
}
.pt-quiz-wrapper .pt-right .pt-questions .pt-title {
  font-size: 38px;
  margin-bottom: 48px;
}
/* Question image: shown whole with its own proportions (never stretched), centered on a soft panel */
.pt-quiz-wrapper .pt-right .pt-questions .pt-question-thumb {
  display: flex;
  justify-content: center;
  margin: -4px 0 22px;
  overflow: hidden;
  border: 1px solid #ece6f7;
  border-radius: 14px;
  background: #f6f3fc;
}
.pt-quiz-wrapper .pt-right .pt-questions .pt-question-thumb img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
}
.pt-image-grid {
  display: grid;
  gap: 16px;
  width: 100%;
}
.pt-image-grid-cols-1 {
  grid-template-columns: minmax(0, 1fr);
}
.pt-image-grid-cols-2 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pt-image-grid-cols-2 > .pt-image-answer-item {
  grid-column: span 2;
}
.pt-image-grid-cols-2.is-odd-last > .pt-image-answer-item:last-child {
  grid-column: 2 / span 2;
}
.pt-image-grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pt-image-answer-item {
  position: relative;
  min-width: 0;
  margin: 0;
}
.pt-quiz-wrapper .pt-right .pt-questions .pt-content.pt-question-images .form-group {
  width: 100%;
  margin: 0;
  float: none;
}
.pt-image-grid .choice.image + label {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 8px;
  border: 2px solid #e7dff7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 18, 63, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pt-image-grid .choice.image + label:hover {
  border-color: #c5b0f5;
  box-shadow: 0 8px 20px rgba(98, 32, 223, 0.12);
  transform: translateY(-2px);
}
.pt-image-grid .choice.image:focus-visible + label {
  outline: 3px solid #6220df;
  outline-offset: 2px;
}
.pt-image-grid .choice.image[type=checkbox]:checked + label,
.pt-image-grid .choice.image[type=radio]:checked + label {
  border-color: #6220df;
  background: #f8f4ff;
  color: #20163f;
  box-shadow: 0 0 0 2px #6220df, 0 10px 24px rgba(98, 32, 223, 0.2);
  transform: none;
}
.pt-image-grid .choice.image[type=checkbox]:checked + label b,
.pt-image-grid .choice.image[type=radio]:checked + label b {
  box-shadow: none;
}
.pt-image-grid .choice.image:disabled + label {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.pt-image-grid .choice.image + label:before {
  display: none;
}
.pt-image-answer-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f0fb;
  box-shadow: none;
}
.pt-image-answer-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.pt-image-grid .pt-math-image-caption {
  display: block;
  padding: 10px 6px 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #261d46;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pt-image-zoom {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(24, 17, 45, 0.72);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.18s ease, transform 0.18s ease;
}
.pt-image-zoom:hover,
.pt-image-zoom:focus-visible {
  background: #6220df;
  color: #fff;
  transform: scale(1.06);
}
.pt-result-image-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  border-radius: 14px;
  margin: 0;
}
@media (max-width: 900px) {
  .pt-image-grid-cols-3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pt-image-grid-cols-3 > .pt-image-answer-item {
    grid-column: span 2;
  }
  .pt-image-grid-cols-3 > .pt-image-answer-item:nth-child(odd):last-child {
    grid-column: 2 / span 2;
  }
}
@media (max-width: 576px) {
  .pt-image-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .pt-image-grid > .pt-image-answer-item,
  .pt-image-grid-cols-2.is-odd-last > .pt-image-answer-item:last-child,
  .pt-image-grid-cols-3 > .pt-image-answer-item:nth-child(odd):last-child {
    grid-column: auto;
  }
}
.pt-quiz-wrapper .pt-right .pt-questions .pt-content .input {
  width: 100%;
  min-height: 72px;
  background: #EEE;
  border: 0;
  border-radius: 5px;
  font-weight: 700;
  line-height: 22px;
  color: #999;
  font-size: 18px;
  padding: 0 24px;
}
.pt-quiz-wrapper .pt-right .pt-questions .pt-content .input::placeholder {
  color: #999;
}
.pt-quiz-wrapper .pt-right .pt-questions .pt-dtable {
  margin: 0 auto;
}
.pt-quiz-wrapper .pt-right #example-async .steps ul {
  position: fixed;
  top: 96px;
  left: 0;
  width: 40%;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pt-quiz-wrapper .pt-right #example-async .steps ul:after {
  content: "";
  clear: both;
  display: block;
}
.pt-quiz-wrapper .pt-right #example-async .steps ul li {
  float: left;
  width: 25%;
  display: block;
}
.pt-quiz-wrapper .pt-right #example-async .steps ul li a {
  font-size: 0;
}
.pt-quiz-wrapper .pt-right #example-async .steps ul li.current, .pt-quiz-wrapper .pt-right #example-async .steps ul li[aria-selected=false] {
  background: #18e48f;
  padding: 0;
  height: 3px;
}
.pt-quiz-wrapper .pt-right #example-async .content .title {
  display: none;
}
.pt-quiz-wrapper .pt-right #example-async .actions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pt-quiz-wrapper .pt-right #example-async .actions ul li {
  position: relative;
}
.pt-quiz-wrapper .pt-right #example-async .actions ul li:first-of-type {
  display: none;
}
.pt-quiz-wrapper .pt-right #example-async .actions ul li a[href="#next"],
.pt-quiz-wrapper .pt-right #example-async .actions ul li a[href="#finish"] {
  background: #18e48f;
  color: #FFF;
  height: 72px;
  line-height: 72px;
  font-size: 20px;
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  margin-top: 8px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(46, 204, 113, 0.5);
}
.pt-quiz-wrapper .pt-right .pt-results {
  position: absolute;
  top: 0;
  right: 0;
  width: 95%;
  height: 100vh;
  background: #FFF;
  text-align: center;
  display: none;
}
.pt-quiz-wrapper .pt-right .pt-results .bb1 {
  width: 340px;
  height: 100vh;
}
.pt-quiz-wrapper .pt-right .pt-results i {
  font-size: 42px;
  color: #6220df;
}
.pt-quiz-wrapper .pt-right .pt-results h1 {
  font-size: 102px;
}
.pt-quiz-wrapper .pt-right .pt-results h3 {
  font-size: 32px;
}
.pt-quiz-wrapper .pt-right .pt-results p {
  font-size: 16px;
}
.pt-quiz-wrapper .pt-right .pt-results .pt-links {
  margin-top: 24px;
}
.pt-quiz-wrapper .pt-right .pt-results .pt-links a {
  display: block;
  height: 52px;
  margin-top: 12px;
  line-height: 52px;
  transition: all 0.3s;
}
.pt-quiz-wrapper .pt-right .pt-results .pt-links a:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(0.98);
}
.pt-quiz-wrapper.quiz-top .pt-left {
  position: relative;
  height: initial;
  width: initial;
}
.pt-quiz-wrapper.quiz-top .pt-left .pt-left-content .pt-content {
  padding: 80px 48px;
}
.pt-quiz-wrapper.quiz-top .pt-right {
  position: initial;
  height: initial;
  width: initial;
}
.pt-quiz-wrapper.quiz-top .pt-right #example-async .steps ul {
  position: initial;
  background: rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-bottom: 50px;
}
.pt-quiz-wrapper.quiz-top .pt-right .pt-questions {
  padding: 96px 4px;
  width: 600px;
  margin: 0 auto;
}
.pt-quiz-wrapper.quiz-top .pt-right .pt-questions .count-down {
  margin-top: -10px;
}
.pt-quiz-wrapper.quiz-top .pt-right .pt-results {
  width: 100%;
}
/* No-background quiz: one centered column on a soft lavender page */
.pt-quiz-wrapper.quiz-none:not(.is-embed-mode) {
  min-height: 100vh;
}
.pt-quiz-wrapper.quiz-none:not(.is-embed-mode):not(.is-results-view) {
  background:
    radial-gradient(circle at 12% 4%, #efe4ff 0, transparent 34%),
    radial-gradient(circle at 92% 18%, #e6f0ff 0, transparent 30%),
    linear-gradient(180deg, #faf7ff 0, #fff 520px);
}
.pt-quiz-wrapper.quiz-none .pt-left {
  width: min(760px, 100% - 32px);
  margin: 0 auto;
  box-shadow: none;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-image-left {
  display: none;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content {
  padding: 24px 0 0;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: auto;
  padding: 10px 14px 10px 18px;
  border: 1px solid #efe8fb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(69, 38, 138, 0.07);
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-logo img {
  height: 40px;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-logo .pt-social {
  display: flex;
  align-items: center;
  gap: 8px;
  float: none;
  padding: 0;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-logo .pt-social b {
  color: #6b6883;
  font-size: 13px;
  margin-inline-end: 2px;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-logo .pt-social :is(a, .pt-share-modal-btn) {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ece4fa;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: #5a18c8;
  font-size: 15px;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-logo .pt-social :is(a, .pt-share-modal-btn):hover {
  background: #5a18c8;
  color: #fff;
  transform: translateY(-2px);
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-content {
  padding: clamp(32px, 6vw, 56px) 0 8px;
  text-align: center;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-content .pt-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-content .pt-links a {
  margin: 0;
  padding: 4px 12px;
  background: #f0e8fe;
  color: #5a18c8;
  font-weight: 700;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-content h3 {
  color: #17123e;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  margin: 18px auto 12px;
  max-width: 680px;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-content p {
  max-width: 640px;
  margin: 0 auto;
  color: #6b6883;
  font-weight: 500;
  line-height: 1.7;
}
.pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-content p:empty {
  display: none;
}
.pt-quiz-wrapper.quiz-none .pt-right .pt-questions {
  padding: 28px 0 64px;
  width: min(760px, 100% - 32px);
  margin: 0 auto;
}
.pt-quiz-wrapper.quiz-none .pt-right .pt-questions .count-down {
  margin-top: -10px;
}

.pt-quizzespage .count-down {
  position: relative;
  width: 48px;
  height: 22px;
  margin-bottom: -22px;
  border-radius: 22px;
  background-color: #18e48f;
  text-align: center;
  transition: 0.5s all ease-in-out;
  float: right;
}
.pt-quizzespage .count-down span {
  line-height: 22px;
  color: #FFF;
  font-size: 18px;
  font-weight: bold;
}

.choice {
  display: none;
}

.choice + label {
  display: inline-flex;
  align-items: center;
  user-select: none;
  cursor: pointer;
}

.choice + label:before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  margin-right: 8px;
  border-radius: 50%;
  transition: 0.3s;
  background-position: center;
  float: left;
  margin-top: -2px;
}

.choice:checked + label:before {
  border-color: #6220df;
  box-shadow: 0 0 0 4px #6220df inset;
}

.choice[type=checkbox] + label:before {
  border-radius: 4px;
}

.choice[type=checkbox]:checked + label:before {
  box-shadow: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3e%3cpath fill='%23fff' d='M.3 14c-.2-.2-.3-.5-.3-.7s.1-.5.3-.7l1.4-1.4c.4-.4 1-.4 1.4 0l.1.1 5.5 5.9c.2.2.5.2.7 0L22.8 3.3h.1c.4-.4 1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4l-16 16.6c-.2.2-.4.3-.7.3-.3 0-.5-.1-.7-.3L.5 14.3.3 14z'/%3e%3c/svg%3e");
  background-color: #3bb4fc;
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.choice.custom + label {
  position: relative;
  padding: 0 24px;
  margin: 0 4px 0 0;
  width: 100%;
  min-height: 72px;
}
.choice.custom + label b {
  position: relative;
  display: inline-block;
  font-weight: 700;
  line-height: 22px;
  color: #999;
  font-size: 18px;
}
.choice.custom + label b .pt-i {
  background: #FFF;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-block;
  line-height: 22px;
  box-shadow: 0 0 0 2px #EEE, 0 0 0 3px #FFF;
  margin-right: 6px;
}

.choice.custom + label:before {
  width: 100%;
  min-height: 72px;
  background: #EEE;
  border: 0;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 5px;
}

.choice.custom[type=checkbox]:checked + label {
  color: #FFF;
}
.choice.custom[type=checkbox]:checked + label b {
  color: #FFF;
}

.choice.custom[type=checkbox]:checked + label:before {
  background-image: none;
}

.choice.custom[type=radio]:checked + label,
.choice.custom[type=radio]:checked + label b {
  color: #6220df;
  font-weight: 700;
}

.choice.custom[type=radio]:checked + label:before {
  background: #FFF;
}

.choice.image + label {
  position: relative;
  width: 100%;
  margin: 0;
  margin-bottom: 22px;
  transition: all 0.3s;
}
.choice.image + label b {
  position: relative;
  display: block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
  transition: all 0.3s;
  border-radius: 5px;
}
.choice.image + label b img {
  width: 100%;
  border-radius: 3px;
  border-radius: 5px;
}

.choice.image + label:before {
  width: 100%;
  min-height: 48px;
  border-radius: 3px;
  height: 100%;
  border: 0;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 5px;
}

.choice.image[type=checkbox]:checked + label,
.choice.image[type=radio]:checked + label {
  color: #FFF;
  transform: scale(0.9);
}
.choice.image[type=checkbox]:checked + label b,
.choice.image[type=radio]:checked + label b {
  box-shadow: 0 0 0 3px #FFF, 0 0 0 7px #3bb4fc;
}
.choice.image[type=checkbox]:checked + label:before,
.choice.image[type=radio]:checked + label:before {
  background-image: none;
  box-shadow: none;
}

.pt-choice-tc {
  display: table;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}
.pt-choice-tc .form-group {
  margin-left: 0;
}
.pt-choice-tc .form-group:last-of-type {
  margin-bottom: 0;
}

.tgl {
  display: none;
}
.tgl, .tgl:after, .tgl:before, .tgl *, .tgl *:after, .tgl *:before, .tgl + .tgl-btn {
  box-sizing: border-box;
}
.tgl::selection, .tgl:after::selection, .tgl:before::selection, .tgl *::selection, .tgl *:after::selection, .tgl *:before::selection, .tgl + .tgl-btn::selection {
  background: none;
}
.tgl + .tgl-btn {
  outline: 0;
  display: block;
  width: 40px;
  height: 20px;
  position: relative;
  cursor: pointer;
  user-select: none;
  float: left;
}
.tgl + .tgl-btn:after, .tgl + .tgl-btn:before {
  position: relative;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
}
.tgl + .tgl-btn:after {
  left: 0;
}
.tgl + .tgl-btn:before {
  display: none;
}
.tgl:checked + .tgl-btn:after {
  left: 50%;
}

.tgl-light + .tgl-btn {
  background: #f0f0f0;
  border-radius: 2em;
  padding: 2px;
  transition: all 0.4s ease;
  margin: 3px 0px;
}
.tgl-light + .tgl-btn:after {
  border-radius: 50%;
  background: #fff;
  transition: all 0.2s ease;
}
.tgl-light:checked + .tgl-btn {
  background: #6220df;
}

.tgl-btn + label {
  margin-left: 12px;
  display: inline-block;
  font-weight: 700;
}

.tgl-ios + .tgl-btn {
  background: #fbfbfb;
  border-radius: 2em;
  padding: 2px;
  transition: all 0.4s ease;
  border: 1px solid #e8eae9;
}
.tgl-ios + .tgl-btn:after {
  border-radius: 2em;
  background: #fbfbfb;
  transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 0 rgba(0, 0, 0, 0.08);
}
.tgl-ios + .tgl-btn:hover:after {
  will-change: padding;
}
.tgl-ios + .tgl-btn:active {
  box-shadow: inset 0 0 0 2em #e8eae9;
}
.tgl-ios + .tgl-btn:active:after {
  padding-right: 0.8em;
}
.tgl-ios:checked + .tgl-btn {
  background: #86d993;
}
.tgl-ios:checked + .tgl-btn:active {
  box-shadow: none;
}
.tgl-ios:checked + .tgl-btn:active:after {
  margin-left: -0.8em;
}

.tgl-skewed + .tgl-btn {
  overflow: hidden;
  transform: skew(-10deg);
  backface-visibility: hidden;
  transition: all 0.2s ease;
  font-family: sans-serif;
  background: #888;
}
.tgl-skewed + .tgl-btn:after, .tgl-skewed + .tgl-btn:before {
  transform: skew(10deg);
  display: inline-block;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  position: absolute;
  line-height: 2em;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.tgl-skewed + .tgl-btn:after {
  left: 100%;
  content: attr(data-tg-on);
}
.tgl-skewed + .tgl-btn:before {
  left: 0;
  content: attr(data-tg-off);
}
.tgl-skewed + .tgl-btn:active {
  background: #888;
}
.tgl-skewed + .tgl-btn:active:before {
  left: -10%;
}
.tgl-skewed:checked + .tgl-btn {
  background: #86d993;
}
.tgl-skewed:checked + .tgl-btn:before {
  left: -100%;
}
.tgl-skewed:checked + .tgl-btn:after {
  left: 0;
}
.tgl-skewed:checked + .tgl-btn:active:after {
  left: 10%;
}

.tgl-flat + .tgl-btn {
  padding: 2px;
  transition: all 0.2s ease;
  background: #fff;
  border: 4px solid #f2f2f2;
  border-radius: 2em;
}
.tgl-flat + .tgl-btn:after {
  transition: all 0.2s ease;
  background: #f2f2f2;
  content: "";
  border-radius: 1em;
}
.tgl-flat:checked + .tgl-btn {
  border: 4px solid #7FC6A6;
}
.tgl-flat:checked + .tgl-btn:after {
  left: 50%;
  background: #7FC6A6;
}

.tgl-flip + .tgl-btn {
  padding: 2px;
  transition: all 0.2s ease;
  font-family: sans-serif;
  perspective: 100px;
}
.tgl-flip + .tgl-btn:after, .tgl-flip + .tgl-btn:before {
  display: inline-block;
  transition: all 0.4s ease;
  width: 100%;
  text-align: center;
  position: absolute;
  line-height: 2em;
  font-weight: bold;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border-radius: 4px;
}
.tgl-flip + .tgl-btn:after {
  content: attr(data-tg-on);
  background: #02C66F;
  transform: rotateY(-180deg);
}
.tgl-flip + .tgl-btn:before {
  background: #FF3A19;
  content: attr(data-tg-off);
}
.tgl-flip + .tgl-btn:active:before {
  transform: rotateY(-20deg);
}
.tgl-flip:checked + .tgl-btn:before {
  transform: rotateY(180deg);
}
.tgl-flip:checked + .tgl-btn:after {
  transform: rotateY(0);
  left: 0;
  background: #7FC6A6;
}
.tgl-flip:checked + .tgl-btn:active:after {
  transform: rotateY(20deg);
}

.pt-newquiz .editor-bgs {
  border: 2px solid #6220df;
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 12px;
}
.pt-newquiz .editor-bgs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pt-newquiz .editor-bgs ul:after {
  content: "";
  clear: both;
  display: block;
}
.pt-newquiz .editor-bgs ul li {
  float: left;
  width: 88px;
  margin-right: 2%;
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
  height: 88px;
  background: #EEE;
}
.pt-newquiz .editor-bgs ul li img {
  width: 100%;
  min-height: 100%;
}
.pt-newquiz .editor-bgs ul li .choice.image + label b {
  overflow: hidden;
  border-radius: 50%;
  height: 88px;
}
.pt-newquiz .pt-box h3 a {
  font-size: 12px;
  display: inline-block;
  color: #FFF !important;
  padding: 3px 10px;
  border-radius: 23px;
  margin-top: -3px;
  float: right;
}
.pt-newquiz .pt-question-image {
  position: relative;
}
.pt-newquiz .pt-question-image .file-upload .file-select {
  background: transparent;
  height: 120px;
  position: relative;
  z-index: 1;
  border-radius: 5px;
  border-color: #e0ebff;
}
.pt-newquiz .pt-question-image .thumbnails {
  height: 120px;
  width: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  border-radius: 5px;
}
.pt-newquiz .pt-question-image .thumbnails img {
  width: 100%;
  min-height: 100%;
}
.pt-newquiz .pt-answer-image .file-upload .file-select {
  background: #e0ebff;
  height: 44px;
  position: relative;
  z-index: 1;
  border-radius: 5px;
  border-color: #e0ebff;
}
.pt-newquiz .pt-answer-image .file-upload .file-select .file-select-name {
  color: #a1b4d7;
  font-weight: 700;
  text-align: center;
  display: block;
}
.pt-newquiz .pt-answer-image .thumbnails {
  width: 120px;
  margin: 0 auto;
  margin-top: 12px;
  border-radius: 5px;
}
.pt-newquiz .pt-answer-image .thumbnails img {
  width: 100%;
  min-height: 100%;
}
.pt-newquiz .pt-quiz-answer,
.pt-newquiz .pt-quiz-question {
  background: #F7F7F7;
  padding: 12px;
  border: 1px solid #EEE;
  border-radius: 3px;
  margin-top: 3px;
  position: relative;
  padding-right: 78px;
}
.pt-newquiz .pt-quiz-answer:first-of-type,
.pt-newquiz .pt-quiz-question:first-of-type {
  margin-top: 0;
}
.pt-newquiz .pt-quiz-answer .pt-right,
.pt-newquiz .pt-quiz-question .pt-right {
  position: absolute;
  right: 12px;
  top: 12px;
}
.pt-newquiz .pt-quiz-answer .pt-right a,
.pt-newquiz .pt-quiz-question .pt-right a {
  display: inline-block;
  width: 26px;
  height: 26px;
  text-align: center;
  line-height: 26px;
  background: #FFF;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid #F7F7F7;
}
.pt-newquiz .pt-quiz-answer {
  background: #FFF;
  border: 1px solid #EEE;
  padding: 8px 12px;
  margin: 3px 0 3px 24px;
}
.pt-newquiz .pt-quiz-answer .pt-right {
  right: 8px;
  top: 8px;
}
.pt-newquiz .pt-quiz-answer:first-of-type {
  margin-top: 3px;
}
.pt-newquiz .pt-quiz-answer:last-of-type {
  margin-bottom: 6px;
}

/* Quiz builder */
.pt-newquiz {
  background: #f6f7fb;
  border: 1px solid #e7e9f2;
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
}
.pt-newquiz > .modal-body,
.pt-newquiz > .modal-footer {
  padding: 0;
}
.pt-builder-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e7e9f2;
  display: flex;
  justify-content: space-between;
  min-height: 84px;
  padding: 16px 20px;
}
.pt-builder-heading,
.pt-builder-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}
.pt-builder-heading h2 {
  color: #25233c;
  font-size: 18px;
  line-height: 1.25;
  margin: 2px 0 0;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-builder-eyebrow {
  color: #8b8ca1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pt-builder-back {
  align-items: center;
  border: 1px solid #e4e5ed;
  border-radius: 9px;
  color: #5d5e73;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.pt-builder-status {
  background: #f2f3f7;
  border-radius: 20px;
  color: #77798c;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  padding: 7px 10px;
}
.pt-builder-status i {
  font-size: 6px;
  margin-right: 5px;
}
.pt-builder-status.is-published {
  background: #eaf8f1;
  color: #27865d;
}
.pt-builder-header .pt-btn {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
}
.pt-btn-secondary {
  background: #fff;
  border: 1px solid #d9cbf7;
  color: #4b1fb0 !important;
  box-shadow: none;
}
.pt-btn-secondary:hover { background: #f7f3ff; border-color: #b69af0; filter: none; }
.pt-btn-block {
  display: block;
  text-align: center;
  width: 100%;
}
.pt-builder-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  min-height: 680px;
}
.pt-builder-sidebar {
  background: #fff;
  border-right: 1px solid #e7e9f2;
  padding: 18px 12px;
}
.pt-builder-sidebar-title {
  align-items: center;
  color: #77798c;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: .06em;
  padding: 0 8px 10px;
  text-transform: uppercase;
}
.pt-builder-sidebar-title span:last-child {
  background: #f0f1f6;
  border-radius: 12px;
  padding: 2px 7px;
}
.pt-builder-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pt-builder-nav-item {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #505166;
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 10px;
}
.pt-builder-nav-item:hover,
.pt-builder-nav-item.is-active,
.pt-builder-question-row.is-active .pt-builder-nav-item {
  background: #f2f0ff;
  border-color: #ded9ff;
  color: #5b43cc;
}
.pt-builder-nav-icon,
.pt-builder-question-number {
  align-items: center;
  background: #f1f2f6;
  border-radius: 7px;
  display: flex;
  flex: 0 0 27px;
  height: 27px;
  justify-content: center;
  width: 27px;
}
.pt-builder-question-number {
  background: transparent;
  color: #9596a8;
  flex-basis: 18px;
  font-size: 11px;
  height: auto;
  width: 18px;
}
.pt-builder-nav-copy,
.pt-builder-nav-item > span:last-child {
  min-width: 0;
}
.pt-builder-nav-item strong,
.pt-builder-nav-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-builder-nav-item strong {
  font-size: 12px;
  font-weight: 700;
}
.pt-builder-nav-item small {
  color: #999aac;
  font-size: 10px;
  margin-top: 2px;
}
.pt-builder-question-row {
  position: relative;
}
.pt-builder-question-row .pt-builder-nav-item {
  padding-right: 52px;
}
.pt-builder-item-actions {
  display: flex;
  gap: 2px;
  position: absolute;
  right: 8px;
  top: 14px;
}
.pt-builder-item-actions a,
.pt-builder-answer-row > div a {
  align-items: center;
  border-radius: 6px;
  color: #8a8b9d;
  display: inline-flex;
  height: 25px;
  justify-content: center;
  width: 25px;
}
.pt-builder-item-actions a:hover,
.pt-builder-answer-row > div a:hover {
  background: #fff;
  color: #5b43cc;
}
.pt-builder-add {
  display: block;
  margin-top: 14px;
  text-align: center;
  width: 100%;
}
.pt-builder-editor,
.pt-builder-settings {
  padding: 20px;
}
.pt-builder-settings {
  border-left: 1px solid #e7e9f2;
  padding-left: 16px;
}
.pt-builder-card {
  background: #fff;
  border: 1px solid #e5e7ef;
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(46, 42, 81, .035);
  margin-bottom: 16px;
  padding: 20px;
}
.pt-builder-section-heading {
  align-items: center;
  border-bottom: 1px solid #eceef4;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
}
.pt-builder-section-heading span,
.pt-builder-section-heading small {
  display: block;
}
.pt-builder-section-heading span {
  color: #29273f;
  font-size: 15px;
  font-weight: 700;
}
.pt-builder-section-heading small {
  color: #9293a5;
  font-size: 11px;
  margin-top: 3px;
}
.pt-builder-section-heading > i {
  color: #6952d7;
  font-size: 17px;
}
.pt-builder-card label {
  color: #56576c;
  font-size: 12px;
  font-weight: 700;
}
.pt-builder-card input[type=text],
.pt-builder-card textarea {
  border-color: #dfe1ea;
  border-radius: 9px;
}
.pt-builder-card textarea {
  min-height: 110px;
}
.pt-builder-form-actions {
  align-items: center;
  border-top: 1px solid #eceef4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
}
.pt-builder-answer-row {
  align-items: center;
  border: 1px solid #e7e9f0;
  border-radius: 9px;
  display: grid;
  font-size: 12px;
  gap: 10px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  margin-top: 8px;
  padding: 9px 10px;
}
.pt-builder-answer-state {
  align-items: center;
  background: #f1f2f6;
  border-radius: 50%;
  color: #bbbcca;
  display: flex;
  font-size: 6px;
  height: 24px;
  justify-content: center;
  width: 24px;
}
.pt-builder-answer-state.is-correct {
  background: #e8f7ef;
  color: #27865d;
  font-size: 10px;
}
.pt-builder-help {
  color: #77798d;
  text-align: center;
}
.pt-builder-help > i {
  color: #6952d7;
  font-size: 24px;
}
.pt-builder-help h3 {
  color: #302e46;
  font-size: 14px;
  margin: 10px 0 5px;
}
.pt-builder-help p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.pt-newquiz .editor-bgs {
  border: 1px solid #e1e3eb;
}

@media (max-width: 1199px) {
  .pt-builder-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .pt-builder-settings {
    border-left: 0;
    grid-column: 2;
    padding-top: 0;
  }
}
@media (max-width: 767px) {
  .pt-newquiz {
    border-radius: 12px;
  }
  .pt-builder-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .pt-builder-heading,
  .pt-builder-actions {
    width: 100%;
  }
  .pt-builder-heading h2 {
    max-width: 180px;
  }
  .pt-builder-status {
    margin-left: auto;
  }
  .pt-builder-actions {
    flex-wrap: wrap;
  }
  .pt-builder-actions .pt-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .pt-builder-shell {
    display: block;
  }
  .pt-builder-sidebar {
    border-bottom: 1px solid #e7e9f2;
    border-right: 0;
    overflow-x: auto;
  }
  .pt-builder-nav {
    flex-direction: row;
    min-width: max-content;
  }
  .pt-builder-nav-item {
    width: 190px;
  }
  .pt-builder-add {
    display: inline-block;
    margin-left: 5px;
    margin-top: 8px;
    width: auto;
  }
  .pt-builder-editor,
  .pt-builder-settings {
    border: 0;
    padding: 14px;
  }
  .pt-builder-settings {
    padding-top: 0;
  }
  .pt-builder-card {
    padding: 15px;
  }
  .pt-newquiz .form-row,
  .pt-newquiz .form-inline {
    display: block;
  }
  .pt-newquiz .form-row > .col {
    max-width: 100%;
  }
}

/* Single-page quiz builder */
.pt-newquizpage .quizy-reference-hero {
  background: none;
  min-height: 120px;
  margin: 0;
  padding: 22px 0;
}
.pt-newquizpage .quizy-reference-hero .container,
.pt-newquizpage .quizy-reference-frame {
  width: calc(100% - 64px);
  max-width: 1140px;
  padding: 0;
}
.quizy-reference-hero .pt-page-hero-copy { position: relative; padding-inline-start: 35px; }
.quizy-reference-hero .pt-page-hero-title h1 { color: #110c37; font-size: 28px; }
.quizy-reference-hero .pt-page-hero-title span { background: #6220df; color: white; border-radius: 11px; width: 38px; height: 38px; }
.quizy-reference-hero .pt-page-hero-copy p { margin: 0; padding-inline-start: 60px; color: #40385d; font-size: 13px; }
.quizy-reference-frame .pt-newquiz { padding: 0; border-radius: 21px; }
.quizy-reference-frame .pt-single-builder { background: #faf8fc; }
.quizy-reference-frame .pt-builder-header { min-height: 73px; padding-inline: 25px; }
.quizy-reference-layout .pt-builder-section-heading { justify-content: flex-start; gap: 17px; border: 0; padding-bottom: 0; margin-bottom: 17px; }
.quizy-reference-layout .pt-builder-section-heading > i,
.pt-inline-upload label > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #eee5ff; color: #6220e8; }
.quizy-reference-layout .pt-builder-section-heading span { font-size: 17px; }
.quizy-reference-layout .pt-builder-card textarea { min-height: 78px; }
.quizy-reference-layout .pt-question-card > header { min-height: 58px; padding: 8px 18px; }
.quizy-reference-layout .pt-question-body { padding: 22px 28px 26px; }
.quizy-reference-layout .pt-correct-toggle { flex-basis: 18px; width: 18px; height: 18px; padding: 0; font-size: 8px; }
.quizy-reference-layout .pt-builder-add-question { padding: 8px; }
.quizy-reference-layout .pt-inline-upload { border: 0; padding: 0; }
.quizy-reference-layout .pt-inline-upload label { display: flex; align-items: center; gap: 18px; position: relative; margin: 0; padding: 9px 20px; flex: 1; border: 1px dashed #ded6f1; border-radius: 11px; }
.quizy-reference-layout .pt-inline-upload label small { display: block; font-weight: 400; }
.quizy-reference-layout .pt-inline-upload img { width: 96px; height: 69px; }
@media (max-width: 700px) {
  .pt-newquizpage .quizy-reference-hero .container,
  .pt-newquizpage .quizy-reference-frame { width: calc(100% - 20px); }
  .quizy-reference-hero .pt-page-hero-copy { padding-inline-start: 0; }
}
.pt-newquizpage { background: #f6f2fd; }
.quizy-reference-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 20px; padding: 20px; align-items: start; }
.quizy-reference-sidebar { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 16px; }
.quizy-reference-nav { padding-top: 4px; }
.quizy-reference-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px; border-radius: 13px; color: #17123e; transition: all .18s ease; }
.quizy-reference-nav a:first-child, .quizy-reference-nav a[aria-current] { background: linear-gradient(135deg, #7c3aed 0%, #6220e8 100%); color: #fff; box-shadow: 0 8px 20px rgba(98, 32, 232, 0.22); }
.quizy-reference-nav a:hover:not(:first-child):not([aria-current]) { background: #eee7fc; }
.quizy-reference-nav:has(a[aria-current]) a:first-child:not([aria-current]) { background: transparent; color: #17123e; box-shadow: none; }
.quizy-reference-nav:has(a[aria-current]) a:first-child:not([aria-current]):hover { background: #eee7fc; }
.quizy-reference-nav i, .quizy-reference-questions .pt-builder-list-heading > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #eee5ff; color: #6220e8; flex-shrink: 0; }
.quizy-reference-nav a:first-child i, .quizy-reference-nav a[aria-current] i { background: rgba(255, 255, 255, 0.2); color: #fff; }
.quizy-reference-nav:has(a[aria-current]) a:first-child:not([aria-current]) i { background: #eee5ff; color: #6220e8; }
.quizy-reference-nav small { display: block; color: #5e5678; font-size: 11px; }
.quizy-reference-nav a:first-child small, .quizy-reference-nav a[aria-current] small { color: rgba(255, 255, 255, 0.82); }
.quizy-reference-nav:has(a[aria-current]) a:first-child:not([aria-current]) small { color: #5e5678; }
.pt-builder-tips-card { background: linear-gradient(180deg, #faf7ff 0%, #f2ebfe 100%); border: 1px solid #e7dcfb; border-radius: 14px; padding: 14px; }
.pt-builder-tips-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #2a214b; margin-bottom: 10px; }
.pt-builder-tips-title i { color: #f59e0b; font-size: 14px; }
.pt-builder-tips-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-builder-tips-card li { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; line-height: 1.45; color: #4c4569; }
.pt-builder-tips-card li i { color: #6220e8; font-size: 10px; margin-top: 3px; flex-shrink: 0; }
[data-builder-tab-panel] { display: none; }
[data-builder-tab-panel].is-active { display: block; }
.pt-single-builder .quizy-reference-layout #sendquizbuilder { width: 100%; max-width: none; padding: 0; }
.quizy-reference-questions .pt-builder-list-heading { align-items: center; justify-content: flex-start; gap: 12px; margin: 0 0 18px; }
.quizy-reference-questions { padding: 28px; }
.quizy-reference-questions .pt-builder-list-heading > div:first-of-type { min-width: 0; }
.quizy-reference-questions .pt-builder-list-heading { flex-wrap: wrap; }
.quizy-reference-questions .pt-builder-list-heading > div:first-of-type { flex: 1 1 220px; }
/* The tools stay on one line; when there is no room beside the title they move under it */
.quizy-reference-questions .pt-builder-list-actions { align-items: center; display: flex; flex-wrap: nowrap; gap: 10px; margin-inline-start: auto; }
.quizy-reference-questions .pt-builder-list-heading h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.quizy-reference-questions [data-question-count] { background: #eee5ff; color: #5421ac; border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; white-space: nowrap; }
.pt-builder-io-menu { border: 1px solid #e6e3f4; border-radius: 11px; box-shadow: 0 10px 26px rgba(34, 24, 72, 0.12); min-width: 215px; padding: 6px; }
.pt-builder-io-menu .dropdown-item { align-items: center; border-radius: 8px; color: #2d2946; display: flex; font-size: 12.5px; font-weight: 600; gap: 9px; padding: 8px 10px; }
.pt-builder-io-menu .dropdown-item i { color: #6220e8; text-align: center; width: 16px; }
.pt-builder-io-menu .dropdown-item:hover,
.pt-builder-io-menu .dropdown-item:focus { background: #f4effd; color: #4c17ba; }
.pt-single-builder .pt-builder-card { border-color: #ebe5f6; }
.pt-single-builder .pt-question-card > header { background: #f4effd; }
.pt-single-builder .pt-correct-toggle.is-correct { background: #6220e8; border-color: #6220e8; }
.pt-single-builder .pt-builder-actions button:last-child,
.pt-single-builder .pt-builder-bottom-actions button:last-child { background: #6220df; color: white; }
@media (max-width: 767px) {
  .quizy-reference-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; }
  .quizy-reference-sidebar { position: static; }
  .pt-builder-tips-card { display: none; }
  /* Builder tabs become four equal tiles: icon above a short label */
  .quizy-reference-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid #ebe5f6; border-radius: 14px; background: #fff; }
  .quizy-reference-nav a { flex-direction: column; justify-content: center; gap: 5px; min-width: 0; margin: 0; padding: 8px 4px; border-radius: 11px; text-align: center; }
  .quizy-reference-nav a > span { width: 100%; min-width: 0; }
  .quizy-reference-nav strong { display: block; overflow: hidden; font-size: 11.5px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .quizy-reference-nav small { display: none; }
  .quizy-reference-nav i { width: 30px; height: 30px; }
}
.pt-single-builder {
  background: #f6f7fb;
  min-height: 720px;
}
.pt-single-builder #sendquizbuilder {
  margin: 0 auto;
  max-width: 900px;
  padding: 28px 20px 60px;
}
.pt-builder-save-state {
  color: #8a8b9c;
  font-size: 11px;
  min-width: 86px;
  text-align: right;
}
.pt-builder-save-state.is-saved { color: #27865d; }
.pt-builder-save-state.is-error { color: #c24c5a; }
.pt-builder-quiz-details {
  padding: 0;
  margin-bottom: 18px;
  overflow: hidden;
}
.pt-builder-quiz-details .pt-builder-section-heading {
  background: #faf9fd;
  border-bottom: 1px solid #f0edf8;
  margin: 0;
  padding: 18px 24px;
}
.pt-details-body {
  padding: 22px 24px 24px;
}
.pt-details-body .form-group {
  margin-bottom: 18px;
}
.pt-details-body label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #1c173d;
  margin-bottom: 8px;
}
.pt-label-icon {
  color: #6220e8;
  font-size: 12px;
}
.pt-details-body .form-group > input[type="text"],
.pt-details-body select,
.pt-details-body textarea {
  border: 1px solid #e1e3ed;
  border-radius: 10px;
  font-size: 13.5px;
  color: #17123e;
  background: #fff;
}
.pt-details-body .form-group > input[type="text"],
.pt-details-body select {
  height: 44px;
}
.pt-details-body textarea {
  min-height: 110px;
  padding: 12px 14px;
}
.pt-select-with-icon {
  position: relative;
}
.pt-select-with-icon > i {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  color: #4f4b66;
  font-size: 14px;
  pointer-events: none;
  z-index: 3;
}
.pt-select-with-icon select {
  padding-inline-start: 38px !important;
}
.pt-cover-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.pt-cover-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.pt-cover-info-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1ecfe;
  color: #6220e8;
  font-size: 16px;
  flex-shrink: 0;
}
.pt-cover-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #17123e;
}
.pt-cover-info small {
  display: block;
  font-size: 11.5px;
  color: #6b6883;
}
/* Cover image: an empty drop area, or a wide preview with "Change image" and "Remove" */
.pt-cover-dropzone {
  position: relative;
  width: 100%;
  min-width: 0;
}
.pt-cover-dropzone .pt-cover-drop-area {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 150px;
  margin: 0;
  overflow: hidden;
  border: 1.5px dashed #c4b2f7;
  border-radius: 14px;
  background: #faf8ff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.pt-cover-drop-area:hover,
.pt-cover-dropzone.is-dragging .pt-cover-drop-area {
  border-color: #7c3aed;
  background: #f3edff;
}
.pt-cover-drop-area:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px #7c3aed2e;
}
.pt-cover-drop-area input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pt-cover-placeholder {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 20px;
}
.pt-cover-placeholder > i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: #eee5ff;
  color: #6220e8;
  font-size: 20px;
}
.pt-cover-placeholder strong {
  color: #17123e;
  font-size: 13.5px;
  font-weight: 700;
}
.pt-cover-placeholder small {
  color: #6b6883;
  font-size: 12px;
}
.pt-cover-preview,
.pt-cover-change {
  display: none;
}
.pt-cover-dropzone.has-image .pt-cover-drop-area {
  aspect-ratio: 16 / 6;
  min-height: 0;
  border-style: solid;
  border-color: #e6dcf8;
  background: #f1ecfb;
}
.pt-cover-dropzone.has-image .pt-cover-placeholder {
  display: none;
}
.pt-cover-dropzone.has-image .pt-cover-preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-cover-dropzone.has-image .pt-cover-change {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  background: #17123ed1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s;
}
.pt-cover-dropzone.has-image .pt-cover-drop-area:hover .pt-cover-change {
  background: #6220e8;
}
.pt-cover-remove {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 0;
  border-radius: 10px;
  background: #ffffffeb;
  color: #b42335;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px #17123e26;
}
.pt-cover-remove:hover {
  background: #fff1f3;
}
.pt-cover-remove[hidden] {
  display: none;
}
.pt-cover-dropzone.is-uploading .pt-cover-drop-area {
  opacity: 0.6;
  pointer-events: none;
}
.pt-builder-quiz-settings {
  padding: 0 26px 26px;
  margin-bottom: 18px;
}
.pt-builder-quiz-settings > .pt-builder-section-heading {
  background: #faf9fd;
  border-bottom: 1px solid #f0edf8;
  margin: 0 -26px 18px;
  padding: 18px 26px;
}
.pt-builder-quiz-settings label,
.pt-question-body label {
  align-items: center;
  color: #18123f;
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 700;
  gap: 7px;
  margin-bottom: 7px;
}
.pt-builder-subheading {
  align-items: center;
  border-bottom: 1px solid #ddd7ef;
  color: #17113d;
  display: flex;
  font-size: 14px;
  gap: 10px;
  margin: 18px 0 16px;
  padding: 0 4px 8px;
}
.pt-builder-subheading > i { color: #6220e8; font-size: 16px; }
.pt-builder-subheading-copy { align-items: flex-start; border-bottom: 0; margin-bottom: 10px; }
.pt-builder-subheading-copy strong,
.pt-builder-subheading-copy small { display: block; }
.pt-builder-subheading-copy strong > small { display: inline; }
.pt-builder-subheading-copy small { font-size: 11px; font-weight: 400; margin-top: 2px; }
.pt-builder-details-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.pt-builder-quiz-settings .form-group { margin-bottom: 14px; }
.pt-builder-quiz-settings .form-group > input[type="number"],
.pt-builder-quiz-settings .form-group > input[type="text"],
.pt-builder-quiz-settings .form-group > input[type="url"] {
  background: #fff;
  border: 1px solid #ded6f5;
  border-radius: 10px;
  box-shadow: 0 2px 4px #32205812;
  height: 52px;
  padding: 0 14px;
  width: 100%;
}
/* Duration: the field is a button showing HH:MM:SS; it opens a small panel with steppers and presets */
.pt-duration-picker {
  position: relative;
  display: flex;
  height: var(--qb-field-height, 44px);
  padding: 0;
  border: 1px solid #ded6f5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 4px #32205812;
}
.pt-duration-picker:focus-within { border-color: #8c63ea; box-shadow: 0 0 0 3px #7445df12; }
.pt-duration-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #171134;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: start;
}
.pt-duration-toggle:focus { outline: 0; }
.pt-duration-toggle > .fa-clock { color: #6220e8; }
.pt-duration-picker.is-untimed .pt-duration-toggle [data-duration-label] { color: #807897; font-weight: 500; }
.pt-duration-caret { margin-inline-start: auto; color: #9a8fbb; font-size: 11px; transition: transform .15s; }
.pt-duration-toggle[aria-expanded="true"] .pt-duration-caret { transform: rotate(180deg); }
.pt-duration-panel {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 30;
  width: 290px;
  padding: 14px;
  border: 1px solid #e6def5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px #2a1a5a2e;
}
.pt-duration-panel[hidden] { display: none; }
.pt-duration-units { display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.pt-duration-separator { padding-top: 40px; color: #b3a8cf; font-size: 20px; font-weight: 700; }
.pt-duration-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pt-duration-unit button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: #f5f1fd;
  color: #6220e8;
  font-size: 11px;
}
.pt-duration-unit button:hover { background: #e9defd; }
#quizBuilder .pt-duration-unit input[type="number"] {
  width: 56px;
  height: 46px;
  padding: 0;
  border: 1px solid #e3ddf2;
  border-radius: 10px;
  background: #fff;
  color: #171134;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  appearance: textfield;
}
.pt-duration-unit input::-webkit-inner-spin-button,
.pt-duration-unit input::-webkit-outer-spin-button { appearance: none; margin: 0; }
#quizBuilder .pt-duration-unit input:focus { border-color: #8c63ea; outline: 0; box-shadow: 0 0 0 3px #7445df1a; }
.pt-duration-unit small { color: #807897; font-size: 11px; font-weight: 600; }
.pt-duration-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0ecf8; }
.pt-duration-presets button {
  padding: 5px 10px;
  border: 1px solid #e3ddf2;
  border-radius: 999px;
  background: #fff;
  color: #4a4566;
  font-size: 12px;
  font-weight: 600;
}
.pt-duration-presets button:hover { border-color: #6220e8; color: #6220e8; }
.pt-duration-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pt-duration-footer button { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; }
.pt-duration-clear { border: 0; background: transparent; color: #807897; }
.pt-duration-clear:hover { color: #c0263b; }
.pt-duration-done { border: 0; background: #6220e8; color: #fff; }
.pt-duration-done:hover { background: #4f18c2; }
.pt-builder-quiz-settings select,
.pt-builder-quiz-details select {
  background: #fff;
  border: 1px solid #dfe1ea;
  border-radius: 9px;
  height: 42px;
  padding: 0 10px;
  width: 100%;
}
.pt-builder-toggle-row label:has(input:checked) {
  background: #f4effd;
  border-color: #c2a7f9;
  color: #4c17ba;
  font-weight: 600;
}
.pt-builder-bg-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.pt-bg-layout-picker,
.pt-bg-theme-picker { width: 100%; min-width: 0; }
.pt-bg-layout-picker { container-type: inline-size; }
.pt-builder-bg-row .pt-bg-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1rem; font-weight: 700; }
.pt-bg-heading > i { display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 9px; background: #f1e9fc; color: #6220e8; }
.pt-bg-theme-description { margin: -5px 0 7px; color: #5c5571; font-size: .8rem; }
.pt-builder-bg-row .pt-bg-layout-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.pt-builder-bg-row .pt-bg-layout-options label { min-height: 60px; padding: 7px; gap: 6px; cursor: pointer; font-size: .8rem; line-height: 1.25; }
.pt-bg-layout-options input { flex: none; margin: 0; accent-color: #6220e8; }
.pt-bg-layout-label { min-width: 0; overflow-wrap: anywhere; }
.pt-bg-layout-options label:has(input:checked) { border-color: #7133ed; background: #f4edff; color: #4212a3; }
.pt-bg-layout-icon { position: relative; display: block; flex: 0 0 23px; block-size: 23px; border: 2px solid #edeaf3; border-radius: 5px; background: #f6f5fa; }
.pt-bg-layout-icon::before { content: ''; position: absolute; border-radius: 2px; background: #a87af4; }
.pt-bg-layout-icon.is-layout-1::before { inset-block: 2px; inset-inline-start: 2px; inline-size: 5px; }
.pt-bg-layout-icon.is-layout-2::before { inset-inline: 2px; inset-block-start: 2px; block-size: 5px; }
.pt-bg-layout-icon.is-layout-3 { background: #a87af4; }
.pt-bg-layout-icon.is-layout-3::before { inset: 5px 4px; background: #fff; }
.pt-bg-theme-options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; }
.pt-bg-carousel { --bg-thumb: 54px; --bg-gap: 8px; align-items: center; display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; }
.pt-bg-carousel-arrow {
  align-items: center;
  background: #fff;
  border: 1px solid #ded6f5;
  border-radius: 50%;
  color: #6220e8;
  display: flex;
  flex: 0 0 26px;
  height: 26px;
  justify-content: center;
  padding: 0;
  transition: background .18s ease, color .18s ease;
  width: 26px;
}
.pt-bg-carousel-arrow:hover { background: #6220e8; color: #fff; }
[dir="rtl"] .pt-bg-carousel-arrow i { transform: scaleX(-1); }
.pt-bg-carousel-viewport {
  position: relative;
  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 6px;
  scroll-behavior: smooth;
  scroll-padding-inline: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pt-bg-carousel-viewport::-webkit-scrollbar { display: none; }
.pt-bg-carousel-viewport ul {
  display: flex;
  gap: var(--bg-gap);
  width: max-content;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pt-bg-carousel-viewport li { flex: 0 0 var(--bg-thumb); scroll-snap-align: start; }
.pt-builder-bg-row .pt-bg-thumbnail { position: relative; display: block; inline-size: var(--bg-thumb, 50px); aspect-ratio: 1; margin: 0; border-radius: 9px; cursor: pointer; }
.pt-bg-thumbnail img { display: block; inline-size: 100%; block-size: 100%; border-radius: inherit; object-fit: cover; background: #f0e9fb; }
.pt-bg-thumbnail i { display: none; position: absolute; inset-block-start: -5px; inset-inline-end: -4px; padding: 3px; border-radius: 50%; background: #6220e8; color: #fff; border: 2px solid #fff; font-size: 9px; }
.pt-builder-bg-row input:checked + .pt-bg-thumbnail { outline: 2px solid #6220e8; outline-offset: 2px; }
.pt-builder-bg-row input:checked + .pt-bg-thumbnail i { display: block; }
.pt-builder-bg-row input:focus-visible + .pt-bg-thumbnail { outline: 2px dashed #4212a3; outline-offset: 3px; }
.pt-bg-custom { position: relative; border-inline-start: 1px solid #e9e2f6; padding-inline-start: 8px; }
.pt-bg-upload-card { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 60px; padding: 6px 8px; border: 1px dashed #ac82ed; border-radius: 9px; background: #f7f1ff; color: #5819c6; font-size: .72rem; font-weight: 700; }
.pt-bg-upload-card i { font-size: 1.2rem; }
.pt-bg-upload-card:hover, .pt-bg-custom-actions button:hover { background: #eee2ff; }
.pt-bg-custom [hidden] { display: none; }
.pt-bg-custom-actions { display: flex; gap: 4px; margin-top: 5px; }
.pt-bg-custom-actions button { display: grid; place-items: center; inline-size: 24px; block-size: 24px; padding: 0; border: 1px solid #e6daf8; border-radius: 6px; background: #fff; color: #6220e8; font-size: .72rem; }
.pt-bg-custom-actions [data-bg-remove] { color: #ae2344; }
@media (max-width: 900px) {
  .pt-builder-bg-row .pt-bg-layout-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .pt-builder-bg-row .pt-bg-layout-options { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 410px) {
  .pt-builder-bg-row .pt-bg-layout-options label { display: grid; justify-content: start; grid-template-columns: auto 1fr; }
  .pt-bg-layout-icon { inline-size: 23px; }
  .pt-bg-layout-label { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .pt-bg-carousel { --bg-thumb: 38px; }
}
.pt-builder-advanced {
  border-top: 1px solid #eceef4;
  margin-top: 20px;
  padding-top: 4px;
}
.pt-builder-advanced summary {
  align-items: center;
  color: #54556a;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  list-style: none;
  padding: 14px 0 8px;
}
.pt-builder-advanced summary::-webkit-details-marker { display: none; }
.pt-builder-advanced[open] summary > i { transform: rotate(180deg); }
.pt-builder-advanced-body { padding-top: 14px; }
.pt-builder-settings-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.pt-builder-settings-grid .form-group { margin-bottom: 0; }
.pt-builder-settings-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-builder-settings-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-builder-settings-grid-cta { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: 4px; }
.pt-builder-toggle-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.pt-builder-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.pt-builder-toggle-row label {
  align-items: center;
  border: 1px solid #e3e5ed;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  height: 100%;
  line-height: 1.35;
  margin: 0;
  min-height: 44px;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  width: 100%;
}
.pt-builder-toggle-row label > input[type="checkbox"] { flex-shrink: 0; margin: 0; }
.pt-builder-choice-row label {
  align-items: center;
  border: 1px solid #e3e5ed;
  border-radius: 9px;
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 9px 11px;
}
.pt-builder-toggle-row label > i { color: #6220e8; font-size: 14px; flex-shrink: 0; width: 16px; text-align: center; }
/* "?" next to a setting: shows its explanation on hover or keyboard focus */
.pt-help-tip { position: relative; display: inline-grid; place-items: center; margin-inline-start: auto; color: #9a8fbb; font-size: 14px; cursor: help; }
.pt-help-tip:is(:hover, :focus-visible) { color: #6220e8; outline: none; }
.pt-help-tip-text {
  position: absolute;
  inset-block-end: calc(100% + 10px);
  inset-inline-end: -10px;
  z-index: 20;
  width: 240px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #1f1640;
  box-shadow: 0 8px 22px #1f164033;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, visibility .15s;
}
.pt-help-tip-text::after {
  content: "";
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 12px;
  border: 6px solid transparent;
  border-top-color: #1f1640;
}
.pt-help-tip:is(:hover, :focus-visible) .pt-help-tip-text { opacity: 1; visibility: visible; }
@media (max-width: 991px) {
  .pt-builder-toggle-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .pt-builder-toggle-row { grid-template-columns: minmax(0, 1fr); }
}
.pt-builder-welcome-card {
  background: #fff;
  border: 1px solid #e4def2;
  border-radius: 14px;
  margin: 18px -4px 12px;
  padding: 12px 14px 4px;
}
.pt-builder-welcome-head { align-items: center; display: flex; gap: 12px; padding-bottom: 10px; }
.pt-builder-welcome-head > span { align-items: center; background: #eee6ff; border-radius: 10px; color: #6220e8; display: flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.pt-builder-welcome-head strong,
.pt-builder-welcome-head small { display: block; }
.pt-builder-welcome-head strong { color: #17113d; font-size: 14px; }
.pt-builder-welcome-head small { color: #665f82; font-size: 11.5px; margin-top: 2px; }
.pt-builder-switch { margin: 0 0 0 auto !important; }
[dir="rtl"] .pt-builder-switch { margin-left: 0 !important; margin-right: auto !important; }
.pt-builder-switch input { height: 1px !important; opacity: 0; position: absolute; width: 1px !important; }
.pt-builder-switch > span { background: #d9d4e4; border-radius: 20px; cursor: pointer; display: block; height: 30px; padding: 3px; transition: .18s ease; width: 54px; }
.pt-builder-switch > span::after { background: #fff; border-radius: 50%; box-shadow: 0 2px 5px #1e11402b; content: ""; display: block; height: 24px; transition: .18s ease; width: 24px; }
.pt-builder-switch input:checked + span { background: #6220e8; }
.pt-builder-switch input:checked + span::after { transform: translateX(24px); }
[dir="rtl"] .pt-builder-switch input:checked + span::after { transform: translateX(-24px); }
.pt-builder-welcome-fields { border-top: 1px solid #eeeaf6; padding: 12px 0 0; }
.pt-welcome-quill .ql-toolbar,
.pt-builder-welcome-fields .ql-toolbar {
  background: #faf8ff;
  border-color: #ded6f5;
  border-radius: 10px 10px 0 0;
  padding: 7px 9px;
}
.pt-welcome-quill.ql-container {
  background: #fff;
  border-color: #ded6f5;
  border-radius: 0 0 10px 10px;
  color: #171134;
  font-family: inherit;
  font-size: 13px;
  min-height: 112px;
}
.pt-welcome-quill .ql-editor { min-height: 110px; padding: 12px 14px; }
.pt-welcome-quill .ql-editor.ql-blank::before { color: #8c879d; font-style: normal; }
.pt-builder-welcome-fields .ql-snow .ql-stroke { stroke: #33285b; }
.pt-builder-welcome-fields .ql-snow .ql-fill { fill: #33285b; }
.pt-builder-welcome-fields .ql-snow button:hover .ql-stroke,
.pt-builder-welcome-fields .ql-snow button.ql-active .ql-stroke { stroke: #6220e8; }
.pt-builder-welcome-fields .has-error .ql-toolbar,
.pt-builder-welcome-fields .has-error .ql-container { border-color: #d96d79; }
.pt-quiz-welcome-desc > :last-child { margin-bottom: 0; }
.pt-inline-upload {
  align-items: center;
  border: 1px dashed #d8dae5;
  border-radius: 11px;
  display: flex;
  gap: 12px;
  min-height: 74px;
  overflow: hidden;
  padding: 8px;
  position: relative;
}
.pt-inline-upload input,
.pt-answer-upload input,
.pt-question-image-upload input {
  inset: 0;
  cursor: pointer;
  opacity: 0;
  position: absolute;
  width: 100%;
}
.pt-inline-upload img {
  border-radius: 8px;
  height: 56px;
  object-fit: cover;
  width: 76px;
}
.pt-builder-list-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 26px 2px 14px;
}
.pt-builder-list-heading h3 {
  color: #29273f;
  font-size: 17px;
  margin: 0 0 3px;
}
.pt-builder-list-heading p,
.pt-builder-list-heading span {
  color: #9293a5;
  font-size: 11px;
  margin: 0;
}
.pt-question-card {
  background: #fff;
  border: 1px solid #e4e6ee;
  border-radius: 13px;
  margin-bottom: 12px;
  overflow: hidden;
}
.pt-question-card.has-error { border-color: #db7a85; }
.pt-question-card > header {
  align-items: center;
  border-bottom: 1px solid #eceef4;
  display: flex;
  min-height: 58px;
  padding: 8px 12px;
}
.pt-question-grip { color: #6330d5; font-size: 14px; margin-inline: 2px 10px; }
/* Drag handles (customs.js makeSortable): touch-action none lets touch dragging work instead of scrolling */
.pt-question-grip,
.pt-answer-grip,
.pt-sort-handle { padding: 6px 4px; cursor: grab; touch-action: none; user-select: none; }
.pt-question-card.is-dragging,
.pt-inline-answer.is-dragging { position: relative; z-index: 2; opacity: .85; box-shadow: 0 14px 30px rgba(67, 32, 128, 0.18); outline: 2px dashed #a98aed; outline-offset: 2px; }
body.pt-is-sorting,
body.pt-is-sorting * { cursor: grabbing !important; user-select: none; }
.pt-question-collapse {
  align-items: center;
  background: transparent;
  border: 0;
  color: #39374e;
  display: flex;
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  min-width: 0;
  text-align: left;
}
.pt-question-collapse > span:nth-of-type(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-question-order {
  align-items: center;
  background: #f0edff;
  border-radius: 7px;
  color: #6049c8;
  display: flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
}
.pt-question-tools { display: flex; gap: 3px; }
.pt-question-tools button,
.pt-icon-button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #9293a4;
  height: 30px;
  width: 30px;
}
.pt-question-tools button:hover,
.pt-icon-button:hover { background: #f1f2f6; color: #6049c8; }
.pt-question-body { padding: 20px; }
.pt-question-card.is-collapsed .pt-question-body { display: none; }
.pt-question-card.is-collapsed .pt-question-tools [data-toggle-question] i { transform: rotate(-90deg); }
.pt-question-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-bottom: 16px;
}
.pt-question-grid .form-group { margin-bottom: 0; }
.pt-question-grid .form-group:nth-child(1) { grid-column: span 5; }
.pt-question-grid .form-group:nth-child(2) { grid-column: span 3; }
.pt-question-grid select,
.pt-builder-advanced select {
  background: #fff;
  border: 1px solid #dfe1ea;
  border-radius: 9px;
  height: 42px;
  padding: 0 10px;
  width: 100%;
}
.pt-question-options {
  align-items: center;
  display: flex;
  gap: 16px;
  margin: 2px 0 18px;
}
.pt-question-options label {
  color: #737487;
  font-size: 11px;
  margin: 0;
}
.pt-question-image-upload {
  cursor: pointer;
  position: relative;
}
.pt-question-image-block { display: block; margin: 0 0 18px; min-width: 0; }
.pt-question-image-block > label:first-child { display: flex; margin-bottom: 7px; }
.pt-question-image-block .pt-question-image-upload { align-items: center; border: 1px dashed #a78bfa; border-radius: 11px; display: flex; gap: 14px; min-height: 72px; padding: 9px 14px; }
.pt-question-image-upload > span { align-items: center; background: #eee6ff; border-radius: 10px; color: #6220e8; display: flex; flex: 0 0 42px; font-size: 19px; height: 42px; justify-content: center; }
.pt-question-image-upload > strong { color: #17113d; font-size: 12.5px; }
.pt-question-image-upload > strong small { color: #625b7c; display: block; font-size: 10.5px; font-weight: 400; margin-top: 3px; }
.pt-question-image-placeholder { color: #6220e8; font-size: 28px; margin-inline-start: auto; }
.pt-question-metrics { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.pt-question-metrics .form-group { margin: 0; }
.pt-question-metrics input[type="number"] { min-height: 48px; width: 100%; }
.pt-single-answer-switch { align-items: center; color: #171134 !important; cursor: pointer; display: inline-flex !important; font-size: 12px !important; font-weight: 700; gap: 11px; }
.pt-single-answer-switch input { block-size: 1px !important; height: 1px !important; inline-size: 1px !important; opacity: 0; position: absolute; width: 1px !important; }
.pt-single-answer-switch > i { background: #d9d4e4; border-radius: 18px; display: block; height: 26px; padding: 3px; transition: .18s ease; width: 46px; }
.pt-single-answer-switch > i::after { background: #fff; border-radius: 50%; box-shadow: 0 2px 5px #1e11402b; content: ""; display: block; height: 20px; transition: .18s ease; width: 20px; }
.pt-single-answer-switch input:checked + i { background: #6220e8; }
.pt-single-answer-switch input:checked + i::after { transform: translateX(20px); }
.pt-single-answer-switch input:focus-visible + i { outline: 2px solid #7542ec; outline-offset: 2px; }
[dir="rtl"] .pt-single-answer-switch input:checked + i::after { transform: translateX(-20px); }
.pt-question-image-preview {
  border-radius: 9px;
  height: 100px;
  margin-bottom: 14px;
  object-fit: cover;
  width: 160px;
}
.pt-inline-answers {
  background: #faf8ff;
  border: 1px solid #eee9f8;
  border-radius: 11px;
  padding: 14px;
}
.pt-inline-answers-heading { background: #f2edfd; border-radius: 9px 9px 0 0; margin: -14px -14px 9px; padding: 9px 13px; }
.pt-inline-answers-heading strong i { color: #6220e8; margin-inline-end: 6px; }
.pt-inline-answers-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pt-inline-answers-heading strong { color: #4a485f; font-size: 12px; }
.pt-inline-answers-heading small { color: #999aab; font-size: 10px; }
.pt-inline-answer {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 7px;
}
.pt-answer-grip { color: #5c32c7; flex: 0 0 12px; font-size: 13px; text-align: center; }
.pt-inline-answer-field { flex: 1; }
.pt-inline-answer input[type=text] { background: #fff; margin: 0; }
.pt-correct-toggle {
  background: #fff;
  border: 1px solid #dfe1e9;
  border-radius: 50%;
  color: transparent;
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
}
.pt-correct-toggle.is-correct {
  background: #2a9768;
  border-color: #2a9768;
  color: #fff;
}
/* Answer image button: an icon when empty, the uploaded image once there is one */
.pt-answer-upload {
  border: 1px dashed #cdbdf3;
  border-radius: 9px;
  background: #f5f0ff;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s;
}
.pt-answer-upload:hover {
  border-color: #7c3aed;
  background: #ece2ff;
}
.pt-answer-upload img {
  display: none;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.pt-answer-upload > i {
  color: #6220e8;
  font-size: 15px;
}
.pt-answer-upload.has-image {
  border-style: solid;
  border-color: #dccff7;
}
.pt-answer-upload.has-image img {
  display: block;
}
/* On an image, the icon only appears on hover as a "change" hint */
.pt-answer-upload.has-image > i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #17123e99;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.pt-answer-upload.has-image:hover > i {
  opacity: 1;
}
.pt-answer-upload.is-uploading {
  border-style: solid;
  cursor: progress;
}
.pt-add-answer {
  background: #f5f0ff;
  border: 1px solid #d9c9fb;
  border-radius: 8px;
  color: #6049c8;
  font-size: 11px;
  font-weight: 700;
  margin: 10px 0 0 8px;
  padding: 6px 12px;
}
.pt-answer-explanation { margin-top: 18px !important; }
.pt-builder-add-question {
  background: #fff;
  border: 1px dashed #c9c6dc;
  border-radius: 11px;
  color: #6049c8;
  font-size: 12px;
  font-weight: 700;
  padding: 14px;
  width: 100%;
}
.pt-builder-bottom-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 22px;
}
.pt-field-error,
.pt-question-error {
  color: #bd4351;
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.has-error input,
.has-error select { border-color: #d96d79 !important; }
.pt-builder-validation-summary {
  color: #bd4351;
  font-size: 11px;
  margin-bottom: 10px;
}
@media (max-width: 767px) {
  .pt-single-builder #sendquizbuilder { padding: 16px 10px 40px; }
  .pt-single-builder .pt-builder-header { padding: 12px; }
  .pt-builder-save-state { order: 4; text-align: left; width: 100%; }
  .pt-question-grid { display: block; }
  .pt-question-grid .form-group { margin-bottom: 12px; }
  .pt-builder-settings-grid-3,
  .pt-builder-settings-grid-2,
  .pt-builder-settings-grid-cta,
  .pt-builder-details-top { grid-template-columns: minmax(0, 1fr); }
  .quizy-reference-questions .pt-builder-list-heading { flex-wrap: wrap; }
  .quizy-reference-questions .pt-builder-list-actions { flex-wrap: wrap; margin-inline-start: 0; width: 100%; }
  .pt-question-tools button { height: 28px; width: 25px; }
  .pt-question-body { padding: 14px; }
  .quizy-reference-questions { padding: 14px; }
  .pt-builder-quiz-details { padding: 0; }
  .pt-builder-quiz-settings { padding-inline: 16px; }
  .pt-builder-quiz-settings > .pt-builder-section-heading { margin-inline: -16px; padding-inline: 16px; }
  .pt-question-metrics { grid-template-columns: minmax(0, 1fr); }
  .pt-question-options { margin: 0 0 8px; }
  .pt-builder-welcome-head { align-items: flex-start; }
  .pt-builder-switch { flex-shrink: 0; }
  .pt-inline-answer { align-items: flex-start; }
  .pt-builder-bottom-actions { position: sticky; bottom: 8px; }
  .pt-builder-bottom-actions .pt-btn { flex: 1; }
}

.pt-header {
  background: #FFF;
  border-bottom: 1px solid var(--pt-border);
  box-shadow: 0 8px 30px rgba(41, 37, 100, 0.05);
}
.pt-header .pt-header-top {
  position: relative;
  padding: 10px 0;
}
.pt-header .pt-header-top:after {
  content: "";
  clear: both;
  display: block;
}
.pt-header .pt-header-top .pt-logo {
  float: left;
}
.pt-header .pt-header-top .pt-logo img {
  width: auto;
  height: 52px;
  margin-top: 4px;
}
.pt-header .pt-header-top .pt-menu {
  float: right;
}
.pt-header .pt-header-top .pt-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pt-header .pt-header-top .pt-menu > ul { display: flex; align-items: center; flex-wrap: wrap; }
.pt-header .pt-header-top .pt-menu ul li {
  float: left;
  padding: 14px 4px;
  position: relative;
}
.pt-header .pt-header-top .pt-menu ul li.active {
  margin: 0;
  background: transparent;
  border-radius: 0;
}
.pt-header .pt-header-top .pt-menu ul li a {
  color: var(--pt-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 0 14px;
  border-radius: 13px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  outline: 0;
}
.pt-header .pt-header-top .pt-menu > ul > li.active > a {
  color: var(--pt-heading);
  background: #f0edff;
}
.pt-header .pt-header-top .pt-menu > ul > li > a > i:first-child {
  margin-right: 9px;
  color: var(--pt-primary);
  font-size: 19px;
}
.pt-header .pt-header-top .pt-menu > ul > li:not(.pt-login):not(.pt-img):not(.pt-author) > a:hover {
  color: var(--pt-primary-dark);
  background: #f4f1ff;
  transform: translateY(-2px);
}
.pt-header .pt-header-top .pt-menu .pt-menu-chevron {
  margin-left: 7px;
  font-size: 10px;
  transition: transform 0.25s ease;
}
.pt-header .pt-header-top .pt-menu > ul > li.thedropdown > .pt-showcats.active,
.pt-header .pt-header-top .pt-menu > ul > li.thedropdown > .pt-showcats.active:hover,
.pt-header .pt-header-top .pt-menu > ul > li.thedropdown > .pt-showcats.active:focus {
  color: var(--pt-primary-dark);
  background: #f0edff;
  box-shadow: 0 7px 18px rgba(79, 70, 229, 0.14);
  outline: 0;
}
.pt-header .pt-header-top .pt-menu .pt-showcats.active > i {
  color: var(--pt-primary);
}
.pt-header .pt-header-top .pt-menu .pt-showcats.active .pt-menu-chevron {
  transform: rotate(180deg);
}
.pt-header .pt-header-top .pt-menu ul li.pt-login {
  padding: 14px 0;
  margin-left: 6px;
  padding-left: 12px;
}
.pt-header .pt-header-top .pt-menu ul li.pt-login:last-of-type {
  padding-left: 0;
}
.pt-header .pt-header-top .pt-menu ul li.pt-login a {
  height: 44px;
  line-height: 42px;
  padding: 0 20px;
  border-radius: 16px;
  background: #FFF;
  color: var(--pt-primary);
  font-size: 13px;
  box-shadow: none;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
}
.pt-header .pt-header-top .pt-menu ul li.pt-login a.bg-gr {
  color: #FFF;
}
.pt-header .pt-header-top .pt-menu ul li.pt-login .pt-login-button {
  min-width: 110px;
  border: 1px solid #aaa6bf;
  color: var(--pt-heading);
  font-size: 15px;
}
.pt-signup-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 11px;
  color: #FFF;
  font-size: 18px;
}
.pt-signup-icon b {
  position: absolute;
  top: -4px;
  right: -8px;
  color: #FFF;
  font: 700 13px/1 var(--pt-font-sans);
}
.pt-header .pt-header-top .pt-menu ul li.pt-login .pt-login-button:hover {
  color: var(--pt-primary);
  border-color: var(--pt-primary);
  background: #f7f5ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.12);
}
.pt-header .pt-header-top .pt-menu ul li.pt-login .pt-signup-button {
  min-width: 150px;
  background: linear-gradient(135deg, #6d4aff, #8b36e8);
  color: #FFF;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(99, 66, 235, 0.24);
}
.pt-header .pt-header-top .pt-menu ul li.pt-login .pt-signup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(99, 66, 235, 0.34);
  filter: brightness(1.06);
}
.pt-header .pt-header-top .pt-menu ul li.pt-search-link {
  padding: 14px 8px;
}
.pt-header .pt-header-top .pt-menu ul li.pt-search-link > a,
.pt-header .pt-header-top .pt-menu ul li.pt-search-link .pt-public-search summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d8d5ee;
  border-radius: 13px;
  background: #FFF;
  color: var(--pt-primary);
  font-size: 17px;
  transition: all 0.2s ease;
}
.pt-header .pt-header-top .pt-menu ul li.pt-search-link > a i,
.pt-header .pt-header-top .pt-menu ul li.pt-search-link .pt-public-search summary i {
  margin: 0;
}
.pt-header .pt-header-top .pt-menu ul li.pt-search-link > a:hover,
.pt-header .pt-header-top .pt-menu ul li.pt-search-link .pt-public-search summary:hover,
.pt-header .pt-header-top .pt-menu ul li.pt-search-link .pt-public-search[open] summary {
  color: #FFF;
  border-color: var(--pt-primary);
  background: var(--pt-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
}
.pt-header .pt-header-top .pt-menu ul li.pt-login a.active {
  height: 44px;
  border-radius: 16px;
}
.pt-header .pt-header-top .pt-menu ul li .pt-thumb {
  overflow: hidden;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #FFF;
  line-height: 0;
}
.pt-header .pt-header-top .pt-menu ul li .pt-thumb img {
  width: 100%;
}
.pt-header .pt-header-top .pt-menu ul li.pt-img {
  padding-top: 25px;
  padding-right: 3px;
}
.pt-header .pt-header-top .pt-menu ul li.pt-author {
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  padding: 25px 0 4px 0;
  margin-left: 8px;
}
.pt-header .pt-header-top .pt-menu ul li.pt-author .pt-showmenudetails {
  color: var(--pt-heading);
}
.pt-header .pt-header-top .pt-menu ul li.pt-author b {
  position: absolute;
  top: 10px;
  left: -16px;
  width: 16px;
  height: 16px;
  font-size: 10px;
  background: #e74a4a;
  color: #ffffff;
  line-height: 16px;
  border-radius: 50%;
  text-align: center;
  font-weight: 400;
  box-shadow: 0 0 0 2px #ff9f0e;
}
.pt-header .pt-header-top .pt-menu ul li .pt-drop {
  position: absolute;
  background: #FFF;
  margin: 0;
  padding: 8px;
  right: 0;
  width: 222px;
  border-radius: 10px;
  top: 80px;
  box-shadow: 1px 6px 14px 0px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  visibility: hidden;
  opacity: 0;
  z-index: 3;
}
.pt-header .pt-header-top .pt-menu ul li .pt-drop.open {
  visibility: visible;
  opacity: 1;
  top: 60px;
}
.pt-header .pt-header-top .pt-menu ul li .pt-drop li {
  float: none;
  padding: 0;
}
.pt-header .pt-header-top .pt-menu ul li .pt-drop li a {
  font-size: 14px;
  padding: 8px 12px;
  border-bottom: 1px solid #EEE;
  transition: all 0.3s;
  display: block;
  color: #050049;
  font-weight: 600;
}
.pt-header .pt-header-top .pt-menu ul li .pt-drop li a i {
  margin-right: 6px;
}
.pt-header .pt-header-top .pt-menu ul li .pt-drop li a:before {
  content: none;
}
.pt-header .pt-header-top .pt-menu ul li .pt-drop li a:hover {
  background: #e6ebff;
  color: #715ecc;
  border-color: #e6e4ff;
  border-radius: 5px;
}
.pt-header .pt-header-top .pt-menu ul li .pt-drop li a span {
  font-size: 10px;
  background: #5b34ea;
  box-shadow: 0 10px 14px rgba(0, 0, 0, 0.1);
  display: inline-block;
  border-radius: 30px;
  float: right;
  line-height: 22px;
  padding: 0 5px;
  color: #FFF;
}
.pt-header .pt-header-top .pt-menu ul li .pt-drop li:last-of-type a {
  border-bottom: 0;
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu {
  margin-left: 8px;
  padding: 14px 0;
}
.pt-account-menu .pt-showmenudetails {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 4px 9px 4px 5px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--pt-heading);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.pt-account-menu .pt-showmenudetails:hover,
.pt-account-menu .pt-showmenudetails.active {
  color: #6029ce;
  border-color: #e3dcf5;
  background: #f7f4ff;
}
.pt-header .pt-header-top .pt-menu .pt-account-menu .pt-showmenudetails .pt-thumb {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 2px solid #FFF;
  background: #eeeef3;
  box-shadow: 0 0 0 2px #e4dff2;
}
.pt-header .pt-header-top .pt-menu .pt-account-menu .pt-showmenudetails .pt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-account-menu .pt-showmenudetails strong {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-account-menu .pt-showmenudetails > i {
  font-size: 8px;
  transition: transform 0.14s ease;
}
.pt-account-menu .pt-showmenudetails.active > i {
  transform: rotate(180deg);
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop {
  top: 66px;
  width: 268px;
  padding: 12px;
  border: 1px solid #e8e3f3;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(39, 24, 89, 0.18);
  transform: translateY(-6px) scale(0.985);
  transform-origin: top right;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop.open {
  top: 66px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop li {
  display: block;
  width: 100%;
  text-align: left;
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop li a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  color: #202044;
  background: transparent;
  font-size: 12px;
  text-align: left;
  transition: color 0.14s ease, background 0.14s ease;
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop li a:hover {
  color: #6125ca;
  background: #f5f0ff;
  transform: none;
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop li a .pt-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  float: none;
  padding: 0;
  border-radius: 9px;
  color: #53319f;
  background: #f0ebfb;
  box-shadow: none;
  font-size: 14px;
  line-height: 32px;
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop li a .pt-drop-icon i {
  margin: 0;
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop li a b {
  display: block;
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  visibility: visible;
  opacity: 1;
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop li.pt-drop-primary .pt-drop-icon {
  color: #fff;
  background: #6d2de2;
}
/* Groups (account, logout) are split by a divider with the same space above and below it */
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop li:is(.pt-drop-separated, .pt-drop-logout) {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #ece8f4;
}
.pt-header .pt-header-top .pt-menu .pt-account-menu .pt-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  float: none;
  margin-inline-start: auto;
  padding: 2px 8px;
  border-radius: 999px;
  color: #6624cb;
  background: #eee5ff;
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}
.pt-header .pt-header-top .pt-menu .pt-account-menu .pt-plan-badge i {
  color: #7132d8;
  font-size: 9px;
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop li.pt-drop-logout a {
  color: #dc284d;
}
.pt-header .pt-header-top .pt-menu ul li.pt-account-menu .pt-drop li.pt-drop-logout .pt-drop-icon {
  color: #dc284d;
  background: #fff0f3;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown {
  position: absolute;
  display: block;
  width: 960px;
  right: -360px;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  top: 86px;
  margin: 0;
  padding: 18px 20px 20px;
  list-style: none;
  background: #FFF;
  border: 1px solid #dcd5ff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(43, 30, 112, 0.16);
  overflow: visible;
  transition: top 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown:before {
  content: "";
  position: absolute;
  top: -10px;
  /* Offset set by customs.js when the menu opens, so the arrow sits under its button */
  inset-inline-start: calc(var(--pt-menu-arrow-offset, 50%) - 10px);
  width: 20px;
  height: 20px;
  border-top: 1px solid #dcd5ff;
  border-left: 1px solid #dcd5ff;
  background: #FFF;
  transform: rotate(45deg);
}
.pt-header .pt-header-top .pt-menu ul li .dropdown li {
  float: none;
  width: auto;
  border: 1px solid #dedcf1;
  border-radius: 12px;
  padding: 0;
  margin: 0;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown .pt-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #e8e5f6;
  border-radius: 0;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown .pt-category-scroll {
  width: 100%;
  max-height: calc(100vh - 205px);
  margin: 0;
  padding: 0 8px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
}
.pt-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pt-category-heading-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pt-category-heading-copy > span {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 11px;
  text-align: center;
  color: #FFF;
  background: linear-gradient(135deg, #7040e8, #8f29e8);
  font-size: 17px;
}
.pt-category-heading-copy h3,
.pt-category-heading-copy p {
  margin: 0;
}
.pt-category-heading-copy h3 {
  font-size: 17px;
}
.pt-category-heading-copy p {
  font-size: 13px;
}
.pt-category-heading-copy p {
  color: var(--pt-text);
}
.pt-header .pt-header-top .pt-menu ul li .dropdown .pt-category-all-button {
  padding: 7px 16px;
  border: 1px solid var(--pt-primary);
  border-radius: 22px;
  font-size: 13.5px;
  color: var(--pt-primary-dark);
  font-weight: 700;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown .pt-category-all-button i {
  margin: 0;
  margin-inline-start: 10px;
  font-size: 11px;
}
[dir="rtl"] .pt-header .pt-header-top .pt-menu ul li .dropdown .pt-category-all-button i { transform: scaleX(-1); }
.pt-header .pt-header-top .pt-menu ul li .dropdown .pt-category-all-button:hover {
  color: #FFF !important;
  background: var(--pt-primary);
}
.pt-header .pt-header-top .pt-menu ul li .dropdown li a {
  display: flex;
  align-items: center;
  gap: 9px;
  height: auto;
  min-height: 40px;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  color: #050049;
  padding: 5px 8px;
  justify-content: flex-start;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown li a span {
  flex: 0 0 28px;
  width: 28px;
  display: inline-block;
  height: 28px;
  text-align: center;
  line-height: 28px;
  border-radius: 8px;
  margin: 0;
  font-size: 12.5px;
  color: #FFF;
  border: 1px solid transparent;
  transition: transform 0.2s ease;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown li a span i {
  margin: 0;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown li a:hover {
  color: var(--pt-primary-dark) !important;
  background: #f7f5ff;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown li a:hover span {
  transform: scale(1.08);
}
.pt-header .pt-header-top .pt-menu ul li .dropdown .pt-category-all-item {
  border-color: #7c3aed;
  background: #f6f1ff;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown .pt-category-all-item a span {
  background: linear-gradient(135deg, #7040e8, #8f29e8);
}
.pt-category-check {
  margin-inline-start: auto;
  color: #7c3aed;
  font-size: 15px;
}
.pt-header .pt-header-top .pt-menu ul li .dropdown.open {
  visibility: visible;
  opacity: 1;
  top: 70px;
}
.pt-header .pt-header-content {
  position: relative;
}
.pt-header .pt-header-content:after {
  content: "";
  clear: both;
  display: block;
}
.pt-header .pt-header-content .pt-right {
  float: right;
  width: 50%;
  text-align: right;
  margin-top: 22px;
}
.pt-header .pt-header-content .pt-right img {
  width: 100%;
  max-width: 560px;
  height: auto;
}
.pt-header .pt-header-content .pt-left {
  float: left;
  text-align: left;
  width: 50%;
  margin-top: 76px;
}
/* Arabic headings run taller, so the hero text starts higher to stay level with the image */
[dir="rtl"] .pt-header .pt-header-content .pt-left {
  margin-top: 40px;
}
.pt-header .pt-header-content .pt-left h1 {
  color: var(--pt-heading);
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -1.4px;
  margin-bottom: 22px;
}
.pt-header .pt-header-content .pt-left p {
  color: var(--pt-text);
  font-size: 15px;
  line-height: 1.8;
  max-width: 570px;
  opacity: 1;
}
.pt-header .pt-header-content .pt-left h1 span {
  position: relative;
  display: inline-block;
  color: var(--pt-primary);
}
/* Hand-drawn style underline under the highlighted word */
.pt-header .pt-header-content .pt-left h1 span::after {
  content: "";
  position: absolute;
  inset-inline: 4% 2%;
  inset-block-end: -0.12em;
  height: 0.14em;
  border-radius: 50%;
  background: #facc15;
  transform: rotate(-2deg);
}
.pt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  margin-bottom: 18px;
  border-radius: 20px;
  color: var(--pt-primary-dark);
  background: #eeeaff;
  font-size: 12px;
  font-weight: 700;
}
.pt-hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}
.pt-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 154px;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pt-hero-actions a:hover {
  transform: translateY(-2px);
}
.pt-hero-actions .pt-primary-action {
  color: #FFF;
  background: linear-gradient(135deg, #5937e8, #7b35ed);
  box-shadow: 0 10px 24px rgba(89, 55, 232, 0.28);
}
.pt-hero-actions .pt-secondary-action {
  color: var(--pt-heading);
  border: 1px solid #d9d8e8;
  background: #FFF;
}
.pt-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 38px;
  color: var(--pt-heading);
  font-size: 12px;
  font-weight: 600;
}
.pt-hero-features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pt-hero-features i {
  width: 23px;
  height: 23px;
  line-height: 23px;
  border-radius: 50%;
  text-align: center;
  color: #0c9e78;
  background: #d7f8ed;
}
.pt-hero-features span:nth-child(2) i {
  color: #168ee7;
  background: #dff3ff;
}
.pt-hero-features span:nth-child(3) i {
  color: #ef3d83;
  background: #ffe4ef;
}

.pt-how .pt-title {
  text-align: center;
  margin-bottom: 46px;
}
.pt-how {
  padding: 76px 0 92px;
  background: #FFF;
}
.pt-how .pt-title small {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--pt-primary);
  background: #f0edff;
  font-weight: 700;
}
/* Home section titles are h2 (the hero holds the page h1) but keep the large heading size */
:is(.pt-how, .pt-who, .pt-discover) .pt-title h2 {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
}
.pt-how .pt-title h2 {
  margin: 18px 0 8px;
}
.pt-how .pt-title p {
  color: var(--pt-text);
}
.pt-how .pt-item {
  border: 1px solid var(--pt-border);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(41, 37, 100, 0.07);
  text-align: center;
  padding: 34px 28px 30px;
  min-height: 300px;
  position: relative;
  background: linear-gradient(145deg, #fbfaff, #f2edff);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pt-how .col:nth-child(2) .pt-item {
  background: linear-gradient(145deg, #f7fcff, #eaf7ff);
}
.pt-how .col:nth-child(3) .pt-item {
  background: linear-gradient(145deg, #f8fffb, #e9faf3);
}
.pt-how .pt-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(41, 37, 100, 0.16);
}
.pt-how .pt-item h3, .pt-how .pt-item p {
  padding: 0;
}
.pt-how .pt-item h3 {
  margin-top: 22px;
  margin-bottom: 12px;
  padding-top: 0;
  color: var(--pt-heading);
}
.pt-how .pt-item p {
  color: var(--pt-text);
  font-weight: 500;
  line-height: 1.8;
}
.pt-step-number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  color: #FFF;
  background: #6338e6;
}
.pt-step-number.is-blue {
  background: #1d9bf0;
}
.pt-step-number.is-green {
  background: #12ad7d;
}
.pt-step-icon {
  width: 96px;
  height: 96px;
  margin: 18px auto 0;
  border-radius: 26px;
  line-height: 96px;
  font-size: 48px;
  color: #6338e6;
  background: rgba(99, 56, 230, 0.1);
}
.pt-step-icon.is-blue {
  color: #168ed5;
  background: rgba(29, 155, 240, 0.1);
}
.pt-step-icon.is-green {
  color: #0a9a6e;
  background: rgba(18, 173, 125, 0.1);
}

.pt-auth-modal .alert {
  font-size: 12px !important;
  line-height: 18px;
}
.pt-quiz-login {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 580px);
  margin: clamp(20px, 6vw, 64px) auto;
  padding: clamp(24px, 5vw, 48px) 18px;
  border: 1px solid #e9e2f8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(67, 32, 128, 0.1);
  text-align: center;
}
.pt-quiz-login::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Soft purple glow behind the illustration */
  background: radial-gradient(ellipse 70% 55% at 50% 0, #f1e9ff 0, rgba(241, 233, 255, 0) 100%);
}
.pt-quiz-login-art {
  position: relative;
  width: 140px;
  height: 106px;
  margin: 0 auto 18px;
}
.pt-quiz-login-account,
.pt-quiz-login-lock {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 14px;
}
.pt-quiz-login-account {
  inset: 5px 30px 10px 5px;
  border: 2px solid #d3b6ff;
  border-top: 14px solid #a175f3;
  background: #f1e7ff;
  color: #8141df;
  font-size: 36px;
  transform: rotate(-8deg);
}
.pt-quiz-login-lock {
  inset: auto 4px 2px auto;
  width: 61px;
  height: 62px;
  background: linear-gradient(145deg, #9a4cf0, #5718c2);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 8px 18px #6927c84d;
}
.pt-quiz-login h2 {
  margin: 0 0 8px;
  color: #20133f;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
}
.pt-quiz-login p {
  max-width: 400px;
  margin: 0 auto 24px;
  color: #5f5277;
  font-size: 15px;
  line-height: 1.6;
}
.pt-quiz-login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}
.pt-quiz-login .pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 144px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: #6220df;
  color: #fff;
}
.pt-quiz-login .pt-btn:hover {
  background: #5015be;
}
.pt-quiz-login-register {
  min-height: 44px;
  min-width: 144px;
  padding: 0 20px;
  border: 1px solid #d9cbf7;
  border-radius: 10px;
  background: #fff;
  color: #522399;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pt-quiz-login-register:hover { border-color: #b69af0; background: #f7f2ff; }
.pt-auth-modal .modal-dialog {
  width: calc(100% - 30px);
  max-width: 460px;
  margin: 24px auto;
}
.pt-auth-modal .modal-content {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(16, 11, 49, 0.3);
}
.pt-auth-modal .pt-auth-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 22px;
  padding: 20px 0 17px;
  border-bottom: 1px solid #e4e5ee;
}
.pt-auth-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  height: 54px;
  border-radius: 15px;
  color: #FFF;
  background: linear-gradient(135deg, #7144e8, #8437e3);
  box-shadow: 0 12px 24px rgba(101, 55, 220, 0.25);
  font-size: 23px;
}
.pt-auth-header h4 {
  margin: 0 36px 3px 0;
  color: #10133d;
  font-size: 21px;
  font-weight: 700;
}
.pt-auth-header p {
  margin: 0;
  color: #65677e;
  font-size: 12px;
}
.pt-auth-close {
  position: absolute;
  top: 17px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d6d9e7;
  border-radius: 50%;
  color: #5b5d73;
  background: #FFF;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(32, 26, 70, 0.08);
}
.pt-auth-modal .modal-body {
  padding: 18px 22px 22px;
}
.pt-auth-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-bottom: 10px;
  border: 1px solid #cfd3e2;
  border-radius: 13px;
  background: #FFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pt-auth-field:focus-within {
  border-color: #7541e5;
  box-shadow: 0 0 0 3px rgba(117, 65, 229, 0.1);
}
.pt-auth-field > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  height: 38px;
  margin-left: 6px;
  border-radius: 10px;
  color: #4930a4;
  background: #f1edff;
  font-size: 17px;
}
.pt-auth-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  color: #17193e;
  background: transparent;
  font-size: 13px;
}
.pt-auth-field input::placeholder {
  color: #77798d;
}
.pt-password-toggle {
  flex: 0 0 42px;
  height: 46px;
  padding: 0;
  border: 0;
  color: #65677e;
  background: transparent;
  font-size: 16px;
}
.pt-auth-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #304580;
  background: #e6f5ff;
  font-size: 12px;
}
.pt-auth-info i {
  color: #238ddb;
  font-size: 16px;
}
/* GDPR consent on sign-up */
.pt-auth-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 12px; color: #4a4566; font-size: 12.5px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.pt-auth-consent input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: #6220df; }
.pt-auth-consent a { color: #5b21b6; font-weight: 700; text-decoration: underline; }
/* GDPR cookie notice */
.pt-cookie-notice {
  position: fixed;
  inset-inline: 16px;
  inset-block-end: 16px;
  z-index: 1060;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin-inline: auto;
  padding: 14px 16px;
  border: 1px solid #e6def5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px #1f164033;
  animation: pt-menu-in .2s ease-out;
}
.pt-cookie-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: #f3edff; color: #6220df; font-size: 19px; }
.pt-cookie-notice p { flex: 1; margin: 0; color: #4a4566; font-size: 13px; line-height: 1.55; }
.pt-cookie-notice p strong { color: #17183e; }
.pt-cookie-notice p a { color: #5b21b6; font-weight: 700; }
.pt-cookie-actions { display: flex; flex: none; gap: 8px; }
.pt-cookie-actions .pt-btn { height: 38px; margin: 0; padding: 0 16px; line-height: 38px; font-size: 13px; }
.pt-cookie-decline { height: 38px; padding: 0 14px; border: 1px solid #e3d9f6; border-radius: 10px; background: #fff; color: #4a4566; font-size: 13px; font-weight: 600; }
.pt-cookie-decline:hover { background: #f7f3ff; }
@media (max-width: 600px) {
  .pt-cookie-notice { flex-wrap: wrap; }
  .pt-cookie-actions { width: 100%; }
  .pt-cookie-actions > * { flex: 1; }
}
.pt-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: #FFF;
  background: linear-gradient(110deg, #5426dc, #7c36e5 55%, #5d25d8);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 25px rgba(92, 39, 216, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pt-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(92, 39, 216, 0.3);
}

/* Email verification and password reset page (email-verification.php) */
.pt-account-action {
  padding: 56px 16px 72px;
  background: radial-gradient(circle at 50% 0%, #efe8ff 0, transparent 60%);
}
.pt-account-action-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 36px 34px 30px;
  border: 1px solid #ebe5f6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(54, 26, 120, 0.1);
  text-align: center;
}
.pt-account-action-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 20px;
  color: #6220df;
  background: #f0eaff;
  font-size: 25px;
}
.pt-account-action-icon.is-success { color: #13a05b; background: #e6f7ee; }
.pt-account-action-icon.is-danger { color: #d93848; background: #fdecee; }
.pt-account-action-card h1 {
  margin: 0 0 8px;
  color: #1d1638;
  font-size: 24px;
}
.pt-account-action-text {
  margin: 0 auto 24px;
  max-width: 360px;
  color: #6b6386;
  font-size: 14.5px;
  line-height: 1.6;
}
.pt-account-action-form {
  text-align: start;
}
.pt-account-action-form label {
  margin: 0 0 6px;
  color: #32334d;
  font-size: 13px;
  font-weight: 600;
}
.pt-account-action-hint {
  display: block;
  margin-top: 6px;
  color: #7a7393;
  font-size: 12px;
}
.pt-account-action-form .pt-auth-submit {
  margin-top: 6px;
}
.pt-account-action-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.pt-account-action-links .pt-btn {
  width: 100%;
  justify-content: center;
}
.pt-account-action-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b6386;
  font-size: 13.5px;
  font-weight: 600;
}
.pt-account-action-back:hover {
  color: #6220df;
}
[dir="rtl"] .pt-account-action-back i { transform: scaleX(-1); }
@media (max-width: 576px) {
  .pt-account-action { padding: 32px 16px 48px; }
  .pt-account-action-card { padding: 28px 20px 24px; border-radius: 18px; }
}
.pt-auth-modal .pt-social-login {
  margin-top: 20px;
  text-align: center;
}
/* "Or sign up using social media" between two thin lines */
.pt-auth-modal .pt-social-login b {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #6e6788;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.pt-auth-modal .pt-social-login b::before,
.pt-auth-modal .pt-social-login b::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dcd5ec;
}
.pt-auth-forgot {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 12px;
}
.pt-auth-modal .pt-auth-forgot a {
  color: #6220df;
  font-size: 13px;
  font-weight: 600;
}
.pt-auth-modal .pt-auth-forgot a:hover { color: #4c1a9a; text-decoration: underline; }
.pt-auth-modal .pt-social-login a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  margin: 0 5px;
  padding: 0 !important;
  border: 1px solid #d2d5e2;
  border-radius: 10px;
  background: #FFF;
  font-size: 17px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pt-auth-modal .pt-social-login a:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(29, 24, 68, 0.1);
}
.pt-auth-modal .pt-social-login a.facebook { color: #1877f2 !important; }
.pt-auth-modal .pt-social-login a.twitter { color: #111 !important; }
.pt-auth-modal .pt-social-login a.google { color: #e94235 !important; }
.pt-auth-modal .pt-social-login a i {
  margin: 0;
}

.pt-subscribe {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 0;
  padding: 26px 30px;
  color: #FFF;
  background: linear-gradient(110deg, #6d3fe6, #8b52ec 58%, #6a3be4);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(88, 52, 198, 0.16);
}
.pt-subscribe h3 {
  color: #FFF;
  font-size: 22px;
  margin: 0 0 6px;
}
.pt-newsletter-section {
  padding: 36px 0 56px;
  background: #FFF;
}
.pt-newsletter-icon {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  color: #FFF;
  background: rgba(255, 255, 255, 0.16);
  font-size: 24px;
}
.pt-newsletter-copy {
  flex: 1;
}
.pt-newsletter-copy p {
  max-width: 360px;
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}
.pt-subscribe form {
  display: flex;
  align-items: center;
  flex: 0 0 42%;
  height: 54px;
  padding: 5px;
  border-radius: 14px;
  background: #FFF;
}
.pt-subscribe form label {
  display: flex;
  align-items: center;
  flex: 1;
  margin: 0;
  padding-inline-start: 12px;
  color: #635d7b;
}
.pt-subscribe input {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 0;
  background: transparent;
}
.pt-subscribe button {
  height: 42px;
  padding: 0 22px;
  border: 0;
  margin: 0;
  border-radius: 11px;
  color: #FFF;
  background: linear-gradient(135deg, #5834e7, #8736e7);
  box-shadow: none;
  line-height: 42px;
}

.pt-footer {
	position: relative;
	overflow: hidden;
	margin-top: 0;
	padding: 68px 0 24px;
	color: #FFF;
	background:
		radial-gradient(circle at 77% 44%, rgba(126, 51, 218, 0.2), transparent 26%),
		linear-gradient(135deg, #1d0952 0%, #32106c 48%, #210850 100%);
}
.pt-footer:after {
	content: "\f19d";
	position: absolute;
	right: -18px;
	bottom: 76px;
	font-family: "Font Awesome 5 Free";
	font-size: 190px;
	font-weight: 700;
	line-height: 1;
	color: rgba(164, 92, 235, 0.12);
	transform: rotate(12deg);
}
.pt-footer .container {
	position: relative;
	z-index: 1;
}
.pt-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.95fr) minmax(0, 1.25fr);
	gap: 0;
}
.pt-footer-grid > * {
	min-width: 0;
}
.pt-footer-grid > * + * {
	margin-left: 32px;
	padding-left: 32px;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.pt-footer-logo {
	display: inline-block;
	margin-bottom: 24px;
}
.pt-footer-logo img {
	display: block;
	width: auto;
	height: 52px;
	max-width: 100%;
	/* White logo on the dark footer */
	filter: brightness(0) invert(1);
}
.pt-footer .pt-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}
.pt-footer .pt-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
	border-radius: 11px;
	font-size: 18px;
	transition: transform 0.2s ease, background 0.2s ease;
}
.pt-footer .pt-social a:hover {
	color: #FFF;
	background: #7636dc;
	transform: translateY(-3px);
}
.pt-footer-links h3,
.pt-footer-cta h3 {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	margin: 0 0 22px;
	font-size: 19px;
  font-weight: 700;
  color: #FFF;
}
.pt-footer-links h3 span,
.pt-footer-cta h3 span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	height: 44px;
	border-radius: 11px;
	background: linear-gradient(135deg, rgba(123, 54, 213, 0.68), rgba(102, 43, 178, 0.52));
	font-size: 18px;
}
.pt-footer-links a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 38px;
  color: #FFF;
	opacity: 0.84;
	font-size: 14px;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.pt-footer-links a i {
	flex: none;
	font-size: 10px;
}
/* Long page titles stay on one line, cut with "…" (the full title is in the link's tooltip) */
.pt-footer-links a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-footer-links { min-width: 0; }
[dir="rtl"] .pt-footer-links a i { transform: scaleX(-1); }
.pt-footer-links a:hover {
  color: #FFF;
	opacity: 1;
	transform: translateX(4px);
}
.pt-footer-about {
	max-width: 330px;
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
  line-height: 1.7;
}
.pt-footer-cta p {
	max-width: 310px;
	margin: 0 0 26px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	line-height: 1.7;
}
.pt-footer-cta > a {
  display: inline-flex;
  align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 160px;
	height: 48px;
	padding: 0 22px;
	border-radius: 11px;
  color: #2a176c;
  background: #FFF;
  font-weight: 700;
	box-shadow: 0 12px 28px rgba(12, 2, 47, 0.24);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pt-footer-cta > a:hover {
	color: #2a176c;
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(12, 2, 47, 0.32);
}
.pt-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
	margin-top: 50px;
	padding: 24px 6px 0;
	border-top: 1px solid rgba(190, 126, 255, 0.48);
	color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}
.pt-footer-bottom a {
	margin-left: 26px;
	color: rgba(255, 255, 255, 0.9);
}

.pt-planspage {
  background: #f7f7ff;
}
.pt-pricing-hero {
  position: relative;
  padding: 56px 0 118px;
  overflow: hidden;
  text-align: center;
  /* Fades into the page background (#f7f7ff) so no edge shows behind the plan cards */
  background:
    radial-gradient(circle at 50% 0, #fff 0, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #eeebff 0%, #f3f1ff 55%, #f7f7ff 100%);
}
.pt-pricing-hero:before,
.pt-pricing-hero:after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(111, 76, 236, 0.06);
}
.pt-pricing-hero:before { top: -130px; left: -65px; }
.pt-pricing-hero:after { top: 40px; right: -110px; }
.pt-pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  color: #6b2de6;
  background: #eae4ff;
  font-weight: 700;
}
.pt-pricing-hero h1 {
  margin: 16px 0 8px;
  font-size: 38px;
}
.pt-pricing-hero h1 span {
  color: #7a20e8;
}
.pt-pricing-hero > .container > p {
  margin: 0 auto;
  max-width: 820px;
  color: #454066;
  font-size: 15px;
}
.pt-pricing-benefits {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.pt-pricing-benefits span {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
  padding: 0 34px;
  border-left: 1px solid #d8d3ed;
  color: var(--pt-heading);
  font-weight: 700;
}
.pt-pricing-benefits span:first-child {
  border-left: 0;
}
.pt-pricing-benefits i {
  color: #7a20e8;
  font-size: 25px;
}
.pt-pricing-content {
  position: relative;
  margin-top: -82px;
  padding-bottom: 72px;
}
.pt-planspage .pt-plans {
  padding: 0;
}
.pt-plan-period-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 5px;
  gap: 4px;
  border: 1px solid #e2d9f9;
  border-radius: 999px;
  background: #f2ecff;
}
.pt-plan-period-picker button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px clamp(12px, 2vw, 22px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #52328d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.pt-plan-period-picker button:hover { background: #e8ddfc; }
.pt-plan-period-picker button[aria-pressed="true"] {
  background: #6220df;
  color: #fff;
  box-shadow: 0 3px 10px #6220df33;
}
.pt-plan-period-picker button:focus-visible { outline: 2px solid #6220df; outline-offset: 2px; }
.pt-planspage .pt-plans .row {
  align-items: stretch;
}
.pt-planspage .pt-plans .col {
  display: flex;
}
.pt-planspage .pt-plans .col[hidden] { display: none; }
.pt-planspage .pt-plans .pt-plan {
  position: relative;
  width: 100%;
  min-height: 545px;
  margin: 0 10px;
  padding: 26px 28px;
  border: 1px solid #dedcf0;
  border-radius: 20px;
  background: #FFF;
  box-shadow: 0 18px 42px rgba(45, 38, 104, 0.1);
  color: var(--pt-heading);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pt-planspage .pt-plans .pt-plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(45, 38, 104, 0.16);
}
.pt-plan-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pt-plan-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 14px;
  text-align: center;
  color: #6121c9;
  background: #ece6ff;
  font-size: 25px;
}
.pt-plan-heading h5,
.pt-plan-heading p {
  margin: 0;
}
.pt-plan-heading h5 {
  color: inherit;
  font-size: 20px;
}
.pt-plan-heading p {
  color: var(--pt-text);
}
.pt-planspage .pt-plans .pt-plan h6 {
  margin: 20px 0 18px;
  color: inherit;
  font-size: 37px;
}
.pt-planspage .pt-plans .pt-plan h6 b,
.pt-planspage .pt-plans .pt-plan h6 span,
.pt-planspage .pt-plans .pt-plan h6 small {
}
.pt-planspage .pt-plans .pt-plan h6 span {
  margin-right: 3px;
  font-size: 18px;
  vertical-align: 11px;
}
.pt-planspage .pt-plans .pt-plan h6 small {
  margin-left: 7px;
  font-size: 14px;
  font-weight: 500;
}
.pt-planspage .pt-plans .pt-plan form,
.pt-planspage .pt-plans .pt-plan button {
  width: 100%;
}
.pt-planspage .pt-plans .pt-plan button {
  height: 44px;
  padding: 0 22px;
  border: 2px solid #7629e8;
  border-radius: 24px;
  color: #6a20db;
  background: #FFF;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Free plan state (replaces a disabled "Get Started" for signed-in members) */
.pt-plan-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border: 1px dashed #cdbdf3;
  border-radius: 24px;
  color: #5b21d6;
  background: #f7f2ff;
  font-size: 14px;
  font-weight: 700;
}
.pt-plan-state.is-current { border-style: solid; border-color: #b7e6c9; color: #127a42; background: #eafaf0; }
.pt-planspage .pt-plans .pt-plan button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(105, 31, 220, 0.2);
}
.pt-planspage .pt-plans .pt-plan ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.pt-planspage .pt-plans .pt-plan ul li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 33px;
  padding: 5px 0;
  border-bottom: 1px solid #eceaf4;
  color: inherit;
  font-size: 13px;
}
.pt-planspage .pt-plans .pt-plan ul li:last-child {
  border-bottom: 0;
}
.pt-planspage .pt-plans .pt-plan ul li span {
  position: static;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  line-height: 19px;
  color: #11a72f;
  background: transparent;
  font-size: 13px;
  text-align: center;
}
.pt-planspage .pt-plans .pt-plan ul li.is-excluded span {
  color: #9da0b1;
}
.pt-planspage .pt-plans .pt-plan.is-featured {
  border-color: #7629e8;
  color: #FFF;
  background: linear-gradient(155deg, #8c20e9, #4c16b5);
  box-shadow: 0 22px 48px rgba(94, 28, 194, 0.28);
}
.pt-plan.is-featured .pt-plan-icon {
  color: #FFF;
  background: rgba(255, 255, 255, 0.15);
}
.pt-plan.is-featured .pt-plan-heading h5,
.pt-plan.is-featured h6 {
  color: #FFF;
}
.pt-plan.is-featured .pt-plan-heading p {
  color: rgba(255, 255, 255, 0.82);
}
.pt-planspage .pt-plans .pt-plan.is-featured button {
  border-color: #FFF;
  color: #6a20db;
  background: #FFF;
}
.pt-planspage .pt-plans .col:nth-child(3) .pt-plan button {
  border-color: transparent;
  color: #FFF;
  background: linear-gradient(135deg, #6d29e9, #8b20e8);
  box-shadow: 0 9px 20px rgba(105, 31, 220, 0.2);
}
.pt-plan.is-featured ul li {
  border-color: rgba(255, 255, 255, 0.18) !important;
}
.pt-plan.is-featured ul li span {
  color: #79ee39 !important;
}
.pt-plan.is-featured ul li.is-excluded span {
  color: rgba(255, 255, 255, 0.62) !important;
}
.pt-popular-badge {
  position: absolute;
  top: -17px;
  right: 16px;
  padding: 6px 14px;
  border-radius: 18px;
  color: #231553;
  background: #ffc61a;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(149, 96, 0, 0.2);
}
.pt-popular-badge i {
  margin-right: 5px;
}
.pt-planspage .pt-footer {
  margin-top: 0;
}

.bg-b {
  background: #000;
}

.truefalse {
  display: none;
}

.ads1 {
  margin-top: 48px;
}
.ads1 img {
  width: 100%;
}

.ads2 {
  margin-top: 48px;
  position: absolute;
  left: -220px;
  top: 300px;
}
.ads2 img {
  width: 190px;
}

.ads3 {
  margin-top: 48px;
  position: absolute;
  right: -220px;
  top: 300px;
}
.ads3 img {
  width: 190px;
}

.ads4 {
  padding: 24px 6px 0 6px;
}
.ads4 img {
  width: 340px;
}

.ads5 {
  margin-bottom: 48px;
}
.ads5 img {
  width: 100%;
}

.pt-indexpage .pt-header {
  height: 610px;
  background: radial-gradient(circle at 72% 46%, #f2efff 0, #fff 35%);
  border-bottom: 0;
  margin-bottom: 0;
  box-shadow: none;
}
.pt-indexpage .pt-footer {
  margin-top: 0px;
}
.pt-home-stats {
  position: relative;
  z-index: 2;
  margin-top: 0;
}
.pt-home-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 30px;
  border: 1px solid var(--pt-border);
  border-radius: 20px;
  background: #FFF;
  box-shadow: var(--pt-shadow);
}
.pt-stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 54px;
  border-left: 1px solid var(--pt-border);
}
.pt-stat-item:first-child {
  border-left: 0;
}
.pt-stat-item > i {
  color: var(--pt-primary);
  font-size: 31px;
}
.pt-stat-item:nth-child(2) > i { color: #188ee8; }
.pt-stat-item:nth-child(3) > i { color: #7138e7; }
.pt-stat-item:nth-child(4) > i { color: #f0a21a; }
.pt-stat-item strong,
.pt-stat-item span {
  display: block;
}
.pt-stat-item strong {
  color: var(--pt-heading);
  font: 700 22px/1.2 var(--pt-font-sans);
}
.pt-stat-item span {
  color: var(--pt-text);
  font-size: 12px;
}
.pt-who {
  background: linear-gradient(90deg, #f7f5ff, #fbfcff);
  margin-top: 0;
  padding: 72px 0 78px;
  position: relative;
}
.pt-who:before, .pt-who:after {
  content: none;
}
.pt-who .pt-title {
  text-align: center;
  margin-bottom: 46px;
}
.pt-who .pt-title span {
  display: inline-block;
  width: 60px;
  height: 3px;
  border-radius: 20px;
  background: var(--pt-primary);
}
.pt-why-layout {
  display: grid;
  grid-template-columns: 38% 1fr;
  align-items: center;
  gap: 42px;
}
.pt-why-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
}
.pt-why-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pt-why-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 126px;
  padding: 22px;
  border: 1px solid #eceafb;
  border-radius: 18px;
  background: #FFF;
  box-shadow: 0 12px 32px rgba(51, 43, 120, 0.07);
}
.pt-why-card > i {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  line-height: 56px;
  text-align: center;
  border-radius: 16px;
  font-size: 25px;
}
.pt-why-card > i.is-purple { color: #7248e8; background: #eee9ff; }
.pt-why-card > i.is-blue { color: #259be8; background: #e6f5ff; }
.pt-why-card > i.is-orange { color: #f39a24; background: #fff2df; }
.pt-why-card > i.is-green { color: #19b978; background: #e3f9ef; }
.pt-why-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.pt-why-card p {
  margin: 0;
  line-height: 1.55;
}

.pt-discover {
  margin-top: 0;
  padding: 72px 0 78px;
}
.pt-discover .pt-title {
  text-align: center;
  margin-bottom: 46px;
}
.pt-discover .pt-title span {
  display: inline-block;
  width: 60px;
  height: 3px;
  border-radius: 20px;
  background: var(--pt-primary);
}
.pt-discover .pt-item {
  border: 1px solid var(--pt-border);
  box-shadow: 0 16px 40px rgba(41, 37, 100, 0.09);
  padding: 0 16px 14px;
  border-radius: 22px;
  margin-bottom: 30px;
  position: relative;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pt-discover .pt-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 55px rgba(41, 37, 100, 0.15);
}
.pt-discover .pt-item .pt-thumbs {
  width: 100%;
  overflow: hidden;
  display: block;
  height: auto;
  aspect-ratio: 2.72 / 1;
  border-radius: 22px 22px 0 0;
  box-shadow: none;
  margin: 0 -16px;
  width: calc(100% + 32px);
  position: relative;
}
/* The image stops 2px above the white curve's edge, so no line shows under it while the card lifts on hover */
.pt-discover .pt-item .pt-thumbs img {
  width: 100%;
  height: calc(100% - 2px);
  object-fit: cover;
}
.pt-discover .pt-item .pt-fallback-thumb {
  background-image: url("../img/quiz-card-fallbacks-v1.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
}
.pt-discover .col-4:nth-child(1) .pt-fallback-thumb { background-position: 0 0; }
.pt-discover .col-4:nth-child(2) .pt-fallback-thumb { background-position: 50% 0; }
.pt-discover .col-4:nth-child(3) .pt-fallback-thumb { background-position: 100% 0; }
.pt-discover .col-4:nth-child(4) .pt-fallback-thumb { background-position: 0 100%; }
.pt-discover .col-4:nth-child(5) .pt-fallback-thumb { background-position: 50% 100%; }
.pt-discover .col-4:nth-child(6) .pt-fallback-thumb { background-position: 100% 100%; }
.pt-discover .pt-item .pt-thumbs:after {
  content: "";
  position: absolute;
  left: -5%;
  bottom: -19px;
  width: 110%;
  height: 42px;
  border-radius: 50% 50% 0 0 / 65% 65% 0 0;
  background: #FFF;
}
.pt-discover .pt-item .pt-icon {
  background: #6220df;
  display: inline-block;
  width: 58px;
  height: 58px;
  line-height: 52px;
  font-size: 24px;
  border-radius: 50%;
  text-align: center;
  border: 3px solid #FFF;
  box-shadow: 0 8px 20px rgba(31, 28, 83, 0.2);
  margin: 0;
  position: absolute;
  z-index: 2;
  top: -17px;
  left: 20px;
  color: #FFF;
  transition: transform 0.2s ease;
}
.pt-discover .pt-item .pt-icon:hover { color: #fff; text-decoration: none; transform: scale(1.06); }
/* Category name tooltip on the category icon */
.pt-discover .pt-item .pt-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  inset-block-end: calc(100% + 8px);
  inset-inline: -200px;
  z-index: 3;
  width: max-content;
  max-width: 220px;
  margin-inline: auto;
  padding: 5px 10px;
  border-radius: 8px;
  background: #1f1640;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  pointer-events: none;
}
.pt-discover .pt-item .pt-icon[data-tooltip]:is(:hover, :focus-visible)::after { opacity: 1; visibility: visible; }
.pt-discover .pt-item .pt-btn {
  flex: 0 0 auto;
  margin: 0;
  height: 40px;
  line-height: 36px;
  background: linear-gradient(135deg, #6136e8, #792fe9);
  border: 2px solid transparent;
  color: #FFF !important;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 9px 22px rgba(95, 53, 231, 0.24) !important;
  transition: transform 0.2s ease, background 0.2s ease;
}
.pt-discover .pt-item .pt-btn:hover {
  background: var(--pt-primary-dark);
  color: #FFF !important;
  transform: translateY(-2px);
}
/* Title: up to two full lines, then "…" (same height on every card) */
.pt-discover .pt-item h3 {
  display: -webkit-box;
  min-height: calc(2 * 1.3em);
  margin: 0 0 10px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.3;
  text-align: start;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.pt-discover .pt-item h3 a { color: inherit; text-decoration: none; }
.pt-discover .pt-item h3 a:hover { color: var(--pt-primary); }
.pt-discover .pt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* Question / play counts wrap under each other when narrow, so the Start button stays inside the card */
.pt-discover .pt-item p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
}
.pt-discover .pt-item p span { white-space: nowrap; }
.pt-discover .pt-item p:after {
  content: "";
  clear: both;
  display: block;
}
.pt-discover .pt-item p span {
  display: inline-block;
  color: #5f5a70;
  margin-right: 9px;
  margin-left: 0;
}
.pt-discover .pt-item p span:first-of-type {
  margin-left: 0;
}
.pt-discover .pt-item p span i {
  margin-right: 5px;
  color: var(--pt-heading);
}
.pt-discover .pt-item p a {
  color: #777 !important;
}
.pt-discover .pt-item p .pt-thumb {
  overflow: hidden;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #FFF;
  line-height: 0;
}
.pt-discover .pt-item p .pt-thumb img {
  width: 100%;
}
.pt-discover h3 {
  margin: 24px 0 6px 0;
  font-size: 20px;
}

.pt-pagespage .pt-box,
.pt-userdetailspage .pt-box {
  padding: 48px;
}

.pt-quizzespage .pt-footer {
  margin-top: 48px;
}

.pt-userdetailspage .pt-footer {
  margin-top: 48px;
}
.pt-userdetailspage .pt-box {
  width: auto;
  margin: 0;
  padding: 0;
  border: 1px solid #e3def2;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(59, 36, 117, 0.08);
}
.pt-userdetailspage .pt-box #thumbnails {
  flex: 0 0 94px;
  width: 94px;
  height: 94px;
  margin: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #dcd5ed;
  border-radius: 14px;
  background: #f5f3fa;
}
.pt-userdetailspage .pt-box #thumbnails .nophoto {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}
/* While the new photo uploads: dimmed preview with a spinner */
.pt-userdetailspage .pt-box #thumbnails.is-uploading { position: relative; }
.pt-userdetailspage .pt-box #thumbnails.is-uploading .nophoto { opacity: .55; }
.pt-userdetailspage .pt-box #thumbnails.is-uploading::after {
  content: "";
  position: absolute;
  inset: calc(50% - 14px);
  border: 3px solid #d9c9fb;
  border-top-color: #6220df;
  border-radius: 50%;
  animation: pt-spin .8s linear infinite;
}
@keyframes pt-spin { to { transform: rotate(360deg); } }
.pt-profile-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto 42px;
}
.pt-profile-tabs {
  min-height: 520px;
  padding: 12px 10px;
  border: 1px solid #e3def2;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff 0%, #faf8ff 58%, #f0ebff 100%);
  box-shadow: 0 14px 36px rgba(59, 36, 117, 0.08);
}
.pt-profile-tabs button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  margin-bottom: 4px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  color: #38375c;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: start;
  transition: color 0.2s ease, background 0.2s ease;
}
.pt-profile-tabs button i {
  width: 20px;
  color: #7439dd;
  font-size: 14px;
  text-align: center;
}
.pt-profile-tabs button:hover {
  color: #6730cc;
  background: #f3eeff;
}
.pt-profile-tabs button.is-active {
  color: #FFF;
  background: linear-gradient(110deg, #6430d7, #8037e2);
  box-shadow: 0 8px 18px rgba(98, 44, 205, 0.24);
}
.pt-profile-tabs button.is-active i { color: #FFF; }
.pt-profile-card form { margin: 0; }
.pt-profile-panel {
  display: none;
  min-height: 450px;
  padding: 26px 28px 12px;
  animation: ptProfileFade 0.22s ease;
}
.pt-profile-panel.is-active { display: block; }
@keyframes ptProfileFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.pt-profile-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9e5f3;
}
.pt-profile-section-title > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #7136dc;
  background: #eee6ff;
  font-size: 17px;
}
.pt-profile-section-title h2 {
  margin: 0 0 3px;
  color: #17183e;
  font-size: 20px;
}
.pt-profile-section-title p,
.pt-profile-picture p {
  margin: 0;
  color: #6e6a85;
  font-size: 13.5px;
}

/* Plan & Billing (partials/billing.php) */
.pt-billing-plan {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid #e6dcfa;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f2ff 0%, #ffffff 70%);
}
.pt-billing-plan-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #8b3dff, #5b21b6);
  color: #fff;
  font-size: 21px;
  box-shadow: 0 8px 18px #6d28d940;
}
.pt-billing-plan-main small {
  color: #74758b;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pt-billing-plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}
.pt-billing-plan-name strong {
  color: #17183e;
  font-size: 20px;
  font-weight: 700;
}
.pt-billing-plan-price {
  color: #74758b;
  font-size: 12.5px;
}
.pt-billing-plan-price b {
  color: #5b21b6;
  font-size: 15px;
}
.pt-billing-plan-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.pt-billing-plan-facts > div {
  min-width: 130px;
  padding: 10px 14px;
  border: 1px solid #ece6f7;
  border-radius: 12px;
  background: #fff;
}
.pt-billing-plan-facts dt {
  color: #74758b;
  font-size: 11px;
  font-weight: 600;
}
.pt-billing-plan-facts dt i {
  margin-inline-end: 4px;
  color: #7c3aed;
}
.pt-billing-plan-facts dd {
  margin: 2px 0 0;
  color: #17183e;
  font-size: 13.5px;
  font-weight: 700;
}
.pt-billing-plan-facts dd.is-danger {
  color: #c0263b;
}
.pt-billing-upgrade {
  grid-column: 1 / -1;
  justify-self: start;
}
.pt-billing-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.pt-billing-badge.is-success { background: #e3f7ec; color: #11804a; }
.pt-billing-badge.is-warning { background: #fff4dc; color: #a46300; }
.pt-billing-badge.is-danger { background: #fde8eb; color: #c0263b; }
.pt-billing-history h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #17183e;
  font-size: 15px;
  font-weight: 700;
}
.pt-billing-history h3 i {
  color: #7c3aed;
}
.pt-billing-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px dashed #ddd3f2;
  border-radius: 12px;
  color: #74758b;
  font-size: 13px;
}
.pt-billing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #ece6f7;
  border-radius: 14px;
  font-size: 13px;
}
.pt-billing-table th {
  padding: 11px 14px;
  background: #f7f3fe;
  color: #5d5a76;
  font-size: 11.5px;
  font-weight: 700;
  text-align: start;
}
.pt-billing-table td {
  padding: 13px 14px;
  border-top: 1px solid #f0ebf8;
  color: #2b2a45;
  vertical-align: middle;
}
.pt-billing-table tbody tr:hover td {
  background: #fbf9ff;
}
.pt-billing-invoice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid #ddd0f8;
  border-radius: 9px;
  background: #f5f0ff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
}
.pt-billing-invoice:hover {
  background: #6d28d9;
  color: #fff;
  text-decoration: none;
}
@media (max-width: 767px) {
  .pt-billing-plan {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .pt-billing-plan-facts {
    grid-column: 1 / -1;
  }
  .pt-billing-plan-facts > div {
    flex: 1;
  }
  /* Each payment becomes a small card with labels */
  .pt-billing-table,
  .pt-billing-table tbody,
  .pt-billing-table tr,
  .pt-billing-table td {
    display: block;
  }
  .pt-billing-table {
    border: 0;
  }
  .pt-billing-table thead {
    display: none;
  }
  .pt-billing-table tr {
    margin-bottom: 10px;
    border: 1px solid #ece6f7;
    border-radius: 12px;
    overflow: hidden;
  }
  .pt-billing-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 13px;
    border-top: 1px solid #f3eefa;
  }
  .pt-billing-table td:first-child {
    border-top: 0;
  }
  .pt-billing-table td::before {
    content: attr(data-label);
    color: #74758b;
    font-size: 11.5px;
    font-weight: 600;
  }
}
.pt-profile-picture {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.pt-profile-picture h3 {
  margin: 0 0 3px;
  color: #252544;
  font-size: 16px;
}
.pt-profile-picture .file-upload {
  margin-top: 9px;
}
.pt-profile-picture .file-upload .file-select {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  height: auto;
  border: 0;
  color: #6e38d2;
  background: transparent;
  line-height: normal;
  overflow: visible;
}
.pt-profile-picture .file-upload .file-select .file-select-button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #d9cbf7;
  border-radius: 10px;
  color: #5b21d6;
  background: #f6f1ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 36px;
}
.pt-profile-picture .file-upload .file-select:hover .file-select-button { border-color: #b69af0; color: #5b21d6; background: #efe6ff; }
.pt-profile-picture .file-upload .file-select .file-select-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  color: #6e6a85;
  background: #f1eef8;
  font-size: 12px;
  line-height: 28px;
}
.pt-profile-picture .file-upload .file-select input[type=file] {
  position: absolute;
  inset: 0 auto 0 0;
  width: 126px;
  height: 36px;
  cursor: pointer;
  opacity: 0;
}
.pt-profile-card .pt-phone {
  min-height: 40px;
}
.pt-profile-card .pt-phone .pt-flags {
  top: 4px;
  left: 5px;
  width: 112px;
}
.pt-profile-card .pt-phone .inp {
  padding-left: 128px;
}
.pt-profile-card .form-group { margin-bottom: 16px; }
.pt-profile-card label {
  margin: 0 0 6px 1px;
  color: #32334d;
  font-size: 13px;
  font-weight: 600;
}
.pt-profile-card input[type=text],
.pt-profile-card input[type=password],
.pt-profile-card input[type=email],
.pt-profile-card input[type=phone],
.pt-profile-card select {
  height: 44px;
  padding: 8px 13px;
  border: 1px solid #dcd7eb;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pt-profile-card :is(input[type=text], input[type=password], input[type=email], input[type=phone], select):focus {
  border-color: #a98aed;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(98, 32, 223, 0.1);
}
/* Preferences: each group is a row of option cards (radio inputs styled as selectable cards) */
.pt-profile-options { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.pt-profile-options legend {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0 0 10px;
  color: #17183e;
  font-size: 14px;
  font-weight: 700;
}
.pt-profile-options legend i { color: #7c3aed; font-size: 13px; }
.pt-profile-options > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.pt-profile-options .choice + label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #e3ddf2;
  border-radius: 12px;
  background: #fff;
  color: #3b3760;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
/* The radio circle sits at the end of the card */
.pt-profile-options .choice + label::before { order: 2; flex: none; margin: 0 0 0 auto; float: none; }
.pt-profile-options .choice + label i {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 9px;
  background: #f3eefd;
  color: #7c3aed;
  font-size: 13px;
}
.pt-profile-options .choice + label:hover { border-color: #c4b1f3; }
.pt-profile-options .choice:checked + label {
  border-color: #6220df;
  background: #f7f3ff;
  color: #3b1a8f;
  box-shadow: 0 0 0 3px #6220df1a;
}
.pt-profile-options .choice:checked + label i { background: #6220df; color: #fff; }
.pt-profile-options .choice:focus-visible + label { outline: 2px solid #7542ec; outline-offset: 2px; }
.pt-profile-save {
  display: flex;
  justify-content: flex-end;
  padding: 14px 24px 20px;
  border-top: 1px solid #ebe7f4;
}
.pt-profile-save .pt-btn {
  height: 44px;
  margin: 0;
  padding: 0 22px;
  border-radius: 10px;
  background: linear-gradient(110deg, #6330d5, #8036e2);
  box-shadow: 0 6px 14px rgba(97, 43, 202, 0.18);
  font-size: 14px;
  line-height: 44px;
}
@media only screen and (max-width: 760px) {
  .pt-profile-layout { grid-template-columns: 1fr; }
  .pt-profile-tabs {
    display: flex;
    min-height: 0;
    overflow-x: auto;
  }
  .pt-profile-tabs button {
    flex: 0 0 auto;
    width: auto;
    margin: 0 4px 0 0;
    white-space: nowrap;
  }
  .pt-profile-panel { min-height: 0; padding: 18px 16px 8px; }
  .pt-profile-picture { align-items: flex-start; }
  .pt-profile-picture .file-upload .file-select { flex-wrap: wrap; }
  .pt-profile-save { padding: 12px 16px 16px; }
  /* Country, state and city stack instead of sharing one narrow row */
  .pt-profile-card .form-row > .col { flex-basis: 100%; }
}

.bg-v {
  background: #b864f7 !important;
  box-shadow: 0 3px 10px rgba(133, 0, 255, 0.5) !important;
}

.bg-gr {
  background: #2ecc71 !important;
  box-shadow: 0 3px 10px rgba(46, 204, 113, 0.5) !important;
}

.bg-gy {
  background: #7f8fa6 !important;
  box-shadow: 0 3px 10px rgba(127, 143, 166, 0.5) !important;
}

.bg-o {
  background: #ff9f0e !important;
  box-shadow: 0 3px 10px rgba(255, 159, 14, 0.5) !important;
}

.bg-r {
  background: #e74a4a !important;
  box-shadow: 0 3px 10px rgba(231, 74, 74, 0.5) !important;
}

@media only screen and (max-width: 991px) {
  .pt-header .pt-header-top .container {
    max-width: 100%;
    padding: 0 24px;
  }

  .pt-header .pt-header-top .pt-menu ul li {
    padding-left: 9px;
    padding-right: 9px;
  }

  .pt-header .pt-header-content .pt-left h1 {
    font-size: 38px;
  }

  .pt-header .pt-header-content .pt-left p {
    font-size: 15px;
  }

  .pt-how .row,
  .pt-discover .row {
    row-gap: 28px;
  }

  .pt-how .pt-item {
    min-height: 320px;
  }

  .pt-indexpage .pt-header {
    height: 560px;
  }

  .pt-header .pt-header-content .pt-left {
    margin-top: 48px;
  }

  .pt-header .pt-header-content .pt-right {
    margin-top: 55px;
  }

  .pt-home-stats .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .pt-stat-item:nth-child(3) {
    border-left: 0;
  }

  .pt-stat-item:nth-child(n+3) {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--pt-border);
  }

  .pt-why-layout {
    grid-template-columns: 32% 1fr;
    gap: 24px;
  }

  .pt-why-features {
    grid-template-columns: 1fr;
  }

  .pt-how .pt-item h3,
  .pt-how .pt-item p {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pt-discover .col-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .pt-pricing-benefits span {
    min-width: 0;
    padding: 0 20px;
  }

  .pt-planspage .pt-plans .pt-plan {
    margin: 0 5px;
    padding: 24px 20px;
  }

  .pt-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 38px;
  }

  .pt-footer-grid > * + * {
    margin-left: 24px;
    padding-left: 24px;
  }

  .pt-footer-grid > :nth-child(3) {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .pt-footer-grid > :nth-child(n+3) {
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media only screen and (max-width: 600px) {
  .pt-indexpage .pt-header {
    height: auto;
    min-height: 820px;
    padding-bottom: 44px;
  }

  .pt-auth-modal .modal-dialog {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .pt-auth-modal .modal-content {
    max-height: calc(100vh - 24px);
    border-radius: 18px;
  }

  .pt-auth-modal .pt-auth-header {
    gap: 12px;
    margin: 0 18px;
    padding: 17px 0 15px;
  }

  .pt-auth-heading-icon {
    flex-basis: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 20px;
  }

  .pt-auth-header h4 {
    margin-right: 34px;
    font-size: 18px;
  }

  .pt-auth-header p {
    font-size: 12px;
    line-height: 1.45;
  }

  .pt-auth-close {
    top: 15px;
    width: 32px;
    height: 32px;
  }

  .pt-auth-modal .modal-body {
    padding: 16px 18px 20px;
  }

  .pt-auth-field {
    min-height: 46px;
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .pt-quizzespage .col-4 {
    display: block;
    flex: initial;
    max-width: 100%;
  }

  .pt-quizzespage .pt-footer {
    margin-top: 0;
  }


  .pt-footer {
    padding: 52px 0 28px;
    height: initial;
  }

  .pt-footer-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .pt-footer-grid > * + *,
  .pt-footer-grid > :nth-child(3) {
    margin: 30px 0 0;
    padding: 30px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .pt-footer-logo img {
    height: 46px;
  }

  .pt-footer-links h3,
  .pt-footer-cta h3 {
    margin-bottom: 14px;
  }

  .pt-subscribe {
    width: 100%;
    padding: 24px;
    flex-wrap: wrap;
  }

  .pt-newsletter-section {
    padding: 52px 0;
  }

  .pt-newsletter-copy {
    flex: 1 1 calc(100% - 104px);
  }

  .pt-subscribe form {
    flex: 1 1 100%;
  }

  .pt-subscribe input {
    font-size: 14px;
  }

  .pt-planspage .pt-plans .col {
    flex: initial;
    max-width: 100%;
  }

  .pt-pricing-hero {
    padding: 42px 0 102px;
  }

  .pt-pricing-hero h1 {
    font-size: 30px;
  }

  .pt-pricing-benefits {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    max-width: 250px;
    margin: 26px auto 0;
  }

  .pt-pricing-benefits span {
    width: 100%;
    padding: 0;
    border-left: 0;
  }

  .pt-planspage .pt-plans .pt-plan {
    min-height: 0;
    margin: 0;
  }

  .pt-planspage .pt-plans .col:nth-of-type(2) .pt-plan {
    margin: 42px 0;
  }

  .pt-quiz-wrapper.quiz-none .pt-right .pt-questions {
    padding-bottom: 22px;
  }

  .pt-quiz-wrapper.quiz-none .pt-left .pt-left-content .pt-logo {
    flex-direction: column;
  }

  .pt-quiz-wrapper .pt-left .pt-left-content .pt-logo {
    text-align: center;
  }

  .pt-quiz-wrapper .pt-left .pt-left-content .pt-logo .pt-social {
    float: none;
  }

  .pt-quiz-wrapper .pt-left .pt-left-content .pt-content .pt-links {
    text-align: center;
  }

  .pt-quiz-wrapper .pt-left .pt-left-content .pt-content h3 {
    font-size: 24px;
  }

  .pt-quiz-wrapper.quiz-top .pt-right .pt-questions {
    width: 100%;
    padding: 56px 12px;
  }

  .pt-quiz-wrapper .pt-copy {
    width: 100%;
  }

  .pt-quiz-wrapper .pt-left .pt-left-content {
    padding: 24px 0;
  }

  .pt-quiz-wrapper.quiz-top .pt-left .pt-left-content .pt-content {
    padding: 80px 18px 18px;
  }

  .pt-quiz-wrapper .pt-right .pt-questions .pt-title {
    font-size: 24px;
    margin-bottom: 38px;
  }

  .pt-quiz-wrapper:not(.quiz-none) .pt-left,
.pt-quiz-wrapper:not(.quiz-top) .pt-left {
    position: relative;
    height: initial;
    width: initial;
  }
  .pt-quiz-wrapper:not(.quiz-none) .pt-left .pt-left-content .pt-content,
.pt-quiz-wrapper:not(.quiz-top) .pt-left .pt-left-content .pt-content {
    padding: 80px 18px 18px;
  }
  .pt-quiz-wrapper:not(.quiz-none) .pt-right,
.pt-quiz-wrapper:not(.quiz-top) .pt-right {
    position: initial;
    height: initial;
    width: initial;
  }
  .pt-quiz-wrapper:not(.quiz-none) .pt-right #example-async .steps ul,
.pt-quiz-wrapper:not(.quiz-top) .pt-right #example-async .steps ul {
    position: initial;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 50px;
  }
  .pt-quiz-wrapper:not(.quiz-none) .pt-right .pt-questions,
.pt-quiz-wrapper:not(.quiz-top) .pt-right .pt-questions {
    padding: 56px 12px;
    width: 100%;
    margin: 0 auto;
  }
  .pt-quiz-wrapper:not(.quiz-none) .pt-right .pt-questions .count-down,
.pt-quiz-wrapper:not(.quiz-top) .pt-right .pt-questions .count-down {
    margin-top: -10px;
  }
  .pt-quiz-wrapper:not(.quiz-none) .pt-right .pt-results,
.pt-quiz-wrapper:not(.quiz-top) .pt-right .pt-results {
    width: 100%;
  }

  .pt-header .pt-header-content .pt-left {
    margin-top: 42px;
    float: none;
    width: 100%;
    text-align: center;
  }

  .pt-header .pt-header-content .pt-left h1 {
    font-size: 32px;
    line-height: 1.18;
    letter-spacing: -0.6px;
  }

  .pt-header .pt-header-content .pt-left p {
    font-size: 15px;
    line-height: 1.7;
  }

  .pt-header .pt-header-content .pt-right {
    float: none;
    width: 100%;
    text-align: right;
    margin-top: 42px;
    text-align: center;
  }

  .pt-header .pt-header-content .pt-right img {
    width: 84%;
  }

  .pt-hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Three equal columns, icon above label, thin dividers */
  .pt-hero-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 30px;
    text-align: center;
  }
  .pt-hero-features span {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding-inline: 6px;
    font-size: 12.5px;
    line-height: 1.3;
  }
  .pt-hero-features span + span {
    border-inline-start: 1px solid #e3ddf0;
  }
  .pt-hero-features i {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 17px;
  }

  .pt-home-stats {
    margin-top: 0;
    padding: 0 12px;
  }

  .pt-home-stats .container {
    padding: 18px 12px;
  }

  .pt-stat-item {
    gap: 9px;
    padding: 5px;
  }

  .pt-stat-item > i {
    font-size: 23px;
  }

  .pt-stat-item strong {
    font-size: 16px;
  }

  .pt-how {
    position: relative;
    background: #FFF;
  }

  .pt-how .pt-title h2,
.pt-who .pt-title h2,
.pt-discover .pt-title h2 {
    font-size: 28px;
  }

  .pt-how .col {
    flex: initial;
    max-width: 100%;
  }

  .pt-how .pt-item .pt-icon i {
    font-size: 40px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    left: 50%;
    transform: translateX(-50%);
    top: 33px;
  }

  .pt-how .pt-item img {
    width: 150px;
  }

  .pt-how .pt-item {
    margin-bottom: 42px;
    min-height: 0;
    border-radius: 22px;
  }

  .pt-how .pt-item h3 {
    padding-top: 42px;
    font-size: 22px;
  }

  .pt-how .col:last-of-type .pt-item {
    margin-bottom: 0;
  }

  .pt-who {
    margin-top: 0;
    padding: 72px 0;
    padding-bottom: 32px;
  }

  .pt-why-card {
    min-height: 108px;
    padding: 18px;
  }

  .pt-why-layout,
  .pt-why-features {
    grid-template-columns: 1fr;
  }

  .pt-why-visual img {
    max-height: 270px;
  }

  .pt-discover {
    margin-top: 0;
    padding: 76px 0 30px;
  }

  .pt-discover .col-4 {
    flex: initial;
    max-width: 100%;
  }

  .pt-discover .pt-item {
    margin-bottom: 34px;
  }

  /* Icon and text stacked and centered above a full-width form */
  .pt-subscribe {
    flex-direction: column;
    gap: 14px;
    padding: 22px 18px;
    text-align: center;
  }

  .pt-subscribe h3 {
    font-size: 19px;
  }

  .pt-newsletter-icon {
    flex: none;
    width: 50px;
    height: 50px;
    font-size: 21px;
  }

  .pt-newsletter-copy {
    flex: none;
    width: 100%;
  }

  .pt-newsletter-copy p {
    max-width: none;
  }

  .pt-newsletter-section {
    padding: 24px 0 40px;
  }

  .pt-subscribe form {
    flex: none;
    width: 100%;
  }

  .pt-subscribe form {
    height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 6px;
  }

  .pt-subscribe button {
    width: 100%;
  }

  .pt-footer-bottom {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .pt-footer-bottom a {
    margin: 0 10px;
  }

  /* The builder starts below the page hero (a negative margin let the hero hide its header) */
  .pt-box.pt-newquiz {
    margin: 14px 0 28px !important;
    padding: 0;
  }

  .pt-newquizpage .pt-footer {
    margin-top: 120px;
  }

  .pt-newquizpage .pt-subscribe {
    bottom: -258px;
  }

  .pt-newquiz .col-8,
.pt-newquiz .col-4,
.pt-newquiz .form-row .col {
    flex: initial;
    max-width: 100%;
  }

  .pt-newquiz .editor-bgs ul li {
    margin-bottom: 10px;
  }
  .pt-newquiz .editor-bgs ul li:nth-of-type(4), .pt-newquiz .editor-bgs ul li:nth-of-type(5), .pt-newquiz .editor-bgs ul li:nth-of-type(6) {
    margin-bottom: 0;
  }

  .pt-pagespage .pt-box, .pt-userdetailspage .pt-box {
    padding: 15px;
  }

  .pt-userdetailspage .pt-box {
    width: 100%;
    margin-bottom: 28px;
  }

  .pt-statisticspage .col-4,
.pt-statisticspage .col-8 {
    flex: initial;
    max-width: 100%;
  }
}

/* Scoring, Explanations & Leaderboard */
.pt-pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.pt-pass-badge.is-passed {
  background: #e6f9f0;
  color: #0f7647;
  border: 1px solid #a7ebd0;
}
.pt-pass-badge.is-failed {
  background: #fef0f0;
  color: #b42318;
  border: 1px solid #f7c4c4;
}
/* Attempt ended by the quiz timer */
.pt-pass-badge.is-time-up {
  background: #fff6e5;
  color: #a15c00;
  border: 1px solid #f8d9a0;
}
.pt-completion-timeup {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid #f8d9a0;
  border-radius: 12px;
  background: #fff8ea;
  color: #7a4a00;
  font-size: 13.5px;
  line-height: 1.5;
}
.pt-completion-timeup[hidden] { display: none; }
.pt-completion-timeup > i { margin-top: 3px; color: #d98a00; }
/* Time is up: the questions can no longer be changed while the attempt is submitted */
#example-async.is-time-up section.pt-question-step-card { pointer-events: none; opacity: .65; }
.pt-points-badge,
.pt-question-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0eaff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 700;
}
.pt-question-points-pill.is-penalty { background: #ffe3e3; color: #c92a2a; }
.pt-results-summary-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}
.pt-question-explanation {
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 4px solid #7040e8;
  background: #f8f6ff;
  color: #2c234d;
  font-size: 14px;
  line-height: 1.55;
}
.pt-leaderboard-table th {
  border-top: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b6385;
}
.pt-leaderboard-table tr.is-current-attempt {
  background: #f6f2ff;
}
.pt-leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: #f1eff8;
  color: #3f3564;
  font-weight: 700;
  font-size: 13px;
}
.pt-leaderboard-rank.is-gold {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #451a03;
}
.pt-leaderboard-rank.is-silver {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #0f172a;
}
.pt-leaderboard-rank.is-bronze {
  background: linear-gradient(135deg, #fed7aa, #d97706);
  color: #431407;
}

/* Modern Quiz-Taking UI, Results Dashboard & Load More */
.pt-quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f8f7fc;
  border: 1px solid #e7e2f6;
}
.pt-quiz-topbar-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #453a6b;
}
.pt-quiz-topbar-meta i {
  color: #7040e8;
  margin-right: 5px;
}
.pt-quiz-topbar .count-down {
  position: static !important;
  float: none !important;
  width: auto !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.25);
}
.pt-quiz-topbar .count-down span {
  color: inherit;
  font-size: 14px !important;
  font-variant-numeric: tabular-nums;
  line-height: 1 !important;
}
/* Last seconds of the overall timer (set by customs.js) */
.pt-quiz-topbar .count-down.is-warning { background: #f59e0b; color: #fff; box-shadow: 0 6px 14px rgba(245, 158, 11, 0.25); }
.pt-quiz-topbar .count-down.is-danger { background: #dc2626; color: #fff; box-shadow: 0 6px 14px rgba(220, 38, 38, 0.25); }
.pt-question-step-card {
  background: #fff;
  border: 1px solid #e8e3f7;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(42, 31, 94, 0.06);
  margin-bottom: 18px;
}
.pt-question-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.pt-question-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
}
.pt-quiz-wrapper .pt-right .pt-questions .pt-title {
  font-size: 26px;
  line-height: 1.38;
  color: #1c1638;
  margin-bottom: 24px;
}
.choice.custom + label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid #e6e1f6;
  background: #faf9fe;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.choice.custom + label:before {
  display: none;
}
.choice.custom + label:hover {
  border-color: #b79ff7;
  background: #f4f0ff;
  transform: translateY(-1px);
}
.pt-choice-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ece7fb;
  color: #5528c6;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease;
}
.choice.custom + label b {
  color: #261e4b;
  font-size: 16px;
  line-height: 1.45;
}
.choice.custom:checked + label {
  border-color: #6220df;
  background: #f1ebff;
  box-shadow: 0 8px 20px rgba(98, 32, 223, 0.14);
}
.choice.custom:checked + label .pt-choice-key {
  background: #6220df;
  color: #fff;
}
.choice.custom:checked + label b {
  color: #3a0ca3 !important;
}
.pt-quiz-wrapper .pt-right .pt-questions .pt-content .input {
  background: #faf9fe;
  border: 2px solid #e4dff5;
  border-radius: 14px;
  color: #1c1638;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pt-quiz-wrapper .pt-right .pt-questions .pt-content .input:focus {
  border-color: #6220df;
  box-shadow: 0 0 0 4px rgba(98, 32, 223, 0.12);
  outline: none;
}
.pt-quiz-wrapper .pt-right #example-async .actions ul li a[href="#next"],
.pt-quiz-wrapper .pt-right #example-async .actions ul li a[href="#finish"] {
  height: 58px;
  line-height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6220df, #8233eb);
  box-shadow: 0 12px 26px rgba(98, 32, 223, 0.26);
  font-size: 17px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pt-quiz-wrapper .pt-right #example-async .actions ul li a[href="#next"]:hover,
.pt-quiz-wrapper .pt-right #example-async .actions ul li a[href="#finish"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(98, 32, 223, 0.34);
}

/* Quiz completion & detailed review */
.is-quiz-complete :is(.pt-quiz-topbar, .pt-quiz-progress-box, #sendresponses) { display: none; }
.pt-quiz-wrapper.is-quiz-complete .pt-right .pt-questions { padding: clamp(14px, 3vw, 32px); }
.pt-quiz-wrapper.is-quiz-complete .pt-right .pt-quiz-completion:not([hidden]) {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  background: transparent;
}
.pt-quiz-wrapper.is-quiz-complete .pt-right .pt-quiz-completion[hidden] { display: none; }
.pt-quiz-wrapper.is-quiz-complete:not(.quiz-top):not(.is-embed-mode) {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: start;
  gap: 16px;
  padding: 12px;
}
.pt-quiz-wrapper.is-quiz-complete:not(.quiz-top):not(.is-embed-mode) > :is(.pt-left, .pt-right) {
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.pt-quiz-wrapper.is-quiz-complete:not(.quiz-top) > .pt-left { min-height: min(680px, 90vh); border-radius: 18px; overflow: hidden; box-shadow: none; }
.pt-quiz-wrapper.is-quiz-complete:not(.quiz-top) .pt-left .pt-left-content { padding: clamp(15px, 3vw, 40px); }
.pt-quiz-wrapper.is-quiz-complete:not(.quiz-top) .pt-left .pt-left-content .pt-content { padding: clamp(28px, 9vw, 110px) 0 28px; }
body:has(.pt-quiz-wrapper.is-quiz-complete:not(.is-embed-mode)) { background: #f4f0fa; }
.pt-quiz-completion .pt-results-card {
  width: min(100%, 650px);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 22px);
  border-radius: 17px;
  background: linear-gradient(140deg, #fff, #faf8ff);
  border: 1px solid #e8dff7;
  box-shadow: 0 9px 24px #23165414;
}
.pt-completion-hero {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  align-items: center;
  padding: 4px 0 20px;
  border-bottom: 1px solid #eae4f5;
  margin-bottom: 15px;
}
.pt-completion-summary {
  position: relative;
  min-width: 0;
  padding-inline: clamp(14px, 3vw, 32px);
  text-align: start;
}
.pt-completion-summary::before {
  content: "";
  position: absolute;
  inset-block: 12%;
  inset-inline-start: 0;
  border-inline-start: 1px solid #e3daf4;
}
.pt-quiz-completion .pt-results-trophy {
  --completion-ring: #15b452;
  display: grid;
  place-items: center;
  width: clamp(92px, 21vw, 136px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: clamp(7px, 1.6vw, 11px) solid transparent;
  border-radius: 50%;
  color: #d18700;
  background: radial-gradient(circle, #fff4d5 0%, #f0edf6 52%, #fff 54%) padding-box,
    conic-gradient(var(--completion-ring) var(--completion-progress, 0%), #e7e1ef 0) border-box;
}
.pt-quiz-wrapper .pt-right .pt-quiz-completion i { color: inherit; font-size: inherit; }
.pt-quiz-wrapper .pt-right .pt-quiz-completion .pt-results-trophy i {
  font-size: clamp(28px, 6.5vw, 45px);
  text-shadow: 0 2px 0 #fff, 0 4px 9px #b579003d;
}
.pt-quiz-completion.is-failed .pt-results-trophy { --completion-ring: #b765db; color: #6220df; }
.pt-completion-score {
  color: #17112f;
  font-size: clamp(34px, 7vw, 50px);
  font-weight: 700;
  line-height: 1;
}
.pt-completion-summary .pt-results-summary-meta {
  justify-content: space-between;
  gap: 5px 10px;
  margin: 6px 0 9px;
}
.pt-completion-summary .pt-pass-badge.is-passed { background: #caf1d6; border-color: transparent; }
.pt-completion-summary .pt-pass-badge.is-passed::before { content: "✓"; font-size: 14px; }
.pt-quiz-completion h2 { margin: 0 0 4px; color: #17112f; font-size: clamp(19px, 3.5vw, 24px); }
.pt-quiz-wrapper .pt-right .pt-quiz-completion p { margin: 0; color: #625d7b; font-size: 13px; }
.pt-quiz-completion .pt-completion-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: start; }
.pt-quiz-completion .pt-completion-kpis .pt-results-kpi-card { padding: 8px 10px; background: #faf8ff; box-shadow: 0 2px 5px #2a15590a; }
.pt-quiz-completion .pt-completion-kpis .is-blue { background: #e5eaff; color: #376df3; }
.pt-completion-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 19px; }
.pt-quiz-completion .pt-completion-actions .pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  margin: 0;
  border: 1px solid #ddc9fb;
  border-radius: 9px;
  background: #fbf9ff;
  color: #6114d0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 2px 5px #4e24a516;
}
.pt-quiz-completion .pt-completion-actions .pt-btn.is-primary { background: linear-gradient(115deg, #7416df, #5b13d3); border-color: #6417d3; color: #fff; }
.pt-quiz-completion .pt-completion-actions .pt-btn:hover { filter: brightness(.96); }
.pt-quiz-completion .pt-completion-actions .pt-btn:focus-visible { outline: 2px solid #7934e1 !important; outline-offset: 2px; }
.pt-completion-cta { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .pt-quiz-wrapper.is-quiz-complete:not(.quiz-top):not(.is-embed-mode) { grid-template-columns: minmax(0, 1fr); }
  .pt-quiz-wrapper.is-quiz-complete:not(.quiz-top) > .pt-left { min-height: 0; }
}
@media (max-width: 550px) {
  .pt-quiz-completion .pt-completion-kpis, .pt-completion-actions { gap: 6px; }
  .pt-quiz-completion .pt-completion-kpis .pt-results-kpi-card { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .pt-completion-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pt-completion-summary { padding: 0; text-align: center; }
  .pt-completion-summary::before { display: none; }
  .pt-completion-summary .pt-results-summary-meta { justify-content: center; }
  .pt-completion-actions { grid-template-columns: minmax(0, 1fr); }
}
.pt-results-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.pt-results-kpi-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e7e2f6;
  box-shadow: 0 8px 22px rgba(40, 28, 92, 0.05);
}
.pt-results-kpi-icon {
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.pt-results-kpi-icon.is-purple { background: #f1ebff; color: #6220df; }
.pt-results-kpi-icon.is-amber  { background: #fef3c7; color: #d97706; }
.pt-results-kpi-icon.is-blue   { background: #e0f2fe; color: #0284c7; }
.pt-results-kpi-icon.is-green  { background: #dcfce7; color: #15803d; }
.pt-results-kpi-icon.is-red    { background: #fee2e2; color: #b91c1c; }
.pt-results-kpi-card small {
  display: block;
  font-size: 12.5px;
  color: #6e6788;
}
.pt-results-kpi-card strong {
  font-size: 18px;
  font-weight: 700;
  color: #1c1638;
  overflow-wrap: anywhere;
}
.pt-result-question-card {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e7e2f6;
  box-shadow: 0 10px 26px rgba(40, 28, 92, 0.05);
}
.pt-result-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pt-result-question-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #1c1638;
  font-size: 15.5px;
  flex: 1 1 230px;
  overflow-wrap: anywhere;
}
.pt-result-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  flex-shrink: 0;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: #6220df;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.pt-result-answer-box {
  height: 100%;
  min-height: 36px;
  margin: 0;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid #e7e2f6;
  background: #fbfaff;
  box-shadow: none;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.pt-result-answer-box.alert-success,
.pt-result-answer-box.border-success { background: #e3f8eb; border-color: #67c389; color: #155c35; }
.pt-result-answer-box.alert-danger { background: #ffecef; border-color: #f197a6; color: #a12543; }
/* Correct answers hidden by the quiz: the taker's own choice, without right / wrong */
.pt-result-answer-box.is-chosen { background: #f4effe; border-color: #b9a2f2; color: #3b1a8f; }
.pt-result-chosen-label { color: #5b21b6; font-weight: 600; }
.pt-result-answers-hidden {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px dashed #cdbdf3;
  border-radius: 12px;
  background: #faf7ff;
  color: #4a4566;
  font-size: 13px;
}
.pt-result-answers-hidden i { color: #7c3aed; }
.pt-result-answer-box.pt-result-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  text-align: start;
  font-weight: 600;
}
.pt-result-choice-mark {
  flex: 0 0 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1;
}
.pt-result-question-card .pt-question-explanation { border-left: 0; border-inline-start: 4px solid #bd9bf5; background: #f1eafb; font-size: 13.5px; }

/* Results summary: score ring, pass message and correct/incorrect tally */
.pt-result-summary {
  --result-color: #16a34a;
  --result-soft: #e7f8ee;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid #e7e2f6;
  border-radius: 18px;
  background: linear-gradient(120deg, var(--result-soft) 0%, #fff 55%);
  box-shadow: 0 10px 26px rgba(40, 28, 92, .06);
}
.pt-result-summary.is-failed { --result-color: #dc2f45; --result-soft: #fdecef; }
.pt-result-score-ring {
  display: grid;
  place-content: center;
  flex: 0 0 auto;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #fff 78%, transparent 79%),
    conic-gradient(var(--result-color) calc(var(--result-score) * 1%), #ece8f5 0);
  text-align: center;
}
.pt-result-score-ring strong { color: #1c1638; font-size: 30px; font-weight: 800; line-height: 1; }
.pt-result-score-ring small { margin-top: 4px; color: #6e6788; font-size: 12.5px; font-weight: 600; }
.pt-result-summary-copy { min-width: 0; }
.pt-result-summary-copy h2 { margin: 10px 0 4px; color: #1c1638; font-size: clamp(18px, 2vw, 22px); font-weight: 800; line-height: 1.3; }
.pt-result-summary-copy p { margin: 0; color: #4f4766; font-size: 14.5px; }
.pt-result-tally { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.pt-result-tally li,
.pt-result-outcome {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.pt-result-tally strong { font-weight: 800; }
:is(.pt-result-tally li, .pt-result-outcome).is-correct { background: #e3f8eb; color: #146c3a; }
:is(.pt-result-tally li, .pt-result-outcome).is-incorrect { background: #ffecef; color: #a12543; }
:is(.pt-result-tally li, .pt-result-outcome).is-skipped { background: #f1eff6; color: #5b5470; }
.pt-result-outcome { padding: 4px 11px; font-size: 12px; font-weight: 700; }
.pt-result-question-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pt-results-questions-list .pt-result-question-card { border-inline-start-width: 4px; }
.pt-results-questions-list .pt-result-question-card.is-correct { border-inline-start-color: #3fbf73; }
.pt-results-questions-list .pt-result-question-card.is-incorrect { border-inline-start-color: #ec6b80; }
.pt-results-questions-list .pt-result-question-card.is-skipped { border-inline-start-color: #c4bdd6; }
@media (max-width: 576px) {
  .pt-result-summary { flex-direction: column; text-align: center; }
  .pt-result-tally { justify-content: center; }
  .pt-result-score-ring { width: 112px; height: 112px; }
}
.pt-quiz-wrapper.is-results-view:not(.is-embed-mode) {
  display: grid;
  grid-template-columns: clamp(210px, 22%, 270px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.5vw, 32px);
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: 20px 28px;
}
body:has(.pt-quiz-wrapper.is-results-view:not(.is-embed-mode)) {
  background: radial-gradient(ellipse at top left, #eee9fc, transparent 52%), #f7f5fd;
}
.pt-quiz-wrapper.is-results-view:not(.is-embed-mode) > .pt-right {
  position: static;
  width: 100%;
  min-width: 0;
}
.pt-quiz-wrapper.is-results-view:not(.is-embed-mode) .pt-right .pt-questions {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.pt-result-sidebar {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e7e2f6;
  border-radius: 18px;
  background: #fcfaff;
  box-shadow: 0 7px 18px #34236b0d;
}
.pt-result-brand { display: inline-flex; align-items: center; gap: 8px; margin: 3px 8px 14px; color: #1c1638; font-size: 20px; font-weight: 700; }
.pt-result-brand-icon {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: linear-gradient(145deg, #9851f4, #6421d9);
  color: #fff;
  font-size: 15px;
}
.pt-results-points-unit { color: #6e6788; font-size: .65em; font-weight: 600; }
.pt-result-cover { border-radius: 14px; background: linear-gradient(155deg, #f0eafb, #faf7fe); color: #20143e; }
.pt-result-cover-content { display: flex; flex-direction: column; padding: 14px 12px; }
/* Quiz background image, darkened so the white text stays readable */
.pt-result-cover.has-image {
  background: linear-gradient(180deg, #120b2966 0%, #120b29e6 100%), var(--result-cover-image) center / cover no-repeat, #211542;
  color: #fff;
}
.pt-result-cover.has-image .pt-result-cover-content { min-height: 220px; justify-content: flex-end; }
.pt-result-cover.has-image p { color: #ffffffd9; }
.pt-result-cover.has-image .pt-result-category { background: #ffffff2e; color: #fff; }
.pt-result-cover.has-image .pt-result-share { border-top-color: #ffffff33; }
.pt-result-cover.has-image .pt-result-share :is(a, button) { border-color: #ffffff4d; background: #ffffff1f; color: #fff; }
.pt-result-cover h2 { margin: 10px 0 14px; color: inherit; font-size: clamp(20px, 2vw, 24px); line-height: 1.19; font-weight: 700; overflow-wrap: anywhere; }
.pt-result-cover p { margin: 0; color: #453959; font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
.pt-result-category { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 9px; border-radius: 9px; background: #e8dcfa; color: #502298; font-size: 11px; font-weight: 700; }
.pt-result-share { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #e4d9f4; font-size: 12px; }
.pt-result-share > span { margin-inline-end: auto; }
.pt-result-share :is(a, button) { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #e0d4f8; border-radius: 50%; color: #6220df; background: #faf7ff; }
.pt-result-quiz-facts { margin: 8px 0 0; }
.pt-result-quiz-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 7px 4px; border-bottom: 1px solid #eee8f7; font-size: 13px; }
.pt-result-quiz-facts > div:last-child { border-bottom: 0; }
.pt-result-quiz-facts dt { display: flex; align-items: center; gap: 7px; }
.pt-result-quiz-facts dt i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #f1eafb; color: #6220df; }
.pt-result-quiz-facts dd { margin: 0; text-align: end; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.pt-result-review { color: #1c1638; }
.pt-results-header, .pt-result-heading, .pt-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-results-header { justify-content: space-between; margin-bottom: 10px; }
.pt-result-heading h1 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; color: #1c1638; }
.pt-result-review .pt-results-retake-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: auto;
  min-height: 36px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  box-shadow: 0 3px 8px rgba(41, 28, 86, .12);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
.pt-result-review .is-primary { background: #6220df; color: #fff; }
.pt-result-review .pt-results-retake-btn.is-retake { border-color: #b983ff; background: #fcfaff; color: #5623b3; }
.pt-result-review .pt-results-retake-btn.is-share { border-color: #e0d7f4; background: #fff; color: #312052; }
.pt-result-review .pt-results-retake-btn:hover { filter: brightness(.95); }
.is-results-view .pt-result-review, .is-results-view .pt-leaderboard-card {
  padding: 14px;
  border: 1px solid #e7e2f6;
  border-radius: 17px;
  background: #faf9fe;
}
.is-results-view:not(.is-embed-mode) .pt-result-review {
  padding: 0;
  border: 0;
  background: transparent;
}
.is-results-view .pt-results-header { margin-bottom: 14px; }
.is-results-view .pt-result-review > .pt-results-kpi-grid { margin-bottom: 14px !important; }
.is-results-view .pt-result-question-card { margin-bottom: 12px; border-color: #e8dff6; background: #fdfbff; }
.is-results-view .pt-result-question-card .pt-question-explanation { margin-top: 4px !important; }
.is-results-view .pt-leaderboard-card { background: #fcfaff; box-shadow: 0 6px 18px #34236b0e; }
.is-results-view .pt-results-questions-list > article:last-child { margin-bottom: 0; }
.pt-leaderboard-table .pt-leaderboard-status { text-align: end; }

.pt-stats-responses,
.pt-statistics-content .pt-leaderboard-card {
  margin-block: 22px;
  padding: clamp(12px, 2vw, 22px);
  color: #151034;
  background: linear-gradient(145deg, #fcfaff, #f8f6fd);
  border: 1px solid #e3d9fb;
  border-radius: 22px;
  box-shadow: 0 12px 28px #4c26901a;
}
.pt-stats-responses-head,
.pt-stats-responses-title,
.pt-stats-responses-foot {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pt-stats-responses-head { justify-content: space-between; flex-wrap: wrap; }
.pt-stats-responses-title h3,
.pt-statistics-content .pt-leaderboard-header h4 { margin: 0; font-size: 1.4rem; font-weight: 800; color: inherit; }
.pt-stats-responses-title p { margin: 2px 0 0; color: #514568; font-size: .875rem; }
.pt-stats-title-icon,
.pt-statistics-content .pt-leaderboard-header h4 i {
  display: inline-grid;
  place-items: center;
  inline-size: 45px;
  block-size: 45px;
  flex: 0 0 45px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #bc96ff, #8a52ea);
  box-shadow: 0 4px 10px #6633aa24;
}
.pt-statistics-content .pt-leaderboard-header h4 i { background: #fff0cd; color: #ad5900 !important; margin-inline-end: 10px; margin-inline-start: 0; }
.pt-stats-responses .pt-stats-export,
.pt-stats-pagination [aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, #8740f7, #450ab5);
  border: 1px solid transparent;
  box-shadow: 0 4px 9px #5f22bc29;
}
.pt-stats-responses .pt-stats-export { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 12px; font-weight: 700; }
.pt-stats-responses .pt-stats-export:hover { color: #fff; background: #4e16bc; }
.pt-stats-responses-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pt-stats-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pt-stats-filters select { width: auto; min-width: 170px; height: 42px; padding: 0 12px; border: 1px solid #e2dcef; border-radius: 10px; background: #fff; color: #2d244d; font-size: 13px; font-weight: 600; }
.pt-stats-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-block: 18px 22px; }
.pt-stats-metrics .pt-results-kpi-card { padding: 10px 13px; background: #fcfaff; border-radius: 14px; }
.pt-stats-metrics .pt-results-kpi-icon { border-radius: 14px; }
:is(.pt-stats-responses, .pt-statistics-content .pt-leaderboard-card) .table-responsive { border: 1px solid #e9e1f8; border-radius: 12px; }
:is(.pt-stats-responses, .pt-statistics-content .pt-leaderboard-card) .table { margin: 0; color: inherit; background: #fdfcff; font-size: .9rem; }
.pt-stats-responses .table { min-width: 720px; }
.pt-stats-responses .table:has(th:nth-child(13)) { min-width: 1020px; }
.pt-statistics-content .pt-leaderboard-table { min-width: 540px; }
:is(.pt-stats-responses, .pt-statistics-content .pt-leaderboard-card) .table :is(th, td) { padding: 10px 12px; vertical-align: middle; border-color: #eae3f7; line-height: 1.35; white-space: nowrap; }
:is(.pt-stats-responses, .pt-statistics-content .pt-leaderboard-card) .table thead th { background: #f0eafa; color: #201645; border-bottom-width: 1px; font-weight: 750; }
:is(.pt-stats-responses, .pt-statistics-content .pt-leaderboard-card) .table tbody tr:nth-child(even) { background: #f9f6fd; }
:is(.pt-stats-responses, .pt-statistics-content .pt-leaderboard-card) .table tbody tr:hover { background: #eee6fb; }
.pt-stats-responses .table td:first-child a { color: #561bc7; font-weight: 750; }
.pt-stats-responses .table thead a { color: #43139f; text-decoration: underline; white-space: nowrap; }
.pt-stats-date { display: inline-flex; align-items: center; gap: 7px; text-align: start; white-space: nowrap; }
.pt-stats-date small { display: block; }
:is(.pt-stats-responses, .pt-statistics-content .pt-leaderboard-card) .pt-pass-badge { padding: 3px 9px; font-size: .75rem; white-space: nowrap; gap: 4px; }
.pt-stats-responses-foot { justify-content: space-between; flex-wrap: wrap; margin-top: 16px; font-size: .9rem; }
.pt-stats-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.pt-stats-pagination a,
.pt-stats-responses-foot select {
  padding: 6px 9px;
  border: 1px solid #ded1f7;
  border-radius: 9px;
  background-color: #faf6ff;
  color: #342057;
  font: inherit;
  font-weight: 650;
  box-shadow: 0 2px 5px #4223830c;
}
.pt-stats-pagination a { min-inline-size: 32px; text-align: center; }
.pt-stats-pagination a:hover { border-color: #8f62df; }
[dir="rtl"] .pt-stats-pagination i { transform: scaleX(-1); }
@media (max-width: 767px) {
  .pt-stats-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pt-stats-metrics .pt-results-kpi-card { gap: 7px; padding-inline: 8px; }
  .pt-stats-responses-actions,
  .pt-stats-filters { width: 100%; }
  .pt-stats-filters select { flex: 1 1 140px; min-width: 0; }
  .pt-stats-responses .pt-stats-export { justify-content: center; width: 100%; }
}
@media (max-width: 380px) {
  .pt-stats-metrics { grid-template-columns: minmax(0, 1fr); }
}
.is-results-view .pt-leaderboard-header { gap: 8px 12px; }
.is-results-view .pt-quizresults .pt-leaderboard-header h4 { margin-top: 0; line-height: 1.35; }
.is-results-view .pt-leaderboard-card .table-responsive { border: 1px solid #e7e2f6; border-radius: 10px; }
.is-results-view .pt-leaderboard-table { min-width: 475px; }
.is-results-view .pt-leaderboard-table thead { background: #f3effa; }
.is-results-view .pt-leaderboard-table :is(th, td) {
  padding: 8px 10px;
  border-color: #eee8f7;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.4;
}
.is-results-view .pt-leaderboard-table thead th { border-bottom-width: 1px; font-size: 12px; }
.is-results-view .pt-leaderboard-table .pt-pass-badge { padding: 3px 8px; font-size: 11px; }
.pt-result-participant { display: flex; align-items: center; gap: 8px; }
.pt-result-participant > span { display: inline-grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: #ebe6f4; color: #645a7b; }
@media (max-width: 900px) {
  .pt-quiz-wrapper.is-results-view:not(.is-embed-mode) { grid-template-columns: minmax(0, 1fr); }
  .pt-result-cover-content { padding: 16px; }
}
.pt-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6220df, #8334eb);
  color: #fff !important;
  border: 0;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(98, 32, 223, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pt-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(98, 32, 223, 0.32);
}
.pt-load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
@media (max-width: 991px) {
  .pt-results-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 576px) {
  .pt-leaderboard-load-more .pt-load-more-btn {
    width: 100%;
  }
  .pt-results-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pt-results-kpi-card { flex-direction: column; align-items: flex-start; }
  .pt-question-step-card {
    padding: 18px;
  }
}

/* Share Modal, QR Code & Embed Mode */
.pt-share-modal .modal-dialog {
  --share-space: clamp(16px, 3vw, 28px);
  --share-purple: #6120c7;
  --share-border: #ded9ee;
  width: calc(100% - 32px);
  max-width: 920px;
}
.pt-share-modal .modal-content {
  background: #fdfcfe;
  border-radius: 22px;
  overflow: hidden;
}
body:has(.pt-share-modal.show) > .modal-backdrop.show {
  background: #202035;
  opacity: .62;
}
.pt-share-modal .pt-auth-header {
  flex-shrink: 0;
  gap: 17px;
  margin: 0;
  padding: var(--share-space) var(--share-space) 12px;
  padding-inline-end: 66px;
  border: 0;
}
.pt-share-modal .pt-auth-header h4 {
  margin: 0 0 4px;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  color: #17132e;
}
.pt-share-modal .pt-auth-header p { font-size: 14px; color: #554e69; line-height: 1.5; }
.pt-share-modal .pt-auth-heading-icon { flex: 0 0 59px; height: 55px; background: #eee5f8; color: var(--share-purple); box-shadow: 0 4px 10px #331b6b0c; }
.pt-share-modal .pt-auth-close { left: auto; right: auto; inset-inline-end: var(--share-space); top: var(--share-space); }
.pt-share-modal .modal-body { padding: 20px var(--share-space) var(--share-space); }
.pt-share-tabs { gap: 12px; padding-block-end: 11px; margin-block-end: 20px; border-bottom: 1px solid #ddd7ec; }
.pt-share-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 130px;
  min-height: 42px;
  padding: 6px 16px;
  border: 1px solid var(--share-border);
  border-radius: 10px;
  background: #f6f3fa;
  color: #403553;
  font-size: 15px;
  font-weight: 700;
}
.pt-share-tabs button.active { background: var(--share-purple); border-color: var(--share-purple); color: #fff; }
.pt-share-tabs button:focus-visible { box-shadow: 0 0 0 2px #a986ed; }
.pt-share-section + .pt-share-section {
  margin-block-start: 14px;
  padding-block-start: 14px;
  border-top: 1px solid #eee8f7;
}
.pt-share-section-heading, .pt-share-embed-heading { display: flex; align-items: center; gap: 13px; margin-block-end: 12px; }
.pt-share-section-heading > span { display: inline-grid; place-items: center; flex: 0 0 44px; height: 42px; border-radius: 11px; color: var(--share-purple); background: #f1ebfa; font-size: 18px; }
.pt-share-section-heading p { margin: 0; color: #554e69; font-size: 13px; line-height: 1.45; }
.pt-share-embed-heading { justify-content: space-between; flex-wrap: wrap; }
.pt-share-embed-heading .pt-share-section-heading { margin: 0; }
.pt-share-embed-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-share-label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #1d1633;
  margin: 0 0 2px;
}
.pt-share-copy-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.pt-share-copy-row input,
.pt-share-copy-row textarea {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--share-border);
  border-radius: 10px;
  padding: 9px 14px;
  background: #f6f4fb;
  color: #1c1638;
  font-size: 12px;
  font-family: monospace;
}
.pt-share-copy-row input { font: inherit; font-size: 14px; }
.pt-share-copy-row textarea { resize: vertical; }
:is(.pt-share-copy-row, .pt-share-embed-actions) .pt-btn {
  margin: 0;
  height: auto;
  min-height: 42px;
  line-height: 1.35;
  padding: 7px 18px;
  border-radius: 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--share-purple);
  background: linear-gradient(135deg, #6826ce, #5820bd);
  color: #fff;
  box-shadow: 0 3px 8px #37136c18;
}
.pt-share-embed-actions .pt-btn.pt-share-embed-preview {
  border-color: #d8c7ef;
  background: #f9f5ff;
  color: var(--share-purple);
  box-shadow: none;
}
.pt-share-embed-actions .pt-btn.pt-share-embed-preview:hover {
  border-color: #b997e5;
  background: #eee3fc;
}
.pt-share-social-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.pt-share-social-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 8px;
  border: 1px solid var(--share-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1c1638;
  background: #fcfbfe;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.pt-share-social-grid a:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.pt-share-social-grid :is(i, .pt-share-x-icon) { font-size: 19px; line-height: 1; }
.pt-share-social-grid .is-facebook i { color: #1877f2; }
.pt-share-social-grid .is-whatsapp i { color: #079838; }
.pt-share-social-grid .is-telegram i { color: #0284c7; }
.pt-share-social-grid .is-email i { color: #7626d7; }
.pt-share-qr-box {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  padding: 12px clamp(12px, 3vw, 32px);
  margin-block-start: 25px;
  border-radius: 14px;
  background: #f4f1fa;
  border: 1px solid #e8e1f4;
}
@media (max-width: 690px) {
  .pt-share-social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pt-share-qr-preview {
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e3daf8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-share-qr-preview canvas {
  width: 120px;
  height: 120px;
  display: block;
}
.pt-share-qr-info {
  min-width: 0;
  padding-inline-start: clamp(14px, 3vw, 30px);
  border-inline-start: 1px solid #e1d9ef;
}
.pt-share-qr-info strong {
  display: block;
  font-size: 17px;
  color: #1c1638;
  margin-bottom: 4px;
}
.pt-share-qr-info p {
  font-size: 13px;
  color: #5b5378;
  line-height: 1.45;
  margin-bottom: 14px;
}
.pt-share-qr-info .pt-btn {
  min-height: 38px;
  height: auto;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
  margin: 0;
  border: 1px solid var(--share-border);
  background: #fdfbff;
  color: #24183c;
  box-shadow: 0 3px 8px #351a6513;
}
.pt-share-qr-info i { color: var(--share-purple); }
.pt-share-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #6220df;
  box-shadow: 0 10px 14px rgba(0, 0, 0, 0.1);
  font-size: 15px;
  vertical-align: top;
}
.pt-topbar-share-btn {
  height: 34px;
  line-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}
.pt-quiz-wrapper.is-embed-mode .pt-right .pt-questions {
  width: 100%;
  max-width: 720px;
  padding: 20px 16px 32px;
}
.pt-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #21104d, #481c9e);
  color: #fff;
}
.pt-embed-header h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 2px;
}
.pt-embed-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}
.pt-embed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 576px) {
  .pt-share-embed-actions { width: 100%; }
  .pt-share-embed-actions .pt-btn { flex: 1; padding-inline: 10px; white-space: normal; }
  .pt-share-modal .pt-auth-header { gap: 10px; padding: 14px; padding-inline-end: 48px; }
  .pt-share-modal .pt-auth-heading-icon { flex-basis: 40px; height: 40px; font-size: 18px; }
  .pt-share-modal .pt-auth-close { inset-inline-end: 10px; top: 12px; }
  .pt-share-modal .modal-body { padding-block-start: 8px; }
  .pt-share-tabs { gap: 6px; }
  .pt-share-tabs button { min-width: 0; flex: 1; }
  .pt-share-copy-row .pt-btn { padding-inline: 10px; }
  .pt-share-qr-box {
    flex-direction: column;
    text-align: center;
  }
  .pt-share-qr-info {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .pt-share-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pt-lang-switcher {
  position: relative;
}
.pt-lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 11px;
  border-radius: 13px;
  border: 1px solid var(--pt-border);
  background: #fff;
  color: var(--pt-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pt-lang-switcher-btn:hover,
.pt-lang-switcher-btn[aria-expanded="true"] {
  background: #f4effc;
}
.pt-header .pt-header-top .pt-menu .pt-lang-switcher .pt-drop {
  width: 180px;
  right: auto;
  left: auto;
  inset-inline-end: 0;
}
.pt-header .pt-header-top .pt-menu .pt-lang-switcher .pt-drop li a {
  justify-content: flex-start;
  gap: 7px;
}
.pt-lang-switcher .pt-drop li a.is-active {
  background: #f3effd;
  color: #6220df;
  font-weight: 700;
}

/* Quiz Progress Bar & Question Number Navigator */
.pt-quiz-progress-box {
  background: #ffffff;
  border: 1px solid #e7e1f7;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(33, 24, 64, 0.05);
}
.pt-quiz-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #5b5378;
  margin-bottom: 8px;
}
.pt-quiz-progress-head strong {
  color: #1c1638;
  font-size: 13px;
}
.pt-quiz-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #efeafd;
  overflow: hidden;
  margin-bottom: 12px;
}
.pt-quiz-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6220df, #10b981);
  transition: width 0.28s ease;
}
.pt-quiz-step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pt-quiz-step-pill {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #e2dcf3;
  background: #f8f6fd;
  color: #4f466d;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pt-quiz-step-pill:hover {
  border-color: #6220df;
  color: #6220df;
}
.pt-quiz-step-pill.is-answered {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}
.pt-quiz-step-pill.is-current {
  background: #6220df;
  border-color: #6220df;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(98, 32, 223, 0.28);
}
.pt-quiz-step-pill.is-expired {
  background: #ffe3e3;
  border-color: #ffa8a8;
  color: #c92a2a;
}
.pt-question-step-card.is-time-expired .pt-content {
  opacity: 0.68;
  pointer-events: none;
  user-select: none;
}

/* Drag-and-Drop / Matching Question */
.pt-matching-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.pt-matching-prompts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pt-matching-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  background: #faf8fe;
  border: 1px solid #e6def5;
  border-radius: 12px;
  padding: 10px 12px;
}
.pt-matching-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #22193a;
}
.pt-matching-dropzone {
  min-height: 42px;
  border: 2px dashed #c8b8eb;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 13px;
  color: #7c6f97;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pt-matching-dropzone.is-dragover {
  border-color: #6220df;
  background: #f3ecff;
}
.pt-matching-dropzone.is-filled {
  justify-content: space-between;
  gap: 8px;
  border-style: solid;
  border-color: #6220df;
  background: #f5f0ff;
  color: #22193a;
  font-weight: 700;
}
.pt-matching-value { flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: center; }
/* Clicking a filled box empties it; this badge shows that */
.pt-matching-remove {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: #e6dbff;
  color: #5b21b6;
  font-size: 11px;
  transition: background-color .15s, color .15s;
}
.pt-matching-dropzone.is-filled:hover .pt-matching-remove { background: #ffe1e6; color: #c81e3c; }
.pt-matching-pool {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8f6fd;
  border: 1px solid #e6def5;
  border-radius: 12px;
  padding: 12px;
}
.pt-matching-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d9cff0;
  background: #ffffff;
  color: #22193a;
  font-weight: 600;
  font-size: 14px;
  user-select: none;
  cursor: grab;
  transition: all 0.15s ease;
}
.pt-matching-chip.is-selected {
  border-color: #6220df;
  background: #6220df;
  color: #ffffff;
}
.pt-matching-chip.is-used {
  opacity: 0.45;
}
@media (max-width: 767px) {
  .pt-matching-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pt-matching-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Notifications Bell Dropdown */
.pt-notifications-menu {
  position: relative;
}
.pt-notif-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--pt-border);
  background: #fff;
  color: var(--pt-primary);
  font-size: 15px;
  cursor: pointer;
}
.pt-notif-trigger:hover,
.pt-notif-trigger[aria-expanded="true"] { background: #f4effc; }
.pt-lang-switcher-btn:focus-visible,
.pt-notif-trigger:focus-visible { box-shadow: 0 0 0 2px #a986ed; }
.pt-notif-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
/* Look of the menu itself: assets/css/notifications.css */
.pt-header .pt-header-top .pt-menu .pt-notifications-menu .pt-notif-dropdown {
  right: auto;
  left: auto;
  inset-inline-end: 0;
  z-index: 15;
}
/* Mobile header: logo + search + language (guests) or notifications (members) + menu button.
   Everything else moves into the slide-in menu (partials/mobile-menu.php). */
.pt-mobile-toggle,
.pt-mobile-menu {
  display: none;
}
@media (max-width: 900px) {
  .pt-header .pt-header-top .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline: 16px; }
  .pt-header .pt-header-top .pt-logo { float: none; flex: 0 1 auto; min-width: 0; margin: 0; }
  .pt-header .pt-header-top .pt-logo img { max-width: 150px; height: auto; }
  .pt-header .pt-header-top .pt-menu { position: static; float: none; width: auto; }
  .pt-header .pt-header-top .pt-menu > ul { flex-wrap: nowrap; gap: 8px; }
  .pt-header .pt-header-top .pt-menu > ul > li { position: static; padding: 0; }
  .pt-header .pt-header-top .pt-menu > ul > li:not(.pt-search-link):not(.pt-lang-switcher):not(.pt-notifications-menu):not(.pt-mobile-toggle),
  .pt-header .pt-header-top .pt-menu > ul.is-member > li.pt-lang-switcher {
    display: none;
  }
  .pt-mobile-toggle { display: block; order: 3; }
  .pt-header .pt-header-top .pt-menu > ul > li.pt-search-link { order: 1; }
  .pt-header .pt-header-top .pt-menu > ul > li:is(.pt-lang-switcher, .pt-notifications-menu) { order: 2; }
  /* Same square button for search, language, notifications and the menu */
  .pt-header .pt-header-top .pt-menu .pt-public-search summary,
  .pt-header .pt-header-top .pt-menu .pt-lang-switcher-btn,
  .pt-header .pt-header-top .pt-menu .pt-notifications-menu > button,
  .pt-mobile-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding-inline: 10px;
    border: 1px solid #ebe5f6;
    border-radius: 14px;
    background: #fff;
    color: #17163f;
    font-size: 17px;
    box-shadow: 0 6px 16px #2d1b5c14;
  }
  .pt-header .pt-header-top .pt-menu .pt-lang-switcher-btn { font-size: 14px; font-weight: 700; }
  .pt-header .pt-header-top .pt-menu .pt-public-search { position: static; }
  .pt-header .pt-header-top .pt-menu .pt-public-search-panel,
  .pt-header .pt-header-top .pt-menu > ul > li:is(.pt-lang-switcher, .pt-notifications-menu) > .pt-drop.open {
    inset: auto;
    inset-block-start: calc(100% + 8px);
    inset-inline: 16px;
    width: auto;
    z-index: 15;
  }

  .pt-mobile-menu { position: fixed; inset: 0; z-index: 1050; display: block; overflow: hidden; visibility: hidden; }
  .pt-mobile-menu.is-open { visibility: visible; }
  .pt-mobile-menu-backdrop { position: absolute; inset: 0; background: #17123e66; opacity: 0; backdrop-filter: blur(2px); transition: opacity 0.25s; }
  .pt-mobile-menu.is-open .pt-mobile-menu-backdrop { opacity: 1; }
  .pt-mobile-menu-panel {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(86vw, 360px);
    padding: 18px 16px 24px;
    overflow-y: auto;
    border-start-start-radius: 26px;
    border-end-start-radius: 26px;
    background: #fff;
    box-shadow: -18px 0 50px #17123e33;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  [dir="rtl"] .pt-mobile-menu-panel { transform: translateX(-100%); }
  .pt-mobile-menu.is-open .pt-mobile-menu-panel { transform: none; }
  body.pt-mobile-menu-locked { overflow: hidden; }
}

/* Slide-in menu content (only rendered visibly below 900px) */
.pt-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-mobile-menu-language { position: relative; }
.pt-mobile-menu-language summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding-inline: 14px;
  border: 1px solid #ebe5f6;
  border-radius: 14px;
  color: #17163f;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  box-shadow: 0 6px 16px #2d1b5c14;
}
.pt-mobile-menu-language summary::-webkit-details-marker { display: none; }
.pt-mobile-menu-language summary i { font-size: 12px; }
.pt-mobile-menu-language ul {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 2;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  border: 1px solid #ebe5f6;
  border-radius: 14px;
  background: #fff;
  list-style: none;
  box-shadow: 0 16px 36px #2d1b5c26;
}
.pt-mobile-menu-language ul a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; color: #17163f; font-weight: 600; }
.pt-mobile-menu-language ul a.is-active,
.pt-mobile-menu-language ul a:hover { background: #f3edff; color: #5b21b6; text-decoration: none; }
.pt-mobile-menu-close { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; background: #f1ecfd; color: #17163f; font-size: 20px; }
.pt-mobile-menu-nav { display: flex; flex-direction: column; gap: 6px; }
.pt-mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: #17163f;
  font-size: 16px;
  font-weight: 700;
  text-align: start;
}
.pt-mobile-menu-link > i:first-child { width: 26px; color: #6d28d9; font-size: 20px; text-align: center; }
.pt-mobile-menu-link:hover { background: #f7f3ff; color: #17163f; text-decoration: none; }
.pt-mobile-menu-link.is-active { background: #ece4ff; color: #5b21b6; }
.pt-mobile-menu-link.is-danger,
.pt-mobile-menu-link.is-danger > i:first-child { color: #c0263b; }
.pt-mobile-menu-chevron { margin-inline-start: auto; font-size: 14px; transition: transform 0.2s; }
.pt-mobile-menu-group.is-open > .pt-mobile-menu-link { background: #6d28d9; color: #fff; }
.pt-mobile-menu-group.is-open > .pt-mobile-menu-link > i { color: #fff; }
.pt-mobile-menu-group.is-open .pt-mobile-menu-chevron { transform: rotate(180deg); }
.pt-mobile-menu-sublinks { display: none; margin-top: 6px; padding: 8px; border-radius: 16px; background: #f7f3ff; }
.pt-mobile-menu-group.is-open .pt-mobile-menu-sublinks { display: grid; gap: 2px; }
.pt-mobile-menu-sublinks a { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 12px; color: #17163f; font-size: 15px; font-weight: 700; }
.pt-mobile-menu-sublinks a:hover { background: #fff; color: #17163f; text-decoration: none; }
.pt-mobile-menu-sublinks span { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; font-size: 16px; }
.pt-mobile-menu-sublinks .is-purple { background: #8b5cf6; }
.pt-mobile-menu-sublinks .is-orange { background: #f59e0b; }
.pt-mobile-menu-sublinks .is-red { background: #f43f5e; }
.pt-mobile-menu-sublinks .is-green { background: #22c55e; }
.pt-mobile-menu-sublinks .is-blue { background: #0ea5e9; }
.pt-mobile-menu-account { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid #ece6f7; }
.pt-mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  border: 1.5px solid #d9d0ec;
  border-radius: 16px;
  background: #fff;
  color: #17163f;
  font-size: 17px;
  font-weight: 700;
}
.pt-mobile-menu-button:hover { border-color: #6d28d9; color: #17163f; text-decoration: none; }
.pt-mobile-menu-button.is-primary { border-color: transparent; background: #5b21f0; color: #fff; box-shadow: 0 10px 24px #5b21f040; }
.pt-mobile-menu-button.is-primary:hover { background: #4c1ad0; color: #fff; }
.pt-mobile-menu-user { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #f7f3ff; }
.pt-mobile-menu-avatar { position: relative; display: grid; flex: none; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: #e7dcff; color: #7c3aed; }
.pt-mobile-menu-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pt-mobile-menu-user strong { display: block; color: #17163f; font-size: 16px; }
.pt-mobile-menu-user small { color: #6b6883; font-size: 12px; font-weight: 600; }
.pt-mobile-menu-user small i { color: #f59e0b; }

/* Lead Capture & Audio/Video Question Media */
.pt-lead-capture-card {
  background: #ffffff;
  border: 1px solid #e2daf5;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(33, 24, 64, 0.05);
}
.pt-lead-capture-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pt-lead-capture-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f0eafa;
  color: #6220df;
  font-size: 18px;
}
.pt-question-media {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}
.pt-question-audio {
  background: #f8f6fd;
  padding: 10px 14px;
  border: 1px solid #e5def7;
}
.pt-question-video iframe,
.pt-question-video video {
  display: block;
  width: 100%;
  min-height: 315px;
  border: 0;
}

.pt-builder-welcome-fields {
  background: #f8f7fc;
  border: 1px solid #e6e3f4;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 16px;
}
.pt-builder-welcome-fields .form-group:last-child {
  margin-bottom: 0;
}
.pt-quiz-welcome-card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid #fff;
  border-radius: 26px;
  background: radial-gradient(ellipse 46% 15% at 4% 107%, #eee3ff 98%, transparent),
    radial-gradient(ellipse 58% 19% at 100% 111%, #e9d9fc 98%, transparent),
    linear-gradient(145deg, #fff, #f9f6ff);
  box-shadow: 0 15px 44px #45268a26, 0 0 0 6px #eee5ff80;
}
.pt-quiz-welcome-badge {
  background: #f2ecfe;
  border-radius: 999px;
  color: #5421ac;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  margin: 0 auto 18px;
  padding: 5px 12px;
}
.pt-quiz-welcome-title {
  color: #17123e;
  font-size: clamp(18px, 2.7vw, 26px);
  font-weight: 700;
  margin: 0 0 8px;
}
.pt-quiz-welcome-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.pt-quiz-welcome-art {
  display: grid;
  place-items: center;
  width: clamp(56px, 9vw, 72px);
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(145deg, #a553ff, #5811cc);
  color: #fff;
  font-size: clamp(26px, 4vw, 34px);
  box-shadow: 0 10px 22px #7924eb4d, 0 0 0 8px #f1e9ff;
  transform: rotate(-8deg);
}
.pt-quiz-welcome-copy {
  width: 100%;
  max-width: 600px;
  text-align: center;
}
.pt-quiz-welcome-desc {
  color: #5b5873;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}
.pt-quiz-welcome-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}
.pt-quiz-welcome-stat {
  --stat-color: #5a18c8;
  --stat-bg: #f0e8fe;
  --stat-icon-bg: #e7d8ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--stat-bg);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.pt-quiz-welcome-stat:nth-child(2) {
  --stat-bg: #f6effe;
}
.pt-quiz-welcome-stat:nth-child(3) {
  --stat-color: #087750;
  --stat-bg: #e7f8f0;
  --stat-icon-bg: #cdf4e2;
}
.pt-quiz-welcome-stat > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: var(--stat-icon-bg);
  color: var(--stat-color);
}
.pt-quiz-welcome-stat-label {
  color: #6b6883;
  display: block;
  font-size: 11.5px;
}
.pt-quiz-welcome-stat strong {
  color: var(--stat-color);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.pt-quiz-welcome-instructions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-inline-start: 4px solid #af68ff;
  border-radius: 11px;
  background: #f1eafd;
}
.pt-quiz-welcome-instructions li {
  align-items: center;
  color: #46425f;
  display: flex;
  font-size: 13.5px;
  gap: 10px;
}
.pt-quiz-welcome-instructions li i {
  color: #6220e8;
  flex-shrink: 0;
}
.pt-quiz-welcome-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.pt-quiz-welcome-card .pt-quiz-start-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: min(100%, 235px);
  min-height: 46px;
  margin: 0;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #8733f8, #4a0bc6);
  box-shadow: 0 8px 18px #6823df42;
}
.pt-quiz-welcome-card .pt-quiz-start-btn:hover:enabled {
  background: linear-gradient(135deg, #7423dd, #3e08ab);
}
.pt-quiz-welcome-card .pt-lead-capture-inline {
  border-color: #e6d9fa;
  padding: clamp(12px, 2vw, 18px);
}
.pt-quiz-welcome-card .pt-lead-capture-icon {
  flex-shrink: 0;
  background: #6c20e7;
  color: #fff;
  box-shadow: 0 0 0 5px #f0e6ff;
}
.pt-quiz-welcome-card .pt-lead-capture-head h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #20163f;
}
.pt-quiz-welcome-card .form-group label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
}
.pt-quiz-welcome-input {
  position: relative;
}
.pt-quiz-welcome-input > i {
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #6e6481;
  pointer-events: none;
}
.pt-quiz-welcome-input > .form-control {
  min-height: 40px;
  padding-inline-start: 30px;
  border-radius: 9px;
  border-color: #e2d9ef;
  font-size: 13px;
}
@media (max-width: 640px) {
  .pt-quiz-welcome-meta { gap: 7px; }
  .pt-quiz-welcome-stat { padding: 10px 6px; }
  .pt-quiz-welcome-stat > i { width: 28px; height: 28px; font-size: 13px; }
  .pt-quiz-welcome-stat strong { font-size: 14px; }
}
@media (max-width: 360px) {
  .pt-quiz-welcome-meta { grid-template-columns: minmax(0, 1fr); }
}

.pt-circle-flag {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -3px;
  flex-shrink: 0;
}

/*# sourceMappingURL=style.css.map */
.pt-page-content-image { max-width: 100%; height: auto; }
.pt-page-content-video { display: block; width: min(100%, 720px); aspect-ratio: 16 / 9; border: 0; margin-block: 12px; }

/* Static pages (pages.php): readable article card with a list of the other site pages */
.pt-static-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-bottom: 48px;
}
.pt-static-page.has-nav { grid-template-columns: minmax(0, 1fr) 270px; }
.pt-static-page-content {
  min-width: 0;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid #e7e2f6;
  border-radius: 20px;
  color: #3a3456;
  background: #fff;
  box-shadow: 0 12px 30px rgba(40, 28, 92, .06);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.pt-static-page-content > :first-child { margin-top: 0; }
.pt-static-page-content > :last-child { margin-bottom: 0; }
.pt-static-page-content p { margin: 0 0 1.1em; }
.pt-static-page-content :is(h1, h2, h3) { margin: 1.6em 0 .6em; color: #17143a; font-weight: 800; line-height: 1.3; }
.pt-static-page-content h1 { font-size: 26px; }
.pt-static-page-content h2 { font-size: 22px; }
.pt-static-page-content h3 { font-size: 19px; }
.pt-static-page-content strong { color: #1f1a45; }
.pt-static-page-content a { color: #5b21d6; text-decoration: underline; text-underline-offset: 3px; }
.pt-static-page-content :is(ul, ol) { margin: 0 0 1.1em; padding-inline-start: 1.4em; }
.pt-static-page-content li { margin-bottom: .35em; }
.pt-static-page-content li::marker { color: #7c4ae6; }
.pt-static-page-content blockquote {
  margin: 0 0 1.1em;
  padding: 12px 18px;
  border-inline-start: 4px solid #a57ef0;
  border-radius: 0 12px 12px 0;
  color: #40385d;
  background: #f6f2ff;
}
[dir="rtl"] .pt-static-page-content blockquote { border-radius: 12px 0 0 12px; }
.pt-static-page-content pre {
  margin: 0 0 1.1em;
  padding: 14px 16px;
  border-radius: 12px;
  color: #ece8ff;
  background: #1e1840;
  font-size: 14px;
  white-space: pre-wrap;
}
.pt-static-page-content hr { margin: 1.6em 0; border: 0; border-top: 1px solid #ebe6f6; }
.pt-static-page-content .pt-align-center { text-align: center; }
.pt-static-page-content .pt-align-end { text-align: end; }
.pt-static-page-nav {
  position: sticky;
  top: 90px;
  padding: 18px;
  border: 1px solid #e7e2f6;
  border-radius: 18px;
  background: #fcfaff;
  box-shadow: 0 8px 22px rgba(40, 28, 92, .05);
}
.pt-static-page-nav h2 { margin: 0 0 10px; padding-inline: 8px; color: #6e6788; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pt-static-page-nav nav { display: flex; flex-direction: column; gap: 2px; }
.pt-static-page-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2d2650;
  font-size: 14.5px;
  font-weight: 600;
}
.pt-static-page-nav a i { color: #b3a6d4; font-size: 11px; }
.pt-static-page-nav a:hover { color: #5b21d6; background: #f1ebff; }
.pt-static-page-nav a[aria-current="page"] { color: #fff; background: linear-gradient(135deg, #6220df, #8334eb); }
.pt-static-page-nav a[aria-current="page"] i { color: #fff; }
[dir="rtl"] .pt-static-page-nav a i { transform: scaleX(-1); }
@media (max-width: 900px) {
  .pt-static-page.has-nav { grid-template-columns: minmax(0, 1fr); }
  .pt-static-page-nav { position: static; }
}

/* Shared presentation for quizzes with a background image: side, top cover, and full page */
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) {
  --side-quiz-sidebar: clamp(320px, 40vw, 620px);
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 100% 0%, #efe6ff 0%, transparent 60%),
    #f7f4fc;
}
/* isolation keeps the background image (z-index: -1) inside the panel, also on the completion screen */
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) > .pt-left {
  isolation: isolate;
  background: #211542;
}
.pt-quiz-wrapper.quiz-side:not(.is-quiz-complete) > .pt-left {
  position: fixed;
  inset: 0 auto 0 0;
  inset-inline: 0 auto;
  width: var(--side-quiz-sidebar);
  height: auto;
  overflow: auto;
  box-shadow: none;
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-image-left {
  inset: 0;
  z-index: -1;
  background-position: center;
  filter: none;
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-image-left::after {
  inset: 0;
  /* Darker at the top (logo) and bottom (title), lighter in the middle so the image shows */
  background: linear-gradient(180deg, #120b29c7 0%, #120b2933 32%, #120b2940 52%, #120b29f2 100%);
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-left-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(16px, 2.6vw, 36px);
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-left-content .pt-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  height: auto;
  padding-block-end: 14px;
  border-bottom: 1px solid #ffffff33;
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-logo img {
  display: block;
  max-width: 145px;
  height: 32px;
  object-fit: contain;
  /* White logo over the quiz background image */
  filter: brightness(0) invert(1);
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-logo .pt-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 0;
  float: none;
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-logo .pt-social b { font-size: 11px; margin-inline-end: 3px; }
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-logo .pt-social :is(a, button) {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff45;
  border-radius: 8px;
  background: #ffffff22;
  color: #fff;
  font-size: 13px;
  box-shadow: none;
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-logo .pt-social :is(a, button):hover { background: #ffffff42; }
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-left-content .pt-content {
  /* Anchored to the bottom of the side panel, over the darkest part of the gradient */
  margin-block-start: auto;
  padding: clamp(32px, 5vw, 74px) 0 clamp(8px, 1.5vw, 18px);
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-left-content .pt-content h3 {
  margin: 12px 0;
  color: #fff;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px #0b061866;
  overflow-wrap: anywhere;
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-left-content .pt-content p {
  max-width: 46ch;
  margin: 0;
  color: #ece4fb;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-content .pt-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-left .pt-content .pt-links a {
  margin: 0;
  padding: 4px 12px;
  border: 1px solid #ffffff38;
  border-radius: 999px;
  background: #ffffff22;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.pt-quiz-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.pt-quiz-hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid #ffffff30;
  border-radius: 999px;
  background: #ffffff1c;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.pt-quiz-hero-facts i {
  color: #d8c4ff;
}
/* The hero already lists the quiz facts: keep the top bar only to show a countdown */
:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-quiz-topbar-meta {
  display: none;
}
:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-quiz-topbar[data-untimed] {
  display: none;
}
.pt-quiz-wrapper.quiz-side:not(.is-quiz-complete) > .pt-right {
  position: relative;
  inset: auto;
  width: auto;
  margin-inline-start: var(--side-quiz-sidebar);
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-right .pt-questions {
  width: 100%;
  max-width: 850px;
  margin-inline: auto;
  padding: clamp(18px, 3.5vw, 46px) clamp(14px, 3vw, 42px) 34px;
}
:is(.quiz-side, .quiz-top-cover, .quiz-full) :is(.pt-quiz-topbar, .pt-quiz-progress-box, .pt-lead-capture-card) {
  margin-block-end: 14px !important;
  border-color: #e8def7;
  background: #fff;
  box-shadow: 0 5px 18px #3e1f7710;
}
:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-quiz-progress-fill { background: linear-gradient(100deg, #741bdc, #9b53ef); }
:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-quiz-topbar .count-down { background: #f1e7ff; color: #5926ab; box-shadow: none; }
:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-lead-capture-card > .form-row { row-gap: 6px; }
:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-lead-capture-card .form-control {
  min-height: 42px;
  border: 1px solid #e1d8ef;
  border-radius: 9px;
  background: #fcfaff;
  font-size: 13px;
  box-shadow: none;
}
:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-lead-capture-head h4 { color: #20163f; font-size: 17px; font-weight: 700; }
:is(.quiz-side, .quiz-top-cover, .quiz-full) #example-async > .steps { display: none; }
:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-question-step-card { margin-bottom: 12px; padding: clamp(14px, 2.5vw, 25px); }
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-right .pt-question-meta-bar .pt-subtitle {
  padding: 5px 12px;
  border-radius: 999px;
  background: #efe5fc;
  color: #6020c6;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-right .pt-questions .pt-title { font-size: clamp(19px, 2.4vw, 25px); margin-block-end: 18px; }
:is(.quiz-side, .quiz-top-cover, .quiz-full) .choice.custom + label { border-width: 1px; }
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-right #example-async .actions ul { display: flex; gap: 10px; }
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-right #example-async .actions li:not(:first-child) { flex: 1; }
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-right #example-async .actions li:first-child:not(.disabled) { display: block; }
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-right #example-async .actions a[href="#previous"] {
  display: grid;
  place-items: center;
  height: 58px;
  padding: 6px clamp(9px, 2vw, 20px);
  border: 1px solid #dfcdf8;
  border-radius: 14px;
  background: #f4edff;
  color: #6020c6;
  font-weight: 700;
}
.pt-quiz-wrapper:is(.quiz-side, .quiz-top-cover, .quiz-full) .pt-right #example-async .actions a:is([href="#next"], [href="#finish"]) {
  margin: 0;
  box-shadow: 0 5px 15px #5c23ae36;
}
@media (max-width: 850px) {
  .pt-quiz-wrapper.quiz-side:not(.is-quiz-complete) > .pt-left { position: relative; inset: auto; width: 100%; }
  .pt-quiz-wrapper.quiz-side:not(.is-quiz-complete) > .pt-right { margin-inline-start: 0; }
  .pt-quiz-wrapper.quiz-side .pt-left .pt-left-content .pt-content { padding: 22px 0 8px; }
}

/* Top cover: full-width hero banner; the quiz card overlaps its bottom edge */
.pt-quiz-wrapper.quiz-top-cover {
  padding-block-end: 36px;
}
.pt-quiz-wrapper:is(.quiz-top-cover, .quiz-full) .pt-left .pt-logo .pt-social :is(a, button) {
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, background 0.18s ease;
}
.pt-quiz-wrapper:is(.quiz-top-cover, .quiz-full) .pt-left .pt-logo .pt-social :is(a, button):hover {
  transform: translateY(-1px);
}
.pt-quiz-wrapper.quiz-top-cover > .pt-left {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  overflow: hidden;
  isolation: isolate;
  border-end-start-radius: clamp(22px, 3vw, 40px);
  border-end-end-radius: clamp(22px, 3vw, 40px);
  background: #1b1236;
  box-shadow: none;
}
.pt-quiz-wrapper.quiz-top-cover .pt-left .pt-image-left {
  background-size: cover;
}
.pt-quiz-wrapper.quiz-top-cover .pt-left .pt-left-content {
  width: min(920px, 100% - 32px);
  margin-inline: auto;
  padding: clamp(14px, 2.2vw, 24px) 0 clamp(84px, 10vw, 124px);
}
.pt-quiz-wrapper.quiz-top-cover .pt-left .pt-left-content .pt-logo {
  border-bottom-color: #ffffff26;
  padding-block-end: 15px;
}
.pt-quiz-wrapper.quiz-top-cover .pt-left .pt-left-content .pt-content {
  padding: clamp(26px, 4vw, 52px) 0 0;
}
.pt-quiz-wrapper.quiz-top-cover .pt-left .pt-left-content .pt-content h3 {
  max-width: 24ch;
}
.pt-quiz-wrapper.quiz-top-cover .pt-left .pt-left-content .pt-content p {
  max-width: 66ch;
}
.pt-quiz-wrapper.quiz-top-cover .pt-right .pt-questions {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-block-start: calc(-1 * clamp(60px, 7vw, 92px));
  padding: 0 16px 34px;
}
.pt-quiz-wrapper:is(.quiz-top-cover, .quiz-full) :is(.pt-quiz-topbar, .pt-quiz-progress-box, .pt-lead-capture-card) {
  border-radius: 16px;
  border-color: #e6dbf8;
  box-shadow: 0 8px 24px -6px #3b1d7a14;
}
.pt-quiz-wrapper:is(.quiz-top-cover, .quiz-full) .pt-question-step-card {
  border-radius: 18px;
  border: 1px solid #e8dff8;
  box-shadow: 0 12px 30px -10px #2e166418;
}
.pt-quiz-wrapper.quiz-top-cover .pt-quiz-topbar {
  box-shadow: 0 16px 40px -12px #1a0f3a40;
}

/* Full page: the image fills the screen; the quiz sits in a frosted card */
.pt-quiz-wrapper.quiz-full {
  background: #140d2c;
}
.pt-quiz-wrapper.quiz-full > .pt-left {
  position: static;
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
}
.pt-quiz-wrapper.quiz-full .pt-left .pt-image-left {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.pt-quiz-wrapper.quiz-full .pt-left .pt-image-left::after {
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, #140d2c33 0%, #140d2cd9 100%),
    linear-gradient(180deg, #140d2c99 0%, #140d2c4d 40%, #140d2ce6 100%);
}
.pt-quiz-wrapper.quiz-full .pt-left .pt-left-content {
  position: relative;
  z-index: 1;
  width: min(880px, 100% - 32px);
  margin-inline: auto;
  padding: clamp(14px, 2.2vw, 24px) 0 clamp(22px, 3vw, 34px);
}
.pt-quiz-wrapper.quiz-full .pt-left .pt-left-content .pt-logo {
  border-bottom-color: #ffffff26;
}
.pt-quiz-wrapper.quiz-full .pt-left .pt-left-content .pt-content {
  padding: clamp(30px, 5vw, 64px) 0 0;
  text-align: center;
}
.pt-quiz-wrapper.quiz-full .pt-left .pt-content :is(.pt-links, .pt-quiz-hero-facts) {
  justify-content: center;
}
.pt-quiz-wrapper.quiz-full .pt-left .pt-left-content .pt-content :is(h3, p) {
  max-width: 34ch;
  margin-inline: auto;
}
.pt-quiz-wrapper.quiz-full .pt-left .pt-left-content .pt-content p {
  max-width: 60ch;
}
.pt-quiz-wrapper.quiz-full > .pt-right {
  position: relative;
  inset: auto;
  z-index: 1;
  width: auto;
  padding-block-end: 40px;
}
.pt-quiz-wrapper.quiz-full .pt-right .pt-questions {
  width: min(880px, 100% - 32px);
  max-width: none;
  margin-inline: auto;
  padding: clamp(16px, 2.6vw, 30px);
  border: 1px solid #ffffff66;
  border-radius: clamp(20px, 2.4vw, 28px);
  background: #fbf9ffeb;
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 34px 90px -24px #000000a6;
}
.pt-quiz-wrapper.quiz-full .pt-quiz-topbar {
  box-shadow: none;
}
/* The frosted card already frames the content, so the welcome step drops its own frame */
.pt-quiz-wrapper.quiz-full .pt-quiz-welcome-card {
  max-width: none;
  padding: clamp(4px, 1vw, 10px);
  border: 0;
  background: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .pt-quiz-wrapper:is(.quiz-top-cover, .quiz-full) .pt-left .pt-logo img { max-width: 112px; height: 27px; }
  .pt-quiz-wrapper:is(.quiz-top-cover, .quiz-full) .pt-left .pt-logo .pt-social b { display: none; }
  .pt-quiz-wrapper:is(.quiz-top-cover, .quiz-full) .pt-left .pt-logo .pt-social :is(a, button) { width: 27px; height: 27px; }
  .pt-quiz-wrapper.quiz-top-cover .pt-right .pt-questions { padding-inline: 10px; }
  .pt-quiz-wrapper.quiz-full .pt-right .pt-questions { width: calc(100% - 20px); padding: 14px; }
  .pt-quiz-hero-facts li { padding: 6px 11px; font-size: 12px; }
}

/* Statistics page dashboard-style country & breakdown cards */
.pt-order-chart.pt-box {
  border-radius: 16px;
  border: 1px solid #ece8f7;
  box-shadow: 0 10px 30px rgba(41, 37, 100, 0.06);
  background: #fff;
}
.pt-order-chart h3 {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 6px 6px 12px;
  border-bottom: 1px solid #ece8f7;
  color: #17153b;
  font-size: 16px;
  font-weight: 700;
}
.pt-order-chart h3 > i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-inline-end: 8px;
  border-radius: 7px;
  color: #6238e8;
  background: #f1ebfc;
  font-size: 12px;
}
.pt-dashboard-breakdowns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-inline: 0;
}
.pt-dashboard-breakdowns > .col-4 {
  width: auto;
  max-width: none;
  min-width: 0;
  padding-inline: 0;
}
.pt-dashboard-breakdown-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding-top: 8px;
}
.pt-order-chart .pt-dashboard-breakdown-body .pt-echart {
  width: 100%;
  height: 185px;
}
.pt-dashboard-breakdown-list {
  list-style: none;
  max-height: 154px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
}
.pt-dashboard-breakdown-list:focus-visible {
  outline: 2px solid #a986ed;
  outline-offset: 2px;
}
.pt-dashboard-breakdown-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.pt-dashboard-breakdown-metrics {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
  margin-inline-start: auto;
  white-space: nowrap;
}
.pt-dashboard-breakdown-metrics small {
  color: #625d7b;
  font-size: 0.9em;
}
.pt-dashboard-breakdown-marker {
  flex: 0 0 8px;
  height: 8px;
  border-radius: 50%;
}
.pt-country-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  padding-block: 10px 2px;
}
.pt-country-ranking {
  list-style: none;
  margin: 0;
  padding-inline: 10px 20px;
  max-height: 224px;
  overflow-y: auto;
}
.pt-country-ranking li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(30px, 1fr) minmax(36px, auto);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 6px;
  border-bottom: 1px solid #eeebf7;
  color: #29213f;
  font-size: 14px;
}
.pt-country-ranking li:last-child {
  border-bottom: 0;
}
.pt-country-ranking-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.pt-country-ranking-name .pt-circle-flag {
  width: 23px;
  height: 16px;
  border-radius: 3px;
}
.pt-country-ranking-name i {
  color: #655d7c;
}
.pt-country-ranking-count {
  text-align: end;
  white-space: nowrap;
}
.pt-country-ranking li > b {
  text-align: end;
}
.pt-country-ranking progress {
  appearance: none;
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 99px;
  background: #eee8fa;
}
.pt-country-ranking progress::-webkit-progress-bar {
  border-radius: 99px;
  background: #eee8fa;
}
.pt-country-ranking progress::-webkit-progress-value {
  border-radius: 99px;
  background: #7134e7;
}
.pt-country-ranking progress::-moz-progress-bar {
  border-radius: 99px;
  background: #7134e7;
}
.pt-country-map {
  min-width: 0;
  border-inline-start: 1px solid #eeebf7;
}
.pt-dashboard-country .world {
  height: clamp(234px, 22vw, 320px);
}
@media (max-width: 1200px) {
  .pt-dashboard-breakdowns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .pt-country-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .pt-country-ranking {
    padding-inline: 4px;
  }
  /* Country name on its own row, then count, bar and percentage */
  .pt-country-ranking li {
    grid-template-columns: auto minmax(40px, 1fr) auto;
    gap: 6px 10px;
  }
  .pt-country-ranking-name {
    grid-column: 1 / -1;
  }
  .pt-country-map {
    border-inline-start: 0;
    border-block-start: 1px solid #eeebf7;
  }
}
@media (max-width: 700px) {
  .pt-dashboard-breakdowns {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* 404 page (partials/not-found.php) */
.pt-not-found { padding: clamp(48px, 10vw, 110px) 0; }
.pt-not-found-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #ece6f7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 44px #2d1b5c14;
  text-align: center;
}
.pt-not-found-code {
  display: block;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #6220df, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(64px, 14vw, 104px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.pt-not-found-card h1 { margin: 0 0 10px; color: #17183e; font-size: clamp(22px, 4vw, 28px); }
.pt-not-found-card p { margin: 0 auto 24px; max-width: 420px; color: #625d7b; font-size: 15px; line-height: 1.6; }
.pt-not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pt-not-found-actions .pt-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin: 0; padding: 0 20px; line-height: 44px; }
.pt-not-found-actions .pt-btn.pt-btn-light { border: 1px solid #dcd0f4; background: #fff; color: #5422bd; box-shadow: none; }
.pt-not-found-actions .pt-btn.pt-btn-light:hover { background: #f7f2fe; }
