/* 18.10.2026 (operator, after React Bits' "Credit Card": "das hier verwenden bei der creditkarten eingabe"): the card
   the customer types, above the card fields, in the page's ink and accent. It tilts towards the mouse with a shine
   where the light falls and turns round while the security code is typed. kredi-karti.js fills it and sets --egim-x,
   --egim-y, --isik-x, --isik-y and is-arka. */
.kredi-kart {
  container-type: inline-size;
  width: min(360px, 100%);
  margin: 18px auto 4px;
  perspective: 900px;
}
.kredi-kart__ic {
  position: relative;
  aspect-ratio: 1.586;
  transform-style: preserve-3d;
  transform: rotateX(var(--egim-x, 0deg)) rotateY(calc(var(--egim-y, 0deg) + var(--cevir, 0deg)));
  transition: transform 450ms var(--ease);
}
.kredi-kart.is-arka {
  --cevir: 180deg;
}
.kredi-kart.is-egik .kredi-kart__ic {
  transition-duration: 80ms;
}
.kredi-kart__yuz {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  box-shadow: 0 18px 40px -18px rgb(34 38 65 / 60%);
  color: #fff;
  backface-visibility: hidden;
}
.kredi-kart__yuz::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--isik-x, 30%) var(--isik-y, 20%),
    rgb(255 255 255 / 28%),
    transparent 55%
  );
  pointer-events: none;
}
.kredi-kart__on {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 7% 7% 6%;
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}
.kredi-kart__ust {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kredi-kart__cip {
  width: 15%;
  aspect-ratio: 1.3;
  border-radius: 6px;
  background: linear-gradient(135deg, #e6cf8b, #b8892e);
}
.kredi-kart__marka {
  height: 30px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #fff;
}
/* The number's size follows the card's width, so 16 and 19 digits fit a narrow phone too (Opus 18.10.2026: cut off
   from 360 px down). */
.kredi-kart__no {
  margin: 0 0 6%;
  font-size: 5.2cqi;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.kredi-kart__alt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.kredi-kart__alt span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kredi-kart__arka {
  transform: rotateY(180deg);
}
.kredi-kart__serit {
  height: 20%;
  margin-top: 9%;
  background: #111;
}
.kredi-kart__imza {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 78%;
  height: 16%;
  margin: 7% 7% 0;
  padding: 0 12px;
  background: repeating-linear-gradient(-45deg, #f4f1ea 0 6px, #e6e1d6 6px 12px);
  color: #222641;
  font-size: 14px;
  letter-spacing: 0.2em;
}
.kredi-kart__imza small {
  font-size: 10px;
  letter-spacing: 0.08em;
}
@media (prefers-reduced-motion: reduce) {
  .kredi-kart__ic {
    transition: none;
  }
}
