* {
  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: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.tilt-wrap {
  width: 420px;
  max-width: 100%;
  transition: transform 0.18s ease-out;
  transform-style: preserve-3d;
}

.platinum-card {
  background: url(./media/credit5.f9330ff980ae4efcb5b0.webp) no-repeat 50% / cover;
  position: relative;
  width: 420px;
  max-width: 100%;
  height: 260px;
  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;
  transition: transform 0.8s ease;
}

.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;
}

.platinum-card.flipped {
  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;
  overflow: hidden;
}
.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;
}

.card-back {
  text-align: center;
  transform: rotateY(180deg);
}

.brand-title {
  display: flex;
  justify-content: center;
  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: 80px;
  height: 80px;
  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: 72px !important;
  height: 72px !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: 60px;
  height: 60px;
  margin: 0 auto;
}

.qr-box.small canvas,
.qr-box.small img {
  width: 52px !important;
  height: 52px !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: 360px;
    height: 260px;
  }

  .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;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platinum-card,
  .tilt-wrap,
  .platinum-btn {
    transition: none;
  }

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