/* Student external exams — modern RTL UI */
.xex-page {
  background: #f4f5f8;
  min-height: 70vh;
  padding: 28px 0 56px;
}

.xex-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.xex-shell-wide {
  max-width: 1180px;
}

.xex-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(108, 92, 231, 0.16), transparent 44%),
    linear-gradient(145deg, #fff 0%, #f7f6ff 100%);
  border: 1px solid rgba(108, 92, 231, 0.14);
  box-shadow: 0 10px 28px rgba(45, 40, 80, 0.05);
}

.xex-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
  gap: 16px;
  align-items: start;
}

.xex-detail-main,
.xex-detail-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.xex-hero-detail {
  align-items: stretch;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.2fr);
}

.xex-hero-detail:not(:has(.xex-hero-media)) {
  grid-template-columns: 1fr;
}

.xex-hero-media {
  min-height: 240px;
  background: #eef0f5;
}

.xex-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.xex-hero-copy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.xex-hero-copy .xex-title { margin: 0; }
.xex-hero-copy .xex-meta { margin-top: 0; padding-top: 0; }
.xex-desc-inline {
  margin: 0;
  max-width: none;
}

.xex-panel-accent {
  border-color: rgba(108, 92, 231, 0.22);
  background:
    radial-gradient(circle at top left, rgba(108, 92, 231, 0.08), transparent 55%),
    #fff;
}

.xex-redeem.xex-redeem-stack,
.xex-redeem-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  grid-template-columns: 1fr;
}

.xex-contact-panel {
  border-color: rgba(18, 140, 126, 0.22);
  background:
    radial-gradient(circle at top left, rgba(18, 140, 126, 0.1), transparent 55%),
    #fff;
}

.xex-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .7fr);
  gap: 18px;
  align-items: center;
}

.xex-contact-panel h2 { margin-bottom: 8px; }
.xex-contact-panel .xex-desc { margin-bottom: 0; }
.xex-contact-panel .xex-desc p:last-child { margin-bottom: 0; }

.xex-contact-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.xex-contact-hint {
  margin: 0;
  color: #8b90a0;
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
}

a.xex-btn.xex-btn-wa,
.xex-btn.xex-btn-wa {
  width: 100%;
  min-height: 48px;
  background: #128c7e !important;
  border-color: #128c7e !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(18, 140, 126, 0.24);
}

a.xex-btn.xex-btn-wa:hover,
.xex-btn.xex-btn-wa:hover {
  background: #0f7668 !important;
  border-color: #0f7668 !important;
  color: #fff !important;
}

@media (max-width: 700px) {
  .xex-contact-grid { grid-template-columns: 1fr; }
}

.xex-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.xex-stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f8fc;
  border: 1px solid #eef0f5;
}

.xex-stats span {
  color: #8b90a0;
  font-size: .84rem;
  font-weight: 700;
}

.xex-stats strong {
  color: #2d2850;
  font-size: .95rem;
  font-weight: 800;
}

.xex-attempt-date {
  color: #8b90a0;
  font-size: .82rem;
  margin-top: 4px;
}

@media (max-width: 992px) {
  .xex-detail-layout { grid-template-columns: 1fr; }
  .xex-hero-detail { grid-template-columns: 1fr; }
  .xex-hero-media img { max-height: 220px; min-height: 180px; }
}

.xex-eyebrow {
  margin: 0 0 8px;
  color: #6c5ce7;
  font-size: .84rem;
  font-weight: 800;
}

.xex-title {
  margin: 0 0 8px;
  color: #2d2850;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.3;
}

.xex-subtitle {
  margin: 0;
  color: #8b90a0;
  font-size: .95rem;
  line-height: 1.6;
  max-width: 36rem;
}

.xex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: .15s ease;
  cursor: pointer;
  background: #fff;
  color: #4b5563;
}

.xex-btn:hover { text-decoration: none; }

.xex-btn-primary {
  background: #6c5ce7;
  color: #fff;
  box-shadow: 0 8px 18px rgba(108, 92, 231, 0.24);
  margin-top: 10px;
}

.xex-btn-primary:hover { background: #5a4bd1; color: #fff; }

.xex-btn-soft {
  background: rgba(108, 92, 231, 0.08);
  color: #6c5ce7;
}

.xex-btn-soft:hover { background: rgba(108, 92, 231, 0.14); color: #5a4bd1; }

.xex-btn-ghost {
  border-color: #e5e7eb;
  background: #fff;
  color: #4b5563;
}

.xex-btn-ghost:hover {
  border-color: rgba(108, 92, 231, 0.3);
  color: #6c5ce7;
}

.xex-btn-danger {
  background: #fff;
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.25);
}

.xex-btn-sm { min-height: 38px; padding: 0 12px; font-size: .84rem; border-radius: 10px; }

.xex-alert-warn {
    background: rgba(245, 158, 11, 0.12);
    color: #9a6700;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.65;
}
.xex-alert-warn i {
    margin-top: 3px;
    flex-shrink: 0;
}

.xex-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 600;
}

.xex-alert-success { background: rgba(16, 185, 129, 0.12); color: #047857; }
.xex-alert-danger { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
.xex-alert-guest {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.xex-alert-guest a {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: underline;
}

.xex-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.xex-level {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-weight: 700;
  font-size: .86rem;
  text-decoration: none;
}

.xex-level:hover { color: #6c5ce7; border-color: rgba(108, 92, 231, 0.35); text-decoration: none; }

.xex-level.is-active {
  background: #6c5ce7;
  border-color: #6c5ce7;
  color: #fff;
}

.xex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 992px) { .xex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .xex-grid { grid-template-columns: 1fr; }
  .xex-hero { padding: 18px 16px; }
}

.xex-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(45, 40, 80, 0.04);
  transition: .18s ease;
  min-height: 100%;
}

a.xex-card:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 92, 231, 0.28);
  box-shadow: 0 14px 28px rgba(45, 40, 80, 0.08);
  text-decoration: none;
  color: inherit;
}

.xex-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.1);
  color: #6c5ce7;
  margin-bottom: 12px;
  font-size: 1.1rem;
  overflow: hidden;
}

.xex-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xex-card h3 {
  margin: 0 0 8px;
  color: #2d2850;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

.xex-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.xex-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f2f6;
  color: #4b5563;
  font-size: .76rem;
  font-weight: 700;
}

.xex-chip.is-price { background: rgba(108, 92, 231, 0.1); color: #5a4bd1; }
.xex-chip.is-free { background: rgba(16, 185, 129, 0.12); color: #059669; }
.xex-chip.is-owned { background: rgba(59, 130, 246, 0.12); color: #2563eb; }

.xex-empty {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px dashed rgba(108, 92, 231, 0.28);
  border-radius: 18px;
}

.xex-empty h3 { margin: 0 0 8px; color: #2d2850; font-weight: 800; }
.xex-empty p { margin: 0; color: #8b90a0; }

.xex-panel {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(45, 40, 80, 0.04);
}

.xex-panel + .xex-panel { margin-top: 14px; }

.xex-panel h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #2d2850;
}

.xex-desc {
  color: #6b7280;
  line-height: 1.7;
  margin: 0 0 16px;
}

.xex-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .86rem;
  font-weight: 700;
  color: #4b5563;
}

.xex-input {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(108, 92, 231, 0.18);
  padding: 10px 12px;
  background: #fafaff;
  color: #2d2850;
}

.xex-input:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
  background: #fff;
}

.xex-redeem {
  flex-direction: column;
  display: flex;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  align-items: stretch;
}

@media (max-width: 560px) {
  .xex-redeem { grid-template-columns: 1fr; }
}

.xex-attempts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.xex-attempt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f8fc;
  border: 1px solid #eef0f5;
}

.xex-back { margin-bottom: 14px; }

.xex-code-panel { margin-bottom: 16px; }
.xex-panel-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: 16px;
  align-items: end;
}
.xex-panel-split h2 {
  margin: 0 0 8px;
  color: #2d2850;
  font-size: 1.05rem;
  font-weight: 800;
}
.xex-code-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.xex-code-summary code {
  background: rgba(108, 92, 231, 0.1);
  color: #5a4bd1;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 800;
}
.xex-owned-section {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eef0f5;
  box-shadow: 0 6px 18px rgba(45, 40, 80, 0.04);
}
.xex-owned-section .xex-review-head { margin-bottom: 12px; }
.xex-purchase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.xex-purchase-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #eef0f5;
  background: #fafaff;
}
.xex-purchase-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}
.xex-purchase-cover {
  width: 110px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid #eef0f5;
  background: #fff;
}
.xex-purchase-copy { min-width: 0; flex: 1; }
.xex-purchase-copy h3 {
  margin: 0 0 10px;
  color: #2d2850;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}
.xex-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.xex-purchase-attempts {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  padding: 12px;
}
@media (max-width: 900px) {
  .xex-panel-split { grid-template-columns: 1fr; }
  .xex-purchase-card { grid-template-columns: 1fr; }
}

/* Take exam */
.xex-shell-take { max-width: 860px; }

.xex-take-top {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #eef0f5;
  box-shadow: 0 8px 24px rgba(45, 40, 80, 0.08);
  backdrop-filter: blur(8px);
  isolation: isolate;
}

.xex-take-title {
  display: block;
  color: #2d2850;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.xex-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.1);
  color: #5a4bd1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.xex-timer.is-low {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.xex-progress {
  color: #6b7280;
  font-size: .88rem;
  font-weight: 700;
}

.xex-progress-sep { margin: 0 4px; color: #c4c9d4; }

.xex-step-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  justify-content: center;
}

.xex-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #d8dbe5;
  cursor: pointer;
  transition: .15s ease;
}

.xex-dot.is-done { background: rgba(108, 92, 231, 0.45); }
.xex-dot.is-active {
  width: 22px;
  background: #6c5ce7;
}

.xex-step.is-hidden { display: none; }

.xex-passage {
  margin-top: 65px;
  background: #fff;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.06);
  background-image:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 46%),
    linear-gradient(#fff, #fff);
}

.xex-passage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  font-size: .78rem;
  font-weight: 800;
}

.xex-passage-body {
  color: #2d2850;
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 600;
}

.xex-passage-body img,
.xex-q-prompt img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.xex-passage-children {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-right: 12px;
}

.xex-passage-children::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.45), rgba(108, 92, 231, 0.35));
}

.xex-q-card {
  margin-top: 60px;
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(45, 40, 80, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.xex-passage-children .xex-q-card {
  margin-top: 0;
}

.xex-q-card.is-answered {
  border-color: rgba(108, 92, 231, 0.28);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.08);
}

.xex-q-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 0;
  background: #f8f8fc;
  border-bottom: 1px solid #eef0f5;
}

.xex-q-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 999px;
  background: #6c5ce7;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
}

.xex-q-card-label {
  color: #6b7280;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.2;
}

.xex-q-card-body {
  padding: 16px;
}

.xex-q-card-solo .xex-q-card-body { padding: 18px; }

.xex-q-prompt {
  color: #2d2850;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.65;
  margin: 0 0 14px;
  overflow: visible;
  clear: both;
}

.xex-q-prompt::after {
  content: '';
  display: table;
  clear: both;
}

.xex-q-prompt p {
  margin: 0 0 .55em;
}
.xex-q-prompt p:last-child { margin-bottom: 0; }
.xex-q-prompt p:empty,
.xex-q-prompt p:blank { display: none; }

.xex-q-prompt img,
.xex-q-prompt table,
.xex-q-prompt iframe,
.xex-q-prompt video {
  max-width: 100% !important;
  height: auto !important;
}

.xex-q-prompt *[style*="float"] {
  float: none !important;
}

.xex-q-image {
  display: block;
  max-width: 100%;
  max-height: 280px;
  width: auto;
  border-radius: 12px;
  margin: 0 0 14px;
  object-fit: contain;
  background: #fafaff;
  border: 1px solid #eef0f5;
}

.xex-choices {
  display: grid;
  gap: 8px;
}

.xex-choices.is-tf {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .xex-choices.is-tf { grid-template-columns: 1fr; }
  .xex-passage-children { padding-right: 8px; }
}

.xex-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fafaff;
  cursor: pointer;
  transition: .15s ease;
  margin: 0;
  min-height: 48px;
}

.xex-choice:hover { border-color: rgba(108, 92, 231, 0.35); background: #fff; }

.xex-choice:has(input:checked),
.xex-choice.is-selected {
  border-color: #6c5ce7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.xex-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.xex-choice-letter {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef0f5;
  color: #4b5563;
  font-size: .82rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.xex-choice:has(input:checked) .xex-choice-letter,
.xex-choice.is-selected .xex-choice-letter {
  background: #6c5ce7;
  color: #fff;
}

.xex-choice-text {
  color: #374151;
  line-height: 1.55;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.xex-choice-text p { margin: 0; }
.xex-choice-image {
  display: block;
  margin-top: 8px;
  max-width: 100%;
  max-height: 140px;
  border-radius: 10px;
}

.xex-nav-q {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 0 4px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(244, 245, 248, 0), #f4f5f8 28%);
}

.xex-score {
  text-align: center;
  padding: 28px 16px;
}

.xex-score-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: #6c5ce7;
  line-height: 1.1;
  margin: 8px 0;
}

.xex-score-label { color: #8b90a0; margin: 0; }

.xex-review-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xex-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.xex-review-head h2 {
  margin: 0;
  color: #2d2850;
  font-size: 1.1rem;
  font-weight: 800;
}

.xex-review-card {
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(45, 40, 80, 0.04);
}

.xex-review-card.is-ok { border-color: rgba(16, 185, 129, 0.35); }
.xex-review-card.is-bad { border-color: rgba(239, 68, 68, 0.28); }

.xex-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.xex-review-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d2850;
}

.xex-review-passage {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.16);
  color: #374151;
  line-height: 1.6;
}

.xex-review-question {
  color: #2d2850;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 12px;
}

.xex-review-question img,
.xex-review-passage img,
.xex-review-value img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.xex-review-answers {
  display: grid;
  gap: 8px;
}

.xex-review-row {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f8fc;
  border: 1px solid #eef0f5;
}

.xex-review-row.is-correct {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
}

.xex-review-row.is-model {
  background: rgba(108, 92, 231, 0.08);
  border-color: rgba(108, 92, 231, 0.2);
}

.xex-review-label {
  display: block;
  margin-bottom: 4px;
  color: #8b90a0;
  font-size: .78rem;
  font-weight: 800;
}

.xex-review-value {
  color: #374151;
  font-weight: 600;
  line-height: 1.55;
}

/* Guest contact card on redeem */
.xex-guest-card {
  margin-top: 4px;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(108, 92, 231, 0.12), transparent 55%),
    linear-gradient(160deg, #fbfaff 0%, #f3f1ff 100%);
  border: 1px solid rgba(108, 92, 231, 0.16);
}

.xex-guest-card__head {
  margin-bottom: 12px;
}

.xex-guest-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.12);
  color: #5a4bd1;
  font-size: .75rem;
  font-weight: 800;
}

.xex-guest-card__head p {
  margin: 0;
  color: #6b7280;
  font-size: .84rem;
  line-height: 1.55;
}

.xex-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6c5ce7 50%), linear-gradient(135deg, #6c5ce7 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1.1em + 2px), calc(100% - 13px) calc(1.1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 2rem;
  /* text-align: left; */
}

.xex-phone-row {
  display: flex;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: stretch;
  direction: ltr; /* dial on the left, number on the right */
}

.xex-dial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #5a4bd1;
  font-weight: 800;
  font-size: .9rem;
  direction: ltr;
}

.xex-phone-row .xex-input {
  direction: ltr;
  text-align: left;
}

.xex-redeem-stack > .xex-btn {
  margin-top: 8px;
}

.xex-guest-card + .xex-field,
.xex-guest-card + .xex-btn {
  margin-top: 16px;
}

.xex-field-hint {
  margin: 6px 0 0;
  color: #9ca3af;
  font-size: .78rem;
}
.xex-select {
  appearance: none;
  -webkit-appearance: none;

  background-image:
      linear-gradient(45deg, transparent 50%, #6c5ce7 50%),
      linear-gradient(135deg, #6c5ce7 50%, transparent 50%);

  background-position:
      calc(100% - 18px) center,
      calc(100% - 13px) center;

  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 2rem;
}

/* RTL Support */
.xex-select {
  background-position:
      13px center,
      18px center;
}