/* ─────────────────────────────────────────────────────────────
   Crestline Trust Union — Unified Card Design
   Network marks are drawn in pure CSS (no external image assets).
   Supported networks: Visa, Mastercard, American Express, Discover
   ───────────────────────────────────────────────────────────── */

/* Payment-network marks — drop into any .css-card / .uk-card-face */
.netmark {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 6;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.netmark-visa {
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.netmark-mastercard {
  width: 48px;
  height: 30px;
}
.netmark-mastercard i {
  position: absolute;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
}
.netmark-mastercard i:first-child { left: 0; background: #eb001b; }
.netmark-mastercard i:last-child { right: 0; background: #f79e1b; mix-blend-mode: screen; }
.netmark-amex {
  background: #006fcf;
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: 1.5px;
  padding: 6px 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.netmark-discover {
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
}
.netmark-discover::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f57921;
  margin-right: 7px;
  display: inline-block;
}

/* Ensure custom card shells position the absolute mark correctly */
.css-card { position: relative; }
.uk-card-face, .uk-card-front { position: relative; }

/* Network-tinted glow accents for the legacy .uk-card-face shells */
.uk-card-face.americanexpress, .uk-card-front.americanexpress {
  background: linear-gradient(135deg, #06214f 25%, #0b3d91 60%, #0a4ba0);
  box-shadow: inset 0 0 0 1px rgba(0, 111, 207, .4), 0 4px 16px rgba(0, 0, 0, .3);
}
.uk-card-face.discover, .uk-card-front.discover {
  background: linear-gradient(135deg, #2a1505 25%, #5a2e0a 60%, #7a3f12);
  box-shadow: inset 0 0 0 1px rgba(245, 121, 33, .4), 0 4px 16px rgba(0, 0, 0, .3);
}
.uk-card-back.americanexpress { background: linear-gradient(135deg, #06214f, #0b3d91); }
.uk-card-back.discover { background: linear-gradient(135deg, #2a1505, #5a2e0a); }
