.identity-phone-preview {
  width: min(100%, 252px);
  min-width: 0;
  margin-inline: auto;
  container-type: inline-size;
}

.identity-phone-link {
  display: block;
  border-radius: 14% / 7%;
  color: #f4f5f6;
  text-decoration: none;
  filter: drop-shadow(0 18px 24px #080c18a6);
  transition: filter .2s ease;
}

.identity-phone-link:is(:hover, :focus-visible) {
  color: #f4f5f6;
  text-decoration: none;
  filter: drop-shadow(0 18px 27px #0f2469a6);
}

.identity-phone-link:focus-visible {
  outline: 2px solid #8fb2ff;
  outline-offset: 4px;
}

.identity-phone-shell {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 366 / 732;
}

.identity-phone-shell > .identity-phone-device {
  position: absolute;
  display: block;
  top: -4.78%;
  left: -37.16%;
  width: 174.86%;
  max-width: none;
  height: auto;
}

.identity-phone-screen {
  position: absolute;
  inset: 2.32% 5.2% 2.46% 4.9%;
  display: flex;
  flex-direction: column;
  gap: 5.2cqw;
  overflow: hidden;
  padding: 13cqw 4.5cqw 4.1cqw;
  border-radius: 14% / 7%;
  background: #141618;
  color: #f4f5f6;
  font: 600 3.65cqw/1.35 Manrope, sans-serif;
  pointer-events: none;
}

.identity-phone-screen::before {
  position: absolute;
  top: 1.8%;
  left: 37%;
  width: 26%;
  aspect-ratio: 3.65;
  border-radius: 999px;
  background: radial-gradient(circle at 85% 50%, #1b263b 0, #080a0f 12%, #040507 24%);
  content: '';
}

.identity-phone-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  aspect-ratio: 1.59;
  padding: 4.7cqw;
  border: 1px solid #758bca;
  border-radius: 3cqw;
  background:
    repeating-linear-gradient(3deg, #f3f6ff07 0 1px, transparent 1px 5px),
    linear-gradient(127deg, #11234d 10%, #123d9b 50%, #2558ba 73%, #112c64 100%);
  box-shadow: inset 0 1px 1px #ecf1ff75;
}

.identity-phone-card::before {
  position: absolute;
  z-index: -1;
  inset: -65% -38% -9% 44%;
  border: 1px solid #a7c7ff70;
  border-radius: 50%;
  box-shadow: 0 0 0 3.8cqw #b1c8ff23, 0 0 0 8.5cqw #9fbaff1b, 0 0 0 13cqw #7797e916;
  transform: rotate(-40deg);
  content: '';
}

.identity-phone-card-brand {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
  color: #f4f5f6;
  font-size: 3.8cqw;
  font-weight: 800;
  line-height: 1;
}

.identity-phone-card-brand img { display: block; width: 36cqw; height: auto; }

.identity-phone-card-chip {
  position: absolute;
  top: 43%;
  right: 7%;
  width: 7cqw;
  aspect-ratio: 1.27;
  border: 1px solid #6f5635;
  border-radius: 1.2cqw;
  background:
    linear-gradient(90deg, transparent 29%, #715734 30% 33%, transparent 34% 64%, #715734 65% 68%, transparent 69%),
    linear-gradient(transparent 32%, #715734 33% 37%, transparent 38% 63%, #715734 64% 68%, transparent 69%),
    linear-gradient(145deg, #f3e0b9, #b59059 55%, #e8cf99);
}

.identity-phone-card-caption { color: #e0e6fc; font-size: 3.6cqw; font-weight: 750; }

.identity-phone-action {
  display: grid;
  place-items: center;
  align-self: flex-start;
  min-height: 12.5cqw;
  padding: 2.5cqw 4cqw;
  border: 1px solid #4a5467;
  border-radius: 2.5cqw;
  color: #f4f5f6;
  font-size: 4.2cqw;
  font-weight: 800;
  text-align: center;
}

.identity-phone-card-sections {
  display: grid;
  gap: 0;
  margin-top: 3cqw;
  color: #f4f5f6;
  font-size: 4cqw;
  font-weight: 750;
}

.identity-phone-card-sections > span {
  display: flex;
  align-items: center;
  gap: 2cqw;
  min-height: 14cqw;
  border-top: 1px solid #343a43;
}

.identity-phone-card-sections svg {
  display: block;
  flex: 0 0 4.6cqw;
  width: 4.6cqw;
  height: 4.6cqw;
  color: #a4abb5;
}

.identity-phone-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1cqw;
  margin: auto -4.5cqw 0;
  padding: 2.5cqw 4cqw 2cqw;
  border-top: 1px solid #343a43;
  background: #111317;
  color: #a4abb5;
  font-size: 2.95cqw;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
}

.identity-phone-tabs > span {
  display: grid;
  justify-items: center;
  gap: 1.6cqw;
  padding: 1.9cqw .4cqw;
  border-radius: 2cqw;
}

.identity-phone-tabs .identity-phone-tab-current {
  background: #222b40;
  color: #f4f5f6;
  box-shadow: inset 0 0 0 1px #343f56;
}

.identity-phone-tab-current svg { color: #fbd072; }

.identity-phone-tabs svg {
  display: block;
  width: 4.3cqw;
  height: 4.3cqw;
}

@media (max-width: 740px) {
  .identity-phone-preview { width: min(100%, 248px); }
}

@media (prefers-reduced-motion: reduce) {
  .identity-phone-link { transition: none; }
}
