.card-wrapper {
    width: 42.5rem;
    height: 24.5rem;
    border-radius: 0.875rem;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    box-sizing: border-box;
}

.card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-inline: 1rem;
}

.card-right {
    width: 14rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-inline: 1rem;
    padding-top: 1.5rem;
}

.profile-photo {
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    border: 0.2rem solid #fff;
    box-shadow: 0 0.15rem 0.4rem rgba(0,0,0,0.15);
    object-fit: cover;
}

.card-name {
    margin: 0;
    font-size: 1.875rem;
    font-weight: bold;
    color: #003366;
}

.card-badge {
    background: #b71c1c;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin: 0.75rem 0;
    font-size: 1rem;
    display: inline-block;
    width: auto;
    max-width: max-content;
    white-space: nowrap;
    line-height: 1.4;
}

.card-info p,
.card-meta p {
    margin: 0.3rem 0;
    font-size: 1.125rem;
    color: #333;
    line-height: 1.6;
}

.card-info p img,
.card-meta p img {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.4rem;
    vertical-align: middle;
    object-fit: contain;
}

.qr-box {
    background: #fff;
    border: 0.6rem solid #fff;
    border-radius: 0.75rem;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
}

.qr-box img.qr-img {
    width: 6rem;
    height: 6rem;
    border-radius: 0.3rem;
    display: block;
    margin: 0;
}

.modal-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #f0f0f0;
    padding: 1.5rem;
    border-radius: 0.875rem;
    max-width: 46rem;
    width: 100%;
    box-shadow: 0 0 1.5rem rgba(0,0,0,0.3);
}

.modal-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.modal-actions .btn {
    margin: 0 0.75rem;
    font-size: 1.125rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.4rem;
    cursor: pointer;
}

.card-scale-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 800px) {
  .card-scale-wrapper {
    transform: scale(0.95);
    transform-origin: top center;
  }
}
