* {
  box-sizing: border-box;
}
/*orignal red*/
/*ff7300*/
:root {
  --burgundy: #ff7300;          /* Main Orange */
  --burgundy-dark: #cc5c00;     /* Dark Orange */
  --burgundy-deep: #8f4000;     /* Deep Orange */
  --burgundy-light: #ff9d4d;    /* Light Orange */
  --rose-blush: #fff0e3;        /* Very Light Orange */

  --burgundy-border: rgba(255, 115, 0, 0.58);
  --burgundy-glow: rgba(255, 115, 0, 0.42);
}


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:
    linear-gradient(
      135deg,
      rgba(255, 115, 0, 0.90),
      rgba(143, 64, 0, 0.94)
    ),
    url(./media/credit5.f9330ff980ae4efcb5b0.webp) no-repeat 50% / cover;

  position: relative;
  width: 100%;
  aspect-ratio: 420 / 260;
  height: auto;

  border: 2px solid var(--burgundy-border);
  border-radius: 16px;
  background-size: cover;

  box-shadow:
    0 0 20px rgba(204, 92, 0, 0.42),
    0 0 40px rgba(255, 115, 0, 0.20);

  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, 0.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: #fff;
  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: var(--burgundy-dark);
  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 {
  visibility: hidden;
  pointer-events: none;
}

.platinum-card.flipped .card-back {
  z-index: 2;
}

.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: #fff;
}

.role {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.phone-text {
  color: var(--rose-blush);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.phone-text:focus-visible {
  outline: 2px solid var(--rose-blush);
  outline-offset: 3px;
  border-radius: 2px;
}

.qr-box {
  width: 120px;
  height: 120px;
  padding: 10px;
  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: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  line-height: 1.4;
}

.address-block i {
  margin-right: 7px;
  color: var(--rose-blush);
}

.qr-box.small {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  padding: 12px;
}

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

.platinum-btn {
  display: block;
  width: 100%;
  border: 1px solid var(--burgundy-light);
  border-radius: 50px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  box-shadow: 0 4px 12px rgba(61, 9, 6, 0.24);
  color: #fff;
  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, var(--burgundy-light), var(--burgundy));
  box-shadow: 0 6px 18px var(--burgundy-glow);
  transform: translateY(-2px);
}

.platinum-btn:active {
  background: var(--burgundy-deep);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.24);
  transform: translateY(0);
}

.platinum-btn:focus-visible {
  outline: 3px solid var(--rose-blush);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--burgundy), 0 6px 18px var(--burgundy-glow);
}

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

  .card-face {
    padding: 12px;
  }

  .card-front .brand-title.mb-4 {
    margin-bottom: 8px !important;
  }

  .logo-circle {
    width: 48px;
    height: 48px;
  }

  .card-back .brand-logo {
    max-height: 30px;
  }

  .card-back .brand-title {
    min-height: 36px;
  }

  .card-back .address-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: center;
    gap: 8px;
  }

  .card-back .address-block p {
    margin: 0;
  }

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