/* ==========================================================================
   Swedbank Imunitātes Simulators - App Styles (v2 - polished)
   ========================================================================== */

/* ---- App Container ---- */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
}

@media (min-width: 481px) {
  body { background-color: #EDEDED; }
  .app {
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 32px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
    overflow: hidden;
  }
}

/* ---- Screen Viewport ---- */
#screen-viewport {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  transition: opacity 150ms ease;
}

.screen--exiting { opacity: 0 !important; }
.screen--entering { animation: fadeIn 250ms ease forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- Intro Screen ---- */
.intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--color-white);
}

.intro__hero {
  background: #FF5F00;
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.intro__hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.intro__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 12px;
  gap: 16px;
}

.intro__panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 4px 0;
  box-shadow: none;
}

.intro__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0;
}

.intro__panel-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #B85B00;
  white-space: nowrap;
}

.intro__panel-meta {
  font-size: 12px;
  font-weight: 600;
  color: #9B8A7E;
  white-space: nowrap;
}

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

.intro__feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(60, 30, 0, 0.06);
  border-radius: 18px;
  box-shadow:
    0 8px 18px -10px rgba(60, 30, 0, 0.16),
    0 1px 2px rgba(60, 30, 0, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.intro__feature:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 24px -10px rgba(60, 30, 0, 0.22),
    0 2px 4px rgba(60, 30, 0, 0.06);
}

.intro__feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #FFF6EE;
  border: 1px solid rgba(255, 95, 0, 0.08);
}

.intro__feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.intro__feature-label {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -0.1px;
}

.intro__feature-desc {
  font-size: 12px;
  font-weight: 500;
  color: #8B7B6E;
  line-height: 1.3;
}

.intro__hint {
  font-size: 13px;
  color: #6B7280;
  text-align: center;
  line-height: 1.5;
  margin: 4px 12px 0;
}

.intro__hint strong {
  font-weight: 700;
  color: #1A1A1A;
}

.intro__cta {
  padding: 12px 20px 24px;
  background: var(--color-white);
}

.intro__start-btn {
  width: 100%;
  padding: 17px 32px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #FF6B14, #FB4F00);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 6px 18px rgba(255,95,0,0.32), inset 0 1px 0 rgba(255,255,255,0.18);
  letter-spacing: 0.1px;
}

.intro__start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255,95,0,0.40), inset 0 1px 0 rgba(255,255,255,0.18);
}

.intro__start-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(255,95,0,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ---- Name Input Screen ---- */
.name-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 40px 28px;
}

.name-input__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 4px;
}

.name-input__title {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-dark-text);
}

.name-input__subtitle {
  font-size: 15px;
  color: var(--color-medium-gray);
  line-height: 1.5;
  max-width: 300px;
}

.name-input__field {
  width: 100%;
  max-width: 320px;
  padding: 16px 20px;
  font-size: 17px;
  font-family: var(--font-body);
  border: 2px solid var(--color-border-gray);
  border-radius: 12px;
  outline: none;
  transition: all 200ms ease;
  text-align: center;
  background-color: var(--color-light-gray);
}

.name-input__field:focus {
  border-color: var(--color-primary-orange);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(255,95,0,0.1);
}

.name-input__field::placeholder { color: #aaa; }

.name-input__btn {
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #FF5F00, #FB4F00);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 4px 16px rgba(255,95,0,0.35);
}

.name-input__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.name-input__btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,95,0,0.45);
}

.name-input__btn:not(:disabled):active {
  transform: translateY(0);
}

/* ---- Progress Bar (thin top) ---- */
.progress-top {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-top__track {
  flex: 1;
  height: 4px;
  background-color: var(--color-light-gray);
  border-radius: 2px;
  overflow: hidden;
}

.progress-top__fill {
  height: 100%;
  background: linear-gradient(90deg, #FF5F00, #FFB347);
  border-radius: 2px;
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-top__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-medium-gray);
  white-space: nowrap;
}

.progress-top__escalation {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-error-red);
  padding: 0 20px;
  margin-top: -8px;
  margin-bottom: 4px;
}

/* ---- Scenario Screen (immersive) ---- */
.scenario {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.scenario__type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-medium-gray);
  padding: 0 20px 8px;
}

.scenario__type-icon { font-size: 18px; }

.scenario__content {
  flex: 1;
  padding: 0 20px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Bottom action bar - pinned at bottom of scenario flex column */
.scenario__bottom {
  flex-shrink: 0;
  padding: 16px 20px 24px;
  background: white;
  position: relative;
  z-index: 10;
}

.scenario__bottom::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), white);
  pointer-events: none;
}

.scenario__prompt {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark-text);
  text-align: center;
  margin-bottom: 12px;
  background: white;
  position: relative;
}

.scenario__actions {
  display: flex;
  gap: 10px;
  background: white;
  position: relative;
}

/* Neuzticos left, Uzticos right - set by HTML order */

/* ---- Action Buttons (Swedbank style) ---- */
.btn--action {
  flex: 1;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 12px;
  cursor: pointer;
  transition: all 180ms ease;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn--sw-trust {
  background: linear-gradient(135deg, #FF5F00, #FB4F00);
  color: white;
  box-shadow: 0 4px 12px rgba(255,95,0,0.25);
}

.btn--sw-trust:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,95,0,0.35);
}

.btn--sw-trust:active {
  transform: translateY(0);
}

.btn--sw-distrust {
  background-color: var(--color-light-gray);
  color: var(--color-dark-text);
  border: 1px solid var(--color-border-gray);
}

.btn--sw-distrust:hover {
  background-color: #e8e8e8;
  border-color: #d0d0d0;
}

.btn--sw-distrust:active {
  transform: scale(0.98);
}

/* ---- Email Simulation (Realistic Gmail-like) ---- */
.sim-email {
  border: 1px solid #e0e0e0;
  background: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sim-email__subject-bar {
  padding: 16px 20px 12px;
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  line-height: 1.3;
  letter-spacing: -0.1px;
  border-bottom: 1px solid #F1F3F4;
}

.sim-email__header {
  padding: 14px 20px 14px;
  border-bottom: 1px solid #ECECEC;
  background: white;
}

.sim-email__sender {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sim-email__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C7CFF, #9B59FF);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.sim-email__sender-info {
  min-width: 0;
  flex: 1;
}

.sim-email__sender-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.sim-email__sender-name {
  font-size: 14px;
  font-weight: 700;
  color: #202124;
  letter-spacing: -0.1px;
}

.sim-email__date {
  font-size: 12px;
  color: #5F6368;
  white-space: nowrap;
  flex-shrink: 0;
}

.sim-email__sender-addr {
  font-size: 12px;
  color: #5F6368;
  word-break: break-all;
  margin-top: 1px;
}

.sim-email__recipient {
  font-size: 12px;
  color: #5F6368;
  margin-top: 4px;
}

.sim-email__recipient span {
  color: #202124;
  font-weight: 500;
}

.sim-email__body {
  padding: 24px 22px 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #202124;
}

.sim-email__brand {
  margin: -24px -22px 22px;
  padding: 22px 24px 20px;
  border-bottom: 3px solid #FF5F00;
  display: flex;
  align-items: center;
}

.sim-email__brand img {
  display: block;
  height: 22px;
  width: auto;
  filter: none;
}

.sim-email__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-email__brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: inherit;
  line-height: 1.2;
  text-transform: uppercase;
}

.sim-email__brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: inherit;
  opacity: 0.85;
  letter-spacing: 0.1px;
}

.sim-email__copy p {
  margin: 0 0 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #202124;
}

.sim-email__copy p:last-child {
  margin-bottom: 0;
}

.sim-email__link-wrap {
  margin: 4px 0 0 !important;
}

.sim-email__link {
  color: #1A73E8;
  text-decoration: underline;
  font-size: 14px;
  word-break: break-all;
}

.sim-email__cta-wrap {
  margin: 22px 0 6px !important;
}

.sim-email__cta {
  display: inline-block;
  padding: 12px 24px;
  background: #1A73E8;
  color: white !important;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.1px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sim-email__signature {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #ECECEC;
  font-size: 13.5px;
  color: #5F6368;
  line-height: 1.6;
}

.sim-email__footer {
  padding: 14px 22px 16px;
  background: #F8F9FA;
  border-top: 1px solid #ECECEC;
  font-size: 11px;
  color: #80868B;
  line-height: 1.55;
}

.sim-email__footer-org {
  font-weight: 600;
  color: #5F6368;
  margin-bottom: 4px;
}

.sim-email__footer-note {
  margin-bottom: 4px;
}

.sim-email__footer-unsub {
  color: #80868B;
}

/* ---- Marketing-style email body (e.g. Swedbank pension quarterly) ---- */
.sim-email__mkt {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1A1A1A;
}

.sim-email__mkt-logo {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 36px;
}

.sim-email__mkt-logo img {
  display: block;
  height: 38px;
  width: auto;
}

.sim-email__copy h1.sim-email__mkt-hero {
  margin: 0 0 20px !important;
  font-size: 40px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  color: #FE5000 !important;
  letter-spacing: -0.5px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.sim-email__copy p.sim-email__mkt-lead {
  margin: 0 0 28px !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: #1A1A1A !important;
  font-weight: 400 !important;
}

.sim-email__copy h2.sim-email__mkt-section {
  margin: 32px 0 16px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #FE5000 !important;
  letter-spacing: -0.2px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.2 !important;
}

.sim-email__copy ul.sim-email__mkt-bullets {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sim-email__copy ul.sim-email__mkt-bullets li {
  position: relative;
  padding: 0 0 18px 26px !important;
  font-size: 15.5px !important;
  line-height: 1.55 !important;
  color: #1A1A1A !important;
  list-style: none !important;
  margin: 0 !important;
}

.sim-email__mkt-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FE5000;
}

.sim-email__mkt-bullets li:last-child {
  padding-bottom: 0;
}

.sim-email__mkt-bullets strong {
  font-weight: 700;
  color: #1A1A1A;
}

.sim-email__mkt-inline-link {
  color: #2A7081;
  text-decoration: underline;
}

.sim-email__copy p.sim-email__mkt-footnote {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid #ECECEC;
  font-size: 12px;
  color: #5F6368;
  line-height: 1.5;
  font-style: italic;
}

/* ---- E-address style email body (gov.lv notifications & lookalikes) ---- */
.sim-email__eaddr {
  margin: -24px -22px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sim-email__eaddr-banner {
  padding: 22px 26px;
  background: #E89D3C;
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.sim-email__eaddr-body {
  padding: 22px 26px 26px;
  color: #1A1A1A;
}

.sim-email__copy .sim-email__eaddr-body p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #1A1A1A;
}

.sim-email__copy .sim-email__eaddr-body p:last-child {
  margin-bottom: 0;
}

.sim-email__eaddr-link {
  color: #1A73E8;
  text-decoration: underline;
  word-break: break-all;
}

.sim-email__copy .sim-email__eaddr-body p.sim-email__eaddr-note {
  font-style: italic;
  color: #5F6368;
  font-size: 14px;
  margin-top: 22px;
}

/* Wrong answer flash overlay */
@keyframes wrongFlash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

.wrong-flash::after {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(198, 40, 40, 0.06);
  pointer-events: none;
  animation: wrongFlash 600ms ease forwards;
  z-index: 100;
}

/* Correct answer flash overlay */
@keyframes correctFlash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

.correct-flash::after {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(46, 125, 50, 0.06);
  pointer-events: none;
  animation: correctFlash 600ms ease forwards;
  z-index: 100;
}

/* ---- Simulation Cards ---- */
.sim-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Webpage / fake login simulation - Chrome-like */
.sim-webpage {
  border: 1px solid #d0d0d0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sim-webpage__chrome {
  background: #DEE1E6;
  padding: 8px 10px 0;
  border-bottom: 1px solid #C8CBD0;
}

.sim-webpage__chrome-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.sim-webpage__chrome-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.sim-webpage__url-bar {
  background: #FFFFFF;
  padding: 7px 12px;
  font-size: 13px;
  color: #202124;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid #DADCE0;
  margin-bottom: 8px;
}

.sim-webpage__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-webpage__lock--insecure {
  color: #D93025;
}

.sim-webpage__url-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.1px;
}

.sim-webpage__content {
  padding: 32px 28px 28px;
  background: white;
}

.sim-webpage__logo {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sim-webpage__warning {
  background: #FEF7E0;
  border: 1px solid #F9D86A;
  border-left: 4px solid #F9AB00;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 22px;
  font-size: 13px;
  color: #5F4500;
  line-height: 1.5;
}

.sim-webpage__form-label {
  font-size: 13px;
  color: #5F6368;
  margin-bottom: 14px;
  line-height: 1.5;
}

.sim-webpage__input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #DADCE0;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  color: #80868B;
  font-family: inherit;
}

.sim-webpage__btn {
  width: 100%;
  padding: 13px;
  background: #FF5F00;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
  margin-top: 8px;
  text-align: center;
  letter-spacing: 0.2px;
}

/* SMS Messages simulation - iOS-like */
.sim-chat {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  background: #FFFFFF;
}

.sim-chat__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1A1A1A;
  background: #F6F6F6;
}

.sim-chat__time-top {
  font-weight: 700;
}

.sim-chat__statusbar-right {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #1A1A1A;
}

.sim-chat__header {
  background: #F6F6F6;
  color: #1A1A1A;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #E5E5E5;
}

.sim-chat__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B0B6BC, #7A8089);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: white;
}

.sim-chat__title {
  text-align: center;
}

.sim-chat__name {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: -0.1px;
}

.sim-chat__sublabel {
  font-size: 11px;
  color: #8E8E93;
  margin-top: 1px;
}

.sim-chat__body {
  background: #FFFFFF;
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-chat__time-divider {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #8E8E93;
  margin: 4px 0 12px;
  letter-spacing: 0.1px;
}

.sim-chat__bubble {
  background: #E9E9EB;
  color: #1A1A1A;
  border-radius: 18px;
  padding: 9px 14px 10px;
  max-width: 78%;
  font-size: 15px;
  line-height: 1.35;
  align-self: flex-start;
  word-wrap: break-word;
}

.sim-chat__bubble + .sim-chat__bubble {
  margin-top: 2px;
}

.sim-chat__link {
  color: #007AFF;
  text-decoration: underline;
  word-break: break-all;
}

/* Social media simulation */
.sim-social { border: 1px solid #e0e0e0; }

.sim-social__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.sim-social__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1877F2, #42A5F5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.sim-social__name { font-size: 15px; font-weight: 700; }
.sim-social__verified { color: #1877F2; font-size: 12px; }

.sim-social__body {
  padding: 0 16px 14px;
  font-size: 15px;
  line-height: 1.55;
  color: #333;
}

.sim-social__promo {
  margin: 0 16px 14px;
  background: linear-gradient(135deg, #1a237e, #4a148c);
  color: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.sim-social__promo-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.sim-social__promo-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 24px;
  background-color: #FFD600;
  color: #1a1a1a;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
}

.sim-social__promo-urgency { font-size: 12px; margin-top: 10px; opacity: 0.9; }

.sim-social__comments {
  padding: 10px 16px 14px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-social__comment { font-size: 13px; padding: 3px 0; line-height: 1.5; }
.sim-social__comment strong { font-weight: 700; }

/* Account / balance simulation */
.sim-account { border: 1px solid #e0e0e0; }

.sim-account__header {
  background: linear-gradient(135deg, #FF5F00, #FB4F00);
  color: white;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border-radius: 16px 16px 0 0;
}

.sim-account__balance {
  font-size: 36px;
  font-weight: 900;
  color: #C62828;
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, #FFF5F5, #FFEBEE);
}

.sim-account__transaction {
  padding: 14px 16px;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
}

.sim-account__transaction-label { color: var(--color-medium-gray); font-size: 12px; }
.sim-account__transaction-amount { color: #C62828; font-weight: 700; font-size: 18px; margin: 4px 0; }
.sim-account__transaction-recipient { font-family: monospace; font-size: 12px; color: #666; }

.sim-account__sms {
  padding: 18px;
  background: linear-gradient(180deg, #fafafa, #f5f5f5);
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.sim-account__sms-label { font-size: 13px; color: var(--color-medium-gray); margin-bottom: 10px; line-height: 1.5; }

.sim-account__sms-input {
  width: 160px;
  padding: 12px 14px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 18px;
  text-align: center;
  letter-spacing: 6px;
  background-color: white;
  font-weight: 700;
}

/* ================================================================
   Call simulation - premium full-screen iOS-style
   ================================================================ */
.sim-call {
  background: #000;
  border-radius: 0;
  color: white;
  text-align: center;
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 481px) {
  .sim-call {
    top: 24px; bottom: 24px;
    left: 50%; right: auto;
    width: 100%;
    transform: translateX(-50%);
    border-radius: 32px;
    overflow: hidden;
  }
}

/* Status bar */
.sim-call__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px 0;
  font-size: 15px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.sim-call__statusbar-right {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}

.sim-call__statusbar-right svg { width: 16px; height: 12px; fill: white; }

/* ---- Incoming call screen ---- */
.sim-call__incoming {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sim-call__caller-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  margin-top: -32px;
}

.sim-call__avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4a4a6a, #2d2d48);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.sim-call__label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.sim-call__name {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.sim-call__number {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Answer / Reject buttons */
.sim-call__actions-bar {
  padding: 0 56px 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  width: 100%;
}

.sim-call__btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sim-call__btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, box-shadow 120ms ease;
  cursor: pointer;
}

.sim-call__btn:active { transform: scale(0.88); }

.sim-call__btn--reject {
  background-color: #FF3B30;
}

.sim-call__btn--answer {
  background-color: #30D158;
  animation: answerGlow 2s ease-in-out infinite;
}

@keyframes answerGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0); }
  50% { box-shadow: 0 0 0 10px rgba(48,209,88,0.15); }
}

.sim-call__btn svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.sim-call__btn--reject svg {
  transform: rotate(135deg);
}

.sim-call__btn-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

/* ---- Active call / Transcript view ---- */
#call-transcript {
  flex-direction: column;
}

.sim-call__active-call {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sim-call__active-header {
  text-align: center;
  padding: 24px 24px 0;
  flex-shrink: 0;
}

.sim-call__active-timer {
  font-size: 16px;
  color: #30D158;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.sim-call__active-name {
  font-size: 18px;
  font-weight: 600;
  margin-top: 3px;
  color: rgba(255,255,255,0.9);
}

.sim-call__transcript-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  overflow-y: auto;
}

.sim-call__transcript-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
}

.sim-call__transcript {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  padding: 20px 22px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  text-align: left;
  font-style: italic;
}

.sim-call__transcript p { margin: 0; }

/* Choice buttons */
.sim-call__choices {
  display: flex;
  gap: 12px;
  padding: 12px 24px 48px;
  flex-shrink: 0;
}

.sim-call__choice {
  flex: 1;
  padding: 16px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: all 150ms ease;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.sim-call__choice:active { transform: scale(0.97); }

.sim-call__choice--distrust {
  background: rgba(255,255,255,0.08);
  color: #FF6B6B;
  border: 1px solid rgba(255,107,107,0.2);
}

.sim-call__choice--distrust:hover {
  background: rgba(255,107,107,0.12);
}

.sim-call__choice--trust {
  background: rgba(255,255,255,0.08);
  color: #69DB7C;
  border: 1px solid rgba(105,219,124,0.2);
}

.sim-call__choice--trust:hover {
  background: rgba(105,219,124,0.12);
}

/* Transfer simulation */
.sim-transfer { border: 1px solid #e0e0e0; }

.sim-transfer__body { padding: 24px 20px; }

.sim-transfer__desc {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
  color: #333;
}

.sim-transfer__detail {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.sim-transfer__detail-label { color: var(--color-medium-gray); }
.sim-transfer__detail-value { font-weight: 700; font-family: 'SF Mono', 'Menlo', monospace; font-size: 13px; }

.sim-transfer__btn {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FF5F00, #FB4F00);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: default;
}

/* ---- Feedback Screen ---- */
.feedback {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}

.feedback__header {
  width: 100%;
  padding: 48px 28px 32px;
  text-align: center;
}

.feedback--correct .feedback__header {
  background: linear-gradient(180deg, #C8E6C9, #E8F5E9);
}

.feedback--wrong .feedback__header {
  background: linear-gradient(180deg, #FFCDD2, #FFEBEE);
}

.feedback__icon {
  font-size: 64px;
  margin-bottom: 12px;
  display: block;
}

.feedback__icon--animated {
  animation: feedbackPop 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes feedbackPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.feedback__title {
  font-size: 26px;
  font-weight: 900;
}

.feedback--correct .feedback__title { color: #2E7D32; }
.feedback--wrong .feedback__title { color: #C62828; }

.feedback__body {
  flex: 1;
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
  width: 100%;
  align-self: center;
}

.feedback__text {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

/* Red flags as chips */
.feedback__flags { display: flex; flex-direction: column; gap: 10px; }

.feedback__flags-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback--wrong .feedback__flags-title,
.feedback__flags--fraud .feedback__flags-title { color: #C62828; }
.feedback--correct .feedback__flags-title,
.feedback__flags--legit .feedback__flags-title { color: #2E7D32; }

.feedback__flag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.feedback__chip--red {
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

.feedback__chip--green {
  background-color: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

.feedback__chip-icon { font-size: 14px; }

/* Key takeaway box */
.feedback__takeaway {
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feedback--wrong .feedback__takeaway {
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border: 1px solid #FFE0B2;
}

.feedback--correct .feedback__takeaway {
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
  border: 1px solid #C8E6C9;
}

.feedback__takeaway-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feedback__takeaway-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--color-dark-text);
}

.feedback__continue-btn {
  width: 100%;
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #FF5F00, #FB4F00);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 4px 16px rgba(255,95,0,0.3);
  margin-top: auto;
}

.feedback__continue-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,95,0,0.4); }
.feedback__continue-btn:active { transform: translateY(0); }

/* ================================================================
   Results Screen - premium redesign
   ================================================================ */
.results {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero */
.results__hero {
  width: 100%;
  padding: 48px 28px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.results__score-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.results__score-number {
  font-size: 56px;
  font-weight: 200;
  color: white;
  line-height: 1;
  letter-spacing: -2px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.results__score-max {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-top: 2px;
}

.results__level-title {
  font-size: 26px;
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.results__level-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* Body section */
.results__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 24px 20px 40px;
}

/* Reveal card */
.results__reveal {
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.results__reveal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFF3E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.results__reveal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark-text);
  margin-bottom: 8px;
}

.results__reveal-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-medium-gray);
}

.results__reveal-text strong {
  color: var(--color-primary-orange);
  font-weight: 700;
}

/* Escalation narrative */
.results__escalation {
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.results__escalation-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFEBEE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.results__escalation-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark-text);
  margin-bottom: 8px;
}

.results__escalation-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-medium-gray);
}

/* Scenario summaries */
.results__summaries {
  width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  overflow: hidden;
}

.results__summaries-title {
  font-size: 15px;
  font-weight: 700;
  padding: 18px 20px 0;
  color: var(--color-dark-text);
}

.results__summary {
  border-bottom: 1px solid #f5f5f5;
}

.results__summary:last-child { border-bottom: none; }

.results__summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark-text);
  font-family: var(--font-body);
  transition: background-color 150ms ease;
}

.results__summary-header:hover { background-color: #fafafa; }

.results__summary-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.results__summary-icon--correct {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.results__summary-icon--wrong {
  background-color: #FFEBEE;
  color: #C62828;
}

.results__summary-name { flex: 1; }

.results__summary-chevron {
  font-size: 10px;
  color: #ccc;
  transition: transform 200ms ease;
}

.results__summary.open .results__summary-chevron { transform: rotate(180deg); }

.results__summary-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  flex-shrink: 0;
}

.results__summary-badge--fraud { background-color: #FFF5F5; color: #E53935; }
.results__summary-badge--legit { background-color: #F0FAF0; color: #2E7D32; }

.results__summary-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
  padding: 0 20px 0 60px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-medium-gray);
}

.results__summary.open .results__summary-detail {
  max-height: 200px;
  padding: 0 20px 16px 60px;
}

/* CTA buttons */
.results__ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.results__cta {
  display: block;
  width: 100%;
  padding: 15px 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 150ms ease;
}

.results__cta:active { transform: scale(0.98); }

.results__cta--primary {
  background-color: var(--color-primary-orange);
  color: white;
}

.results__cta--primary:hover { opacity: 0.9; }

.results__cta--secondary {
  background-color: #f5f5f5;
  color: var(--color-dark-text);
}

.results__cta--secondary:hover { background-color: #eee; }

.results__share,
.results__retry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  background: white;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-medium-gray);
  cursor: pointer;
  transition: all 150ms ease;
  font-family: var(--font-body);
}

.results__share:hover,
.results__retry:hover { border-color: #ccc; color: var(--color-dark-text); }

.results__retry {
  margin-bottom: 12px;
  color: var(--color-dark-text);
  border-color: var(--color-dark-text);
}

.results__retry:hover { background: var(--color-dark-text); color: white; }

.results__share-toast {
  font-size: 13px;
  color: var(--color-success-green);
  text-align: center;
  min-height: 20px;
  font-weight: 600;
}

/* ---- Animations ---- */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.pulse { animation: pulse 0.35s ease; }

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 1000;
  animation: confetti-fall 3s ease-out forwards;
  pointer-events: none;
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.slide-up { animation: slideUp 400ms ease-out; }

.stagger-1 { animation-delay: 0ms; }
.stagger-2 { animation-delay: 80ms; opacity: 0; animation-fill-mode: forwards; }
.stagger-3 { animation-delay: 160ms; opacity: 0; animation-fill-mode: forwards; }
.stagger-4 { animation-delay: 240ms; opacity: 0; animation-fill-mode: forwards; }

@keyframes countUp {
  from { opacity: 0; transform: scale(0.3); }
  60% { transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}

.count-up { animation: countUp 700ms cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* ---- Responsive ---- */

/* Small phones */
@media (max-width: 360px) {
  .intro__body { padding: 18px 16px 8px; gap: 14px; }
  .intro__panel { padding: 0; }
  .intro__features { gap: 6px; }
  .intro__feature-icon { font-size: 28px; border-radius: 16px; max-width: 68px; }
  .intro__feature-label { font-size: 12px; }
  .intro__feature-desc { font-size: 10px; }
  .intro__cta { padding: 10px 16px 20px; }
  .intro__start-btn { padding: 15px 24px; font-size: 15px; }
  .name-input { padding: 32px 16px; }
  .name-input__title { font-size: 20px; }
  .scenario__content { padding: 0 14px 12px; }
  .scenario__bottom { padding: 12px 14px 20px; }
  .scenario__prompt { font-size: 14px; }
  .btn--action, .btn--trust, .btn--distrust { padding: 13px 16px; font-size: 14px; }
  .feedback__header { padding: 36px 16px 24px; }
  .feedback__body { padding: 20px 16px 28px; }
  .feedback__icon { font-size: 52px; }
  .feedback__title { font-size: 22px; }
  .feedback__chip { font-size: 12px; padding: 6px 10px; }
  .results { padding: 0 16px 32px; }
  .results__hero { padding: 36px 16px 32px; }
  .results__score-circle { width: 110px; height: 110px; }
  .results__score-number { font-size: 42px; }
  .results__level-title { font-size: 20px; }
  .results__reveal, .results__escalation { padding: 16px; }
  .results__cta { padding: 14px 20px; font-size: 14px; }
}

/* Medium phones (361-399) */
@media (min-width: 361px) and (max-width: 399px) {
  .intro__body { padding: 20px 18px 10px; }
}

/* Desktop: keep bottom bar in phone frame */
@media (min-width: 481px) {
  .scenario__bottom {
    border-radius: 0 0 32px 32px;
  }
}
