/* Affiliate lifecycle: confined, slow neon signals and one finite celebration. */
#v201Student .v221-affiliate-page.v239-bank .al-program-signal,
#v201Student .v221-affiliate-page.v239-bank .al-participation-signal {
  position: relative;
  isolation: isolate;
  border-color: #7caaff !important;
}
#v201Student .v221-affiliate-page.v239-bank .al-program-signal {
  background: linear-gradient(115deg, #14345d, #142344) !important;
}
#v201Student .v221-affiliate-page.v239-bank .al-program-signal::after,
#v201Student .v221-affiliate-page.v239-bank .al-participation-signal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid #71a6ff;
  border-radius: inherit;
  box-shadow: 0 0 0 1px #83b4ff45, 0 0 15px #427fffaa, 0 0 26px #3268ec50, inset 0 0 14px #4e91ff30;
  pointer-events: none;
  animation: al-blue-breath 2.8s ease-in-out infinite;
}
#v201Student .v221-affiliate-page.v239-bank .al-program-signal .c11-program-trigger-icon {
  border-color: #8eb7ff;
  color: #d8e9ff;
  background: #214477;
  box-shadow: 0 0 11px #4384ed45;
}
#v201Student .v221-affiliate-page.v239-bank .al-program-signal .c11-program-trigger-copy strong {
  color: #f2f7ff;
}
#v201Student .v221-affiliate-page.v239-bank .al-program-signal .c11-program-trigger-copy small {
  color: #c2dcff;
}
#v201Student .v221-affiliate-page.v239-bank .al-participation-signal {
  background: linear-gradient(145deg, #193555, #142440) !important;
}
#v201Student .v221-affiliate-page.v239-bank .al-participation-signal .p-eyebrow {
  color: #b3d6ff !important;
}
#v201Student .v221-affiliate-page.v239-bank .al-participation-signal [data-c11-enrollment] > .btn:not(:disabled) {
  background: linear-gradient(105deg, #285bb2, #274b98) !important;
  border-color: #94beff !important;
  color: #fff !important;
  box-shadow: 0 0 16px #447cff35 !important;
}

/* Participation belongs to the digital affiliate card, beside the actual ID. */
#v201Student .v221-affiliate-page.v239-bank .vneo-bank-aside.vneo-bank-card.al-status-card {
  container: al-affiliate-card / inline-size;
  justify-content: flex-start;
  min-height: 0;
  gap: 9px;
  padding: 14px;
  margin-top: 0;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-card > .vneo-card-footer {
  display: none;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-card .vneo-card-top {
  min-height: 26px;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-card .vneo-card-chip {
  width: 30px;
  height: 25px;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-card .vneo-card-title {
  font-size: 10px;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-card .v225-bank-code {
  padding: 9px 11px !important;
  gap: 4px 7px !important;
  border-radius: 12px !important;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-card .v225-bank-code code {
  font-size: 13px !important;
  line-height: 1.45;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-card .v225-bank-code button {
  padding: 5px !important;
}
#v201Student .v221-affiliate-page.v239-bank .al-bank-status {
  --al-status-accent: #acc2e4;
  --al-status-soft: #283c5a;
  --al-status-glow: transparent;
  --al-status-core: #071324;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  max-width: 100%;
  padding: 9px 12px 9px 14px;
  margin: 0;
  border: 1px solid #9bb9e230 !important;
  border-radius: 13px;
  background: linear-gradient(110deg, #0d1a30, #101b32) !important;
  color: #e8f0ff !important;
  box-shadow: inset 0 1px 0 #dbeaff0a;
  font: 750 12px/1.3 system-ui, sans-serif;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: background .2s ease, border-color .2s ease;
}
#v201Student .v221-affiliate-page.v239-bank .al-bank-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 2px;
  border-radius: 0 3px 3px 0;
  background: var(--al-status-accent);
  opacity: .7;
  pointer-events: none;
}
#v201Student .v221-affiliate-page.v239-bank .al-bank-status:hover {
  border-color: #b6d1f570 !important;
  background: linear-gradient(110deg, #16273f, #14233e) !important;
}
#v201Student .v221-affiliate-page.v239-bank .al-bank-status:focus-visible {
  outline: 2px solid #94e9ff !important;
  outline-offset: 3px;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: center;
  position: relative;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 1px solid var(--al-status-soft);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--al-status-core), #071324 78%);
  color: var(--al-status-accent) !important;
  line-height: 0;
  flex-shrink: 0;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-indicator > svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  color: var(--al-status-accent) !important;
  fill: none;
  stroke: var(--al-status-accent) !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-indicator > svg > path {
  stroke: var(--al-status-accent) !important;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-overline {
  color: #aebfd9;
  font: 650 10px/1.2 system-ui, sans-serif;
  letter-spacing: .11em;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-label {
  color: #eef5ff;
  font: 750 12px/1.3 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
  color: #bfd1ed;
  font: 650 10px/1.4 system-ui, sans-serif;
  white-space: nowrap;
}
#v201Student .v221-affiliate-page.v239-bank .al-status-action svg {
  display: block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#v201Student .v221-affiliate-page.v239-bank .al-bank-status[data-state="active"] {
  --al-status-accent: #35ff97;
  --al-status-soft: #35ff9738;
  --al-status-glow: #21ff8d66;
  --al-status-core: #0b392b;
}
#v201Student .v221-affiliate-page.v239-bank .al-bank-status:is([data-state="paused"], [data-state="blocked"]) {
  --al-status-accent: #ff405f;
  --al-status-soft: #ff405f38;
  --al-status-glow: #ff244966;
  --al-status-core: #3b1525;
}
#v201Student .v221-affiliate-page.v239-bank .al-bank-status:is([data-state="active"], [data-state="paused"], [data-state="blocked"]) .al-status-indicator {
  border-color: var(--al-status-accent);
  box-shadow: 0 0 0 1px var(--al-status-soft), 0 0 11px var(--al-status-glow), inset 0 0 8px var(--al-status-soft);
}
@media (hover: hover) {
  /* Preserve hover light alongside the legacy keyboard-focus resets. */
  #v201Student#v201Student#v201Student .v221-affiliate-page.v239-bank .al-bank-status:is([data-state="active"], [data-state="paused"], [data-state="blocked"]):hover {
    border-color: var(--al-status-accent) !important;
    box-shadow: 0 0 0 1px var(--al-status-soft), 0 0 16px var(--al-status-glow), inset 0 0 12px var(--al-status-soft) !important;
  }
}
#v201Student .v221-affiliate-page.v239-bank .al-bank-status:is([data-state="pending"], [data-state="eligible"]) {
  --al-status-accent: #acc2e4;
  --al-status-soft: #506c93;
}
#v201Student .v221-affiliate-page.v239-bank .al-bank-status:is([data-state="paused"], [data-state="blocked"]) .al-status-label {
  color: #ffd4dd;
}
#v201Student .v221-affiliate-page.v239-bank .al-bank-status.al-status-fallback {
  width: min(100%, 320px);
  margin-top: 13px;
}
@container al-affiliate-card (max-width: 265px) {
  #v201Student .v221-affiliate-page.v239-bank .al-status-action {
    gap: 0;
    font-size: 0;
  }
}
@container al-affiliate-card (max-width: 200px) {
  #v201Student .v221-affiliate-page.v239-bank .al-bank-status {
    grid-template-columns: 28px minmax(0, 1fr) 13px;
    gap: 7px;
    padding-right: 8px;
    padding-left: 10px;
  }
  #v201Student .v221-affiliate-page.v239-bank .al-status-indicator {
    width: 28px;
    height: 28px;
  }
  #v201Student .v221-affiliate-page.v239-bank .al-status-label {
    font-size: 11px;
  }
}

#v201Student .v221-affiliate-page.v239-bank .al-deactivate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 15px;
  border: 1px solid #e98699 !important;
  border-radius: 11px;
  background: #492130 !important;
  color: #ffdae2 !important;
  font: 750 14px/1.4 system-ui, sans-serif;
  white-space: normal;
  cursor: pointer;
}
#v201Student .v221-affiliate-page.v239-bank .al-deactivate-button:hover:not(:disabled) {
  background: #622b3f !important;
  border-color: #ffc1cd !important;
}

/* Explicit success/confirmation dialogs keep their accessible native behavior. */
dialog.c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog) {
  box-sizing: border-box;
  width: min(520px, calc(100% - 28px));
  max-width: 520px;
  max-height: 90vh;
  max-height: 90dvh;
  padding: clamp(22px, 4vw, 34px);
  margin: auto;
  border: 1px solid #78bfba;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0%, #174237, transparent 62%), #0e1726;
  color: #f0f6ff;
  color-scheme: dark;
  box-shadow: 0 28px 100px #020711bd, 0 0 32px #49e6aa20;
  overflow: auto;
  overscroll-behavior: contain;
}
dialog.c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog):not([open]) {
  display: none !important;
}
dialog.c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog)::backdrop {
  background: #030712d9;
  backdrop-filter: none;
}
dialog.c11-token-dialog.al-success-dialog {
  text-align: center;
}
.al-success-dialog > :not(.al-confetti) {
  position: relative;
  z-index: 2;
}
.al-success-dialog .al-success-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 2px auto 22px;
  border: 1px solid #7beac0;
  border-radius: 50%;
  background: #184a39;
  color: #afffda;
  box-shadow: 0 0 0 9px #49e6aa0b, 0 0 28px #40d99e33;
  font: 800 38px/1 system-ui, sans-serif;
}
.al-success-dialog .al-success-icon svg {
  width: 38px;
  height: 38px;
}
.c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog) h2 {
  color: #f0f6ff;
  font-size: clamp(23px, 4vw, 29px);
  line-height: 1.25;
  letter-spacing: -.025em;
  margin: 0 0 15px;
  overflow-wrap: anywhere;
}
.c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog) p {
  color: #c4d0e3;
  font: 400 15px/1.65 system-ui, sans-serif;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog) .p-eyebrow {
  color: #9aeac8;
  font: 750 10px/1.5 system-ui, sans-serif;
  letter-spacing: .13em;
}
.al-success-dialog .al-success-actions,
.al-deactivate-dialog .al-deactivate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}
.al-success-dialog .al-success-actions button,
.al-deactivate-dialog .al-deactivate-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  flex: 1 1 160px;
  padding: 11px 16px;
  border: 1px solid #6dd9b2;
  border-radius: 12px;
  background: #1c654a;
  color: #f0fff8;
  font: 750 14px/1.4 system-ui, sans-serif;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
.al-success-dialog .al-success-actions button:hover:not(:disabled) {
  background: #237a59;
}
dialog.c11-token-dialog.al-deactivate-dialog {
  border-color: #d88095;
  background: radial-gradient(ellipse at 50% 0%, #3c2434, transparent 65%), #0e1726;
  box-shadow: 0 28px 100px #020711bd, 0 0 26px #df6a8a13;
}
.al-deactivate-dialog .p-eyebrow {
  color: #ffbfcd;
}
.al-deactivate-dialog .al-deactivate-actions button {
  border-color: #7594c5;
  background: #223755;
  color: #edf5ff;
}
.al-deactivate-dialog .al-deactivate-actions :is(.al-deactivate-button, [data-c11-deactivate-confirm]) {
  border-color: #ed94a6;
  background: #743148;
  color: #fff2f5;
}
.al-deactivate-dialog .al-deactivate-actions :is(.al-deactivate-button, [data-c11-deactivate-confirm]):hover:not(:disabled) {
  background: #863c54;
}
.c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog) :is(button, a, [tabindex]):focus-visible {
  outline: 2px solid #94e9ff !important;
  outline-offset: 4px;
}

/* Only the decoration moves. The success text and controls remain still. */
.al-confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.al-confetti > i {
  position: absolute;
  top: -18px;
  left: var(--al-x, 50%);
  width: 7px;
  height: 13px;
  border-radius: 2px;
  background: var(--al-color, #76ffc1);
  opacity: 0;
  animation: al-confetti-fall var(--al-duration, 3.8s) cubic-bezier(.17,.6,.34,1) var(--al-delay, 0s) 1 both;
}
.al-confetti > i:nth-child(3n) {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.al-confetti > i:nth-child(4n) {
  width: 5px;
  height: 15px;
}

/* Preserve disabled, hidden, and private-value semantics over neon decoration. */
#v201Student .v221-affiliate-page.v239-bank .al-participation-signal [data-c11-enrollment] > .btn:disabled,
#v201Student .v221-affiliate-page.v239-bank :is(.al-deactivate-button, .al-reactivate-button):disabled,
.c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog) button:disabled {
  background: #26334b !important;
  color: #aebdd2 !important;
  border-color: #4d5c7c !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  animation: none !important;
}
#v201Student .v221-affiliate-page.v239-bank :is(.al-program-signal, .al-participation-signal, .al-bank-status)[hidden],
.c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog) [hidden],
.al-confetti[hidden] {
  display: none !important;
}

@keyframes al-blue-breath {
  0%, 100% { opacity: .34; }
  50% { opacity: 1; }
}
@keyframes al-confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0deg); }
  8% { opacity: .95; }
  75% { opacity: .95; }
  100% { opacity: 0; transform: translate3d(var(--al-drift, 30px), 105dvh, 0) rotate(var(--al-turn, 560deg)); }
}
@media (max-width: 600px) {
  .al-success-dialog .al-success-icon { width: 68px; height: 68px; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #v201Student .v221-affiliate-page.v239-bank .al-program-signal::after,
  #v201Student .v221-affiliate-page.v239-bank .al-participation-signal::before {
    animation: none !important;
    opacity: .85;
  }
  #v201Student .v221-affiliate-page.v239-bank .al-bank-status {
    transition: none !important;
  }
  .al-confetti { display: none !important; }
  .c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog),
  .c11-token-dialog:is(.al-success-dialog, .al-deactivate-dialog) * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
