.mockup-ph-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px) clamp(16px, 4vw, 36px) 56px;
}

.mockup-ph-kpi-block {
  margin-bottom: 28px;
}
.mockup-ph-kpi-block > p {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bc6900;
}
.mockup-ph-kpis-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px) {
  .mockup-ph-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .mockup-ph-kpis-4 { grid-template-columns: 1fr; }
}
.mockup-ph-kpis-4 .portal-home-kpi {
  min-height: 100px;
}

.mockup-ph-section-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #23223b;
}
.mockup-ph-platform {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(35, 34, 59, 0.1);
  box-shadow: 0 10px 32px rgba(35, 34, 59, 0.06);
  padding: 20px 22px 22px;
  margin-bottom: 22px;
}
.mockup-ph-platform > p.lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  max-width: 52rem;
}
.mockup-ph-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}
@media (max-width: 720px) {
  .mockup-ph-platform-grid { grid-template-columns: 1fr; }
}
.mockup-ph-platform-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: #23223b;
}
.mockup-ph-platform-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: #64748b;
}

.mockup-ph-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 960px) {
  .mockup-ph-split { grid-template-columns: 1fr; }
}
.mockup-ph-chart-caption {
  margin: 10px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.mockup-ph-chart-x {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mockup-ph-voucher-stats {
  display: grid;
  gap: 12px;
}
.mockup-ph-voucher-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(35, 34, 59, 0.08);
  font-size: 13px;
}
.mockup-ph-voucher-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.mockup-ph-voucher-row span:first-child {
  color: #64748b;
}
.mockup-ph-voucher-row strong {
  color: #23223b;
  font-variant-numeric: tabular-nums;
}
.mockup-ph-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 4px;
}
.mockup-ph-bar > span {
  display: block;
  height: 100%;
  width: 86%;
  border-radius: 999px;
  background: linear-gradient(90deg, #bc6900, #d97706);
}

.mockup-ph-ai {
  border-radius: 16px;
  background: linear-gradient(135deg, #fafbff 0%, #fff 50%, #fffbeb 100%);
  border: 1px solid rgba(79, 70, 229, 0.18);
  box-shadow: 0 10px 32px rgba(35, 34, 59, 0.05);
  padding: 18px 20px;
  margin-top: 12px;
}
.mockup-ph-ai-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mockup-ph-ai-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #23223b;
  letter-spacing: -0.02em;
}
.mockup-ph-ai-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: #4338ca;
  border: 1px solid rgba(79, 70, 229, 0.2);
}
.mockup-ph-ai p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}
.mockup-ph-ai-foot {
  margin-top: 12px;
  font-size: 12px;
  color: #64748b;
}

.mockup-ph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.mockup-ph-voucher-pct {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}
.mockup-ph-voucher-pct strong {
  color: #23223b;
}
.mockup-ph-caption-tight {
  margin-top: 10px;
}
.mockup-ph-voucher-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}
.mockup-ph-voucher-status.is-error {
  color: #b91c1c;
}

/* Voucher scanner — korte uitleg op portal home */
.portal-home-voucher-scan-hint {
  margin-top: 14px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(79, 70, 229, 0.18);
  background: linear-gradient(160deg, rgba(248, 250, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 55%, rgba(239, 246, 255, 0.92) 100%);
  box-shadow: 0 6px 20px rgba(35, 34, 59, 0.06);
}
.portal-home-voucher-scan-hint-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.portal-home-voucher-scan-hint-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #4338ca;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.16);
}
.portal-home-voucher-scan-hint-head h4 {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e293b;
  line-height: 1.25;
}
.portal-home-voucher-scan-hint-steps {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 12.5px;
  line-height: 1.55;
  color: #475569;
}
.portal-home-voucher-scan-hint-steps li {
  margin-bottom: 6px;
}
.portal-home-voucher-scan-hint-steps li:last-child {
  margin-bottom: 0;
}
.portal-home-voucher-scan-hint-links {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.portal-home-voucher-scan-hint-sep {
  color: #94a3b8;
  user-select: none;
}
.portal-home-voucher-scan-hint-link {
  font-weight: 700;
  color: #4338ca;
  text-decoration: none;
  border-bottom: 1px solid rgba(67, 56, 202, 0.35);
}
.portal-home-voucher-scan-hint-link:hover {
  color: #312e81;
  border-bottom-color: rgba(49, 46, 129, 0.55);
}
.portal-home-voucher-scan-hint-link--secondary {
  font-weight: 600;
  color: #64748b;
  border-bottom-color: rgba(100, 116, 139, 0.35);
}
.portal-home-voucher-scan-hint-link--secondary:hover {
  color: #334155;
  border-bottom-color: rgba(51, 65, 85, 0.5);
}

/* Voucher accept page (option 7) */
body.voucher-redeem-standalone {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #f8fafc;
}
body.portal-shell[data-portal-view="voucher-redeem"] .portal-banner {
  display: none;
}
body.portal-shell[data-portal-view="voucher-redeem"] #ikash-va-root {
  display: none !important;
}
body.portal-shell[data-portal-view="voucher-redeem"] .portal-shell-main {
  max-width: 100%;
  padding: 12px clamp(12px, 3vw, 20px) 18px !important;
}
.voucher-redeem-main {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.voucher-redeem-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(430px, 100%);
  max-width: 100%;
  min-height: min(920px, calc(100vh - 80px));
  min-height: min(920px, calc(100dvh - 80px));
  margin: 0 auto;
  border-radius: 34px;
  /* Foto als achtergrond over hele voucher (absolute hero); clip aan afgeronde hoeken */
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
  background: #f8fafc;
  box-sizing: border-box;
}
.voucher-redeem-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
}
.voucher-redeem-photo-bg {
  position: absolute;
  inset: 0;
  background-color: #1a2b4d;
  background-image: url("../images/voucher-redeem-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Geen witte fade meer over de foto */
.voucher-redeem-vignette {
  display: none;
}
.voucher-redeem-logo-top {
  position: absolute;
  top: clamp(12px, 3.5vh, 24px);
  top: clamp(12px, 3.5dvh, 24px);
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  z-index: 3;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 9px 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
.voucher-redeem-logo-top img {
  display: block;
  width: 110px;
  height: auto;
}
.voucher-redeem-logo-fallback {
  color: #1d4ed8;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.03em;
  display: none;
}
/* Tot sessie + eventuele PIN: geen voucherkaart; zelfde grijze sfeer als auth-backdrop, daarna tonen we de kaart. */
.voucher-redeem-screen.voucher-redeem-screen--hide-content .voucher-redeem-center-card {
  display: none !important;
}
.voucher-redeem-screen.voucher-redeem-screen--hide-content .voucher-redeem-photo-bg {
  filter: grayscale(0.25) brightness(0.72);
}
.voucher-redeem-screen.voucher-redeem-screen--hide-content::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 4;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  border-radius: 0;
}

.voucher-redeem-center-card {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  /* Geen width:100% + zijmargins (overflow/scheef); symmetrische gutter + horizontaal centreren */
  --voucher-card-gutter: max(
    clamp(8px, 3vw, 16px),
    env(safe-area-inset-left, 0px),
    env(safe-area-inset-right, 0px)
  );
  width: calc(100% - 2 * var(--voucher-card-gutter));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  backdrop-filter: blur(8px);
  padding: 16px;
  margin-top: auto;
  margin-bottom: calc(30px + max(14px, env(safe-area-inset-bottom, 0px)));
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
}
.voucher-redeem-screen--other-merchant .voucher-redeem-status-head,
.voucher-redeem-screen--other-merchant .voucher-redeem-price-hero,
.voucher-redeem-screen--other-merchant .voucher-redeem-details,
.voucher-redeem-screen--other-merchant .voucher-redeem-inline-status {
  display: none !important;
}
.voucher-redeem-screen--other-merchant .voucher-redeem-btn-primary {
  display: none !important;
}
.voucher-redeem-status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  max-width: 100%;
  box-sizing: border-box;
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: #166534;
  background: rgba(220, 252, 231, 0.92);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 999px;
  min-height: 34px;
  word-break: break-word;
}
.voucher-redeem-status-head.is-error {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.95);
  border-color: rgba(185, 28, 28, 0.24);
}
.voucher-redeem-status-head.is-neutral {
  color: #334155;
  background: rgba(226, 232, 240, 0.95);
  border-color: rgba(100, 116, 139, 0.24);
}
.voucher-redeem-status-head.is-success {
  color: #166534;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.98), rgba(240, 253, 244, 0.94));
  border-color: rgba(22, 163, 74, 0.34);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.16);
}
.voucher-redeem-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.16);
}
.voucher-redeem-status-head.is-error .voucher-redeem-dot {
  background: #dc2626;
  box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.15);
}
.voucher-redeem-status-head.is-neutral .voucher-redeem-dot {
  background: #64748b;
  box-shadow: 0 0 0 8px rgba(100, 116, 139, 0.16);
}
.voucher-redeem-status-head.is-success .voucher-redeem-dot {
  display: none;
}
.voucher-redeem-title-block h1 {
  margin: 0;
  font-size: clamp(1.15rem, 4.2vw + 0.5rem, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
  color: #0f172a;
  padding-inline: 2px;
}
.voucher-redeem-title-block p {
  margin: 6px 0 0;
  text-align: center;
  color: #475569;
  font-size: clamp(0.875rem, 2.5vw + 0.4rem, 1rem);
  line-height: 1.35;
  word-break: break-word;
}
.voucher-redeem-price-hero {
  text-align: center;
  margin: 6px 0 2px;
}
.voucher-redeem-price-hero-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}
.voucher-redeem-price-hero-value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.voucher-redeem-details {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}
.voucher-redeem-item {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 10px 11px;
  display: grid;
  gap: 4px;
}
.voucher-redeem-k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1d4ed8;
  font-weight: 700;
}
.voucher-redeem-v {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}
.voucher-redeem-inline-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-align: center;
}
.voucher-redeem-inline-status.is-error {
  color: #991b1b;
}
.voucher-redeem-actions {
  display: grid;
  gap: 9px;
}
.voucher-redeem-btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  padding: 10px 14px;
  font-size: clamp(0.9rem, 2.2vw + 0.35rem, 1rem);
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.voucher-redeem-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.voucher-redeem-btn-primary {
  color: #eff6ff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.34);
}
.voucher-redeem-btn-secondary {
  color: #1e293b;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.92);
}
.voucher-redeem-btn-secondary.voucher-redeem-btn-close {
  color: #eff6ff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--ik-primary-grad, linear-gradient(135deg, #2563eb, #3b82f6));
  box-shadow: var(--ik-primary-shadow, 0 12px 24px rgba(37, 99, 235, 0.34));
}
.voucher-redeem-pin-panel {
  display: grid;
  gap: 10px;
  width: 100%;
}
.voucher-redeem-pin-label {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.voucher-redeem-pin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.voucher-redeem-pin-input {
  width: 120px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.15em;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.95);
}
.voucher-redeem-pin-hint {
  min-height: 1.2em;
}
body[data-voucher-scan="1"] {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f8fafc;
  overflow-x: hidden;
}
html:has(body[data-voucher-scan="1"]) {
  overflow-x: hidden;
}
/* Flex alleen op wrapper: #ikash-message-modal blijft direct child van body (geen flex-item). */
body[data-voucher-scan="1"] .voucher-scan-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
}
body[data-voucher-scan="1"] .voucher-scan-page .voucher-redeem-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body[data-voucher-scan="1"] .voucher-scan-page .voucher-redeem-screen {
  flex: 1;
  min-height: 0;
}
@media (max-width: 768px) {
  .voucher-redeem-screen {
    width: min(387px, calc(100% - 16px));
    min-height: min(828px, calc(100vh - 72px));
    min-height: min(828px, calc(100dvh - 72px));
  }
  body[data-voucher-scan="1"] .voucher-scan-page .voucher-redeem-screen {
    min-height: 0;
  }
}
@media (max-width: 480px) {
  body.portal-shell[data-portal-view="voucher-redeem"] .portal-shell-main {
    padding: 8px 8px 14px !important;
  }
  .voucher-redeem-screen {
    border-radius: 24px;
    width: min(387px, calc(100% - 16px));
    min-height: min(792px, calc(100vh - 64px));
    min-height: min(792px, calc(100dvh - 64px));
  }
  body[data-voucher-scan="1"]:not(.portal-shell) .voucher-scan-page .voucher-redeem-screen {
    min-height: 0;
  }
  .voucher-redeem-logo-top {
    padding: 7px 10px;
  }
  .voucher-redeem-logo-top img {
    width: 96px;
  }
  .voucher-redeem-center-card {
    --voucher-card-gutter: max(8px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    width: calc(100% - 2 * var(--voucher-card-gutter));
    padding: 12px;
    gap: 10px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  .voucher-redeem-logo-top img {
    width: 88px;
  }
  .voucher-redeem-center-card {
    --voucher-card-gutter: max(6px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    width: calc(100% - 2 * var(--voucher-card-gutter));
    padding: 10px 12px;
    gap: 8px;
    border-radius: 18px;
  }
  .voucher-redeem-btn {
    min-height: 46px;
    font-size: 15px;
  }
  .voucher-redeem-title-block h1 {
    font-size: 20px;
  }
  .voucher-redeem-title-block p {
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  html:has(body.portal-shell[data-portal-view="voucher-redeem"]),
  body.portal-shell[data-portal-view="voucher-redeem"] {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }
  body.portal-shell[data-portal-view="voucher-redeem"] .ikash-header,
  body.portal-shell[data-portal-view="voucher-redeem"] .city-banner,
  body.portal-shell[data-portal-view="voucher-redeem"] .ikash-site-footer {
    display: none !important;
  }
  body.portal-shell[data-portal-view="voucher-redeem"] #view-home-user {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  body.portal-shell[data-portal-view="voucher-redeem"] .portal-shell-main {
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
  }
  body.portal-shell[data-portal-view="voucher-redeem"] .portal-shell-view {
    min-height: 100vh;
    min-height: 100dvh;
  }
  body.portal-shell[data-portal-view="voucher-redeem"] .voucher-redeem-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  body.portal-shell[data-portal-view="voucher-redeem"] .voucher-redeem-screen {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  body.portal-shell[data-portal-view="voucher-redeem"] .voucher-redeem-center-card {
    margin-bottom: calc(30px + max(16px, env(safe-area-inset-bottom, 0px)));
    --voucher-card-gutter: max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    width: calc(100% - 2 * var(--voucher-card-gutter));
    transform: none;
  }

  body[data-voucher-scan="1"]:not(.portal-shell) .voucher-scan-page .voucher-redeem-screen {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    min-height: 0;
    flex: 1;
  }
  body[data-voucher-scan="1"]:not(.portal-shell) .voucher-redeem-center-card {
    margin-bottom: calc(30px + max(12px, env(safe-area-inset-bottom, 0px)));
    --voucher-card-gutter: max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    width: calc(100% - 2 * var(--voucher-card-gutter));
  }
}

@media (max-width: 480px) {
  body.portal-shell[data-portal-view="voucher-redeem"] .voucher-redeem-screen,
  body[data-voucher-scan="1"]:not(.portal-shell) .voucher-scan-page .voucher-redeem-screen {
    width: min(387px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

@media (max-width: 360px) {
  .voucher-redeem-screen {
    border-radius: 18px;
  }
  .voucher-redeem-center-card {
    padding: 10px;
    gap: 8px;
    border-radius: 18px;
  }
  .voucher-redeem-price-hero-value {
    font-size: 1.1rem;
  }
}

/* Portal Home — compacte AI-teaser + volledige AI-inzichten-pagina (fragment) */
.portal-home-ai-teaser {
  border-radius: 16px;
  background: linear-gradient(135deg, #fafbff 0%, #fff 55%, #fffbeb 100%);
  border: 1px solid rgba(79, 70, 229, 0.18);
  box-shadow: 0 10px 32px rgba(35, 34, 59, 0.05);
  padding: 14px 16px;
  margin-top: 4px;
}

.portal-home-ai-teaser-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.portal-home-ai-teaser-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.portal-home-ai-teaser-copy h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #23223b;
  letter-spacing: -0.02em;
}

.portal-home-ai-teaser-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.portal-home-ai-teaser-meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.portal-home-ai-teaser-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  background: var(--ik-primary-grad, linear-gradient(180deg, #93a0ff 0%, #6366f1 42%, #4f46e5 78%, #3730a3 100%));
  box-shadow: var(--ik-primary-shadow, 0 6px 20px rgba(67, 56, 202, 0.32));
  flex-shrink: 0;
}

.portal-home-ai-teaser-btn:hover {
  filter: brightness(1.03);
}

.portal-ai-page {
  max-width: 56rem;
  margin: 0 auto;
}

.portal-ai-dashboard-card {
  border: 1px solid #e0e7ff;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 52%);
  box-shadow: 0 1px 0 rgba(99, 102, 241, 0.06);
}

.portal-ai-head-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.portal-ai-chip--rules {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.portal-ai-chip--ai {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.portal-ai-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

.portal-ai-toolbar a {
  color: #4f46e5;
  text-decoration: none;
}

.portal-ai-toolbar a:hover {
  text-decoration: underline;
}

.portal-ai-toolbar-sep {
  color: #94a3b8;
  user-select: none;
}

.portal-ai-hero {
  margin-bottom: 18px;
}

.portal-ai-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #23223b;
}

.portal-ai-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.portal-ai-section {
  margin-bottom: 14px;
}

.portal-ai-section--muted {
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.portal-ai-period-note {
  margin: 0 0 12px;
}

.portal-ai-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}

@media (min-width: 520px) {
  .portal-ai-kpi-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.portal-ai-kpi-cell {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.portal-ai-kpi-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.portal-ai-kpi-cell strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.portal-ai-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.portal-ai-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #3730a3;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.portal-ai-pill--amber {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.portal-ai-summary-body {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
}

.portal-ai-meta-line {
  margin: 0 0 14px;
}

.portal-ai-subhead {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #23223b;
}

.portal-ai-action-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
  line-height: 1.65;
  font-size: 14px;
}

.portal-ai-action-list li {
  margin: 0.35rem 0;
}

.portal-ai-charts-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  .portal-ai-charts-row {
    grid-template-columns: 1fr;
  }
}

.portal-ai-chart-card {
  border-radius: 12px;
  padding: 10px 12px 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.portal-ai-chart-card--indigo {
  border-color: #e0e7ff;
  background: linear-gradient(165deg, #fafbff 0%, #ffffff 100%);
}

.portal-ai-chart-card--teal {
  border-color: #ccfbf1;
  background: linear-gradient(165deg, #f0fdfa 0%, #ffffff 100%);
}

.portal-ai-chart-card-head {
  margin-bottom: 6px;
}

.portal-ai-chart-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.portal-ai-mini-svg {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

.portal-ai-chart-caption {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  text-align: center;
}

.portal-ai-stack-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
  max-width: 200px;
  margin: 4px auto 0;
}

.portal-ai-stack-seg {
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 0.35s ease;
}

.portal-ai-stack-seg--done {
  background: linear-gradient(90deg, #0d9488, #14b8a6);
}

.portal-ai-stack-seg--open {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.portal-ai-block {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
}

.portal-ai-block--slate {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.portal-ai-block--violet {
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
  border: 1px solid #e9d5ff;
}

.portal-ai-llm-status {
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
}

.portal-ai-llm-status.is-error {
  color: #b45309;
}

.portal-ai-llm-body {
  margin-top: 4px;
}

.portal-ai-llm-summary {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
}

.portal-ai-llm-confidence {
  margin: 0 0 12px;
}

.portal-ai-llm-actions-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #4c1d95;
}

.portal-ai-llm-actions {
  margin: 0;
  padding-left: 1.25rem;
  color: #334155;
  line-height: 1.65;
  font-size: 14px;
}

.portal-ai-llm-actions li {
  margin: 0.3rem 0;
}

.portal-ai-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.portal-ai-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #4f46e5;
}

.portal-ai-reminder-note {
  margin: 10px 0 0;
}

.portal-ai-reminder-status {
  margin: 8px 0 0;
  color: #475569;
}

.portal-ai-campaign-status {
  margin: 8px 0 0;
  color: #475569;
}

.portal-ai-campaign-status.is-error {
  color: #b45309;
}

.portal-ai-campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 0;
}

.portal-ai-campaign-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.portal-ai-campaign-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
}

.portal-ai-campaign-item-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  justify-content: space-between;
}

.portal-ai-campaign-deal-link {
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}

.portal-ai-campaign-deal-link:hover {
  text-decoration: underline;
}

.portal-ai-campaign-item-meta {
  font-size: 13px;
  color: #64748b;
}

.portal-ai-campaign-empty {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.portal-ai-campaign-rationale-block {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.portal-ai-campaign-rationale-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #4c1d95;
}

.portal-ai-campaign-rationale {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}

/* Mijn Beoordelingen (#mijn-beoordelingen) */
.mijn-reviews-page .mijn-reviews-status {
  margin: 0 0 12px;
}

.mijn-reviews-section .mijn-reviews-table-lead {
  margin: 0 0 12px;
}

.mijn-reviews-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.mijn-reviews-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mijn-reviews-table th,
.mijn-reviews-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.mijn-reviews-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mijn-reviews-table tbody tr:last-child td {
  border-bottom: none;
}

.mijn-reviews-num {
  text-align: right;
  white-space: nowrap;
}

.mijn-reviews-actions {
  white-space: nowrap;
}

.mijn-reviews-cell-mono {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #334155;
}

.mijn-reviews-deal-title {
  display: block;
  font-weight: 600;
  color: #1e293b;
}

.mijn-reviews-empty,
.mijn-reviews-detail-placeholder,
.mijn-reviews-detail-empty {
  color: #64748b;
  text-align: center;
  padding: 16px 12px;
}

.mijn-reviews-toggle-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  cursor: pointer;
  margin-right: 8px;
}

.mijn-reviews-toggle-btn:hover:not(:disabled) {
  background: #e0e7ff;
}

.mijn-reviews-toggle-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mijn-reviews-wizard-link {
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}

.mijn-reviews-wizard-link:hover {
  text-decoration: underline;
}

.mijn-reviews-detail-row .mijn-reviews-detail-cell {
  background: #fafbfc;
  padding: 0;
}

.mijn-reviews-detail-inner {
  padding: 12px 14px 16px;
}

.mijn-reviews-detail-error {
  margin: 0;
  color: #b91c1c;
  font-size: 14px;
}

.mijn-reviews-review-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}

.mijn-reviews-review-card:last-child {
  margin-bottom: 0;
}

.mijn-reviews-review-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 13px;
  color: #64748b;
}

.mijn-reviews-review-stars {
  font-weight: 800;
  color: #b45309;
}

.mijn-reviews-review-author {
  font-weight: 600;
  color: #334155;
}

.mijn-reviews-review-date {
  margin-left: auto;
}

.mijn-reviews-review-comment {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #1e293b;
}

.mijn-reviews-merchant-reply {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.mijn-reviews-merchant-reply strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mijn-reviews-removal-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: #92400e;
}
