* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(circle at center, #111 0, #000 100%);
  color: #fff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 16px 40px;
}

.card-container {
  width: min(420px, 100%);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
  -webkit-perspective: 1200px;
}

.tilt-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  transition: transform 0.18s ease-out;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.platinum-card {
  background: url(./media/credit5.f9330ff980ae4efcb5b0.webp) no-repeat 50% / cover;
  position: relative;
  width: 100%;
  aspect-ratio: 420 / 260;
  height: auto;
  border: 2px solid rgba(255, 255, 255, 0.30);
  border-radius: 16px;
  background-size: cover;
  box-shadow:
    0 0 20px rgba(192, 192, 192, 0.80),
    0 0 40px rgba(224, 224, 224, 0.50);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.8s ease;
  will-change: transform;
}

.platinum-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background:
    linear-gradient(115deg,
      transparent 15%,
      rgba(255, 255, 255, .55) 45%,
      transparent 65%);
  background-size: 220% 220%;
  animation: shine 6s ease-in-out infinite;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.platinum-card.flipped {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

@keyframes shine {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  border-radius: 16px;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
  overflow: hidden;
  transform-origin: center;
  -webkit-transform-origin: center;
}

.logo-circle {
  color: #000;
  font-weight: 700;
  align-items: center;
  background: #ffffff4d;
  border-radius: 50%;
  box-shadow: inset 0 0 10px hsla(0, 0%, 100%, .486);
  display: flex;
  height: 70px;
  justify-content: center;
  width: 70px;
}

.card-front {
  text-align: left;
  z-index: 2;
}

.card-back {
  text-align: center;
  transform: rotateY(180deg) translateZ(1px);
  -webkit-transform: rotateY(180deg) translateZ(1px);
  z-index: 1;
}

.platinum-card:not(.flipped) .card-back,
.platinum-card.flipped .card-front {
  pointer-events: none;
}

.brand-title {
  display: flex;
  justify-content: left;
  align-items: center;
  min-height: 50px;
}

.brand-logo {
  display: block;
  width: 250px;
  max-width: 80%;
  height: auto;
  max-height: 55px;
  object-fit: contain;

}

.front-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.person-details h1 {
  margin: 0 0 5px;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}

.role {
  margin: 0 0 4px;
  color: #333;
  font-size: 0.9rem;
}

.phone-text {
  color: #222;
  text-decoration: none;
  font-size: 0.9rem;
}

.phone-text:hover {
  text-decoration: underline;
}

.qr-box {
  width: 108px;
  height: 108px;
  padding: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.qr-box canvas,
.qr-box img {
  display: block;
  width: 100px !important;
  height: 100px !important;
}

.address-block {
  position: relative;
  z-index: 1;
}

.address-block p {
  margin: 0 auto 8px;
  color: #575656;
  /* font-size: 0.85rem; */
  line-height: 1.4;
}

.address-block i {
  margin-right: 7px;
}

.qr-box.small {
  width: 92px;
  height: 92px;
  margin: 0 auto;
}

.qr-box.small canvas,
.qr-box.small img {
  width: 84px !important;
  height: 84px !important;
}

.platinum-btn {
  display: block;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 50px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ddad9f, #f5bf82, #dbafa3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #000;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.platinum-btn:hover {
  background: linear-gradient(135deg, #ddad9f, #f5bf82, #dbafa3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.platinum-btn:active {
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.10);
  transform: translateY(0);
}

.platinum-btn i {
  margin-right: 8px;
}

.flip-btn {
  width: auto;
  min-width: 140px;
  margin-top: 16px;
}

.action-list {
  width: 75%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 48px auto 0;
}

@media (max-width: 480px) {
  .page {
    padding-top: 28px;
  }

  .card-container,
  .tilt-wrap {
    width: 100%;
  }

  .platinum-card {
    width: 100%;
  }

  .brand-logo {
    width: 250px;
    max-width: 75%;
  }

  .person-details h1 {
    font-size: 0.9rem;
  }

  .role,
  .phone-text {
    font-size: 0.75rem;
  }

  .address-block p {
    font-size: 0.7rem;
  }

  .platinum-btn {
    font-size: 12px;
    padding: 8px 15px;
  }

  .action-list {
    margin-top: 36px;
  }

  .qr-box.small {
    width: 80px;
    height: 80px;
  }

  .qr-box.small canvas,
  .qr-box.small img {
    width: 72px !important;
    height: 72px !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .platinum-card,
  .tilt-wrap,
  .platinum-btn {
    transition: none;
  }

  .platinum-card::before {
    animation: none;
  }
}

/* Keep the original card proportions at every screen width. */
.platinum-card {
  container-type: inline-size;
}

.card-face {
  padding: 4.3cqw;
}

.brand-title {
  gap: 3cqw;
  font-size: 3.8cqw;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  min-height: 0;
}

.card-front .brand-title {
  margin: 0 !important;
}

.logo-circle {
  flex: 0 0 13cqw;
  width: 13cqw;
  height: 13cqw;
  margin: 0 !important;
  border-radius: 10px;
}

.brand-logo {
  width: 35cqw;
  max-width: 100%;
  max-height: 13cqw;
}

.card-front .brand-logo {
  width: 12cqw;
  max-width: 92%;
}

.front-details {
  gap: 3cqw;
  align-items: center;
}

.person-details {
  min-width: 0;
  flex: 1;
}

.person-details h1 {
  font-size: 4.7cqw;
  margin-bottom: 1.2cqw;
}

.role {
  font-size: 3cqw;
  line-height: 1.4;
  margin-bottom: 1cqw;
}

.phone-text {
  font-size: 3.2cqw;
  white-space: nowrap;
}

.email-text {
  display: block;
  margin-top: 1cqw;
  color: #222;
  font-size: 3cqw;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.qr-box {
  width: 30cqw;
  height: 30cqw;
  padding: 3cqw;
}

.qr-box canvas,
.qr-box img {
  width: 24cqw !important;
  height: 24cqw !important;
  image-rendering: pixelated;
}

.card-back .brand-title {
  justify-content: flex-start;
}

.address-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
  text-align: left;
}

.address-block p {
  color: #222;
  margin: 0;
  flex: 1;
  font-size: 13px !important;
  line-height: 1.5;
}

.address-block p span {
  font-size: inherit !important;
}

.address-block i {
  margin-right: 1cqw;
}

.qr-box.small {
  width: 26cqw;
  height: 26cqw;
  padding: 3cqw;
  margin: 0;
}

.qr-box.small canvas,
.qr-box.small img {
  width: 20cqw !important;
  height: 20cqw !important;
}

.card-back .logo-circle {
  background: #fff;
  padding: 1cqw;
}

.card-back .logo-circle .brand-logo {
  width: 12cqw;
  max-width: 100%;
  max-height: 11cqw;
}

.back-brand span {
  flex: 1;
}
/* Static vector QR codes include a four-module scan border. */
.qr-box { width: 28cqw; height: 28cqw; padding: 0; }
.qr-box.small { width: 24cqw; height: 24cqw; padding: 0; }
.qr-box a { display: block; width: 100%; height: 100%; }
.qr-box img, .qr-box.small img { width: 100% !important; height: 100% !important; }

.card-front .qr-box { width: 25cqw; height: 25cqw; }
