/* asdfasadf */
:root {
  --primary-color: #1a7fc1;
  --text-color: #222;
  --text-light: #444;
  --text-lighter: #888;
  --text-lighterer: #aaa;
  --border-color: #e0e0e0;
  --green-color: #41c11a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --transition-normal: all 0.8s ease-in-out;
  --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --color-text-muted: #64748b;

}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f7f7f7;
}

.card-container {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 420px;
  /* height: calc(100vh - 48px); */
  margin: 24px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 100svh;
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.share-iconx {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  background-color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 99;
}

.share-iconx i {
  font-size: 20px;

  color: var(--primary-color);
}

.verified-icon {
  width: 26px;
    height: 26px;
  color: var(--primary-color);
  fill: rgb(66, 103, 178);
  stroke: white;
  stroke-width:2px;
  padding-bottom: 5px;
  
  /* display: none !important; */
}
*:has(> .verified-icon) {
  padding-left: 26px; /* Adjust the value as needed */
}

.profile-pic-wrapper {
  padding: 28px 16px 0 16px;
  height: fit-content;
  transition: var(--transition-normal);
  background: linear-gradient(to bottom, #c6e7fa 10%, white 40%);
}

.profile-pic-wrapper-inner {
  /* position: absolute; */
  /* width: calc(100% - 32px); */
  box-sizing: border-box;
  transition: var(--transition-normal);
}

.profilediv {
  margin: 0 auto;
  position: relative;
  width: fit-content;
}

.profiletextdiv {
  margin: 0 auto;
  position: relative;
  width: fit-content;
  transition: var(--transition-normal);
}

.profile-pic {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.profile-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.profile-badge img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badges {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.card-info {
  position: absolute;
  left: 0;
  text-align: center;
  white-space: nowrap;
  padding: 2px;
  min-width: fit-content;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition-normal);
}

.card-info h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  transition: var(--transition-normal);
}

.card-info .subtitle {
  text-wrap: auto;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 4px;
  transition: var(--transition-normal);
}

.title {
  text-wrap: auto;
  font-weight: bold;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 4px;
  transition: var(--transition-normal);
}

.card-info .clinic {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 6px;
  transition: var(--transition-normal);
}

.small-font h2 {
  font-size: 1rem;
}

.small-font .subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 0.75rem;
}

.small-font .clinic {
  font-size: 1rem;
}

.desc {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;

  padding: 0px 8px;
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin: 0;
  text-align: center;
}

.desc a {
  color: var(--text-lighter);
  text-decoration: none;
}

.branding-watermark {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

.branding-watermark strong {
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.branding-watermark a {
  color: var(--primary-color);
  text-decoration: none;
}

.card-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  padding: 0 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.card-tabs::-webkit-scrollbar {
  display: none;
}

.card-tabs button {
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 6px 16px;
  font-size: 1rem;
  color: var(--text-color);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-fast);
}

.card-tabs button.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.card-contacts {
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
  /* overflow-y: auto; */
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;

  background: #f7fafd;
  border-radius: 16px;
  padding: 12px 16px; /* <- This works now */
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  border: 1px solid #f7fafd;
  box-sizing: border-box;
  max-width: 100%;
}

.contact-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  white-space: normal;
  word-break: break-word;
  flex: 1; /* allows it to use remaining space */
  flex-grow: 1;
}

.contact-item:hover {
  border: 1px solid #e7eef5;
  transform: scale(1.02);
  box-shadow: var(--shadow-sm);
  z-index: 1;
  color: var(--primary-color);
}

.contact-item:active {
  transform: scale(0.98);
}

.contact-item .icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary-color);
}

.fillingitem {
  flex-grow: 1;
}

.card-footer {
  padding: 2px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.card-footer p {
  margin: 10px auto;
  text-align: center;
}

.label {
  color: var(--text-lighterer);
  font-size: 0.7rem;
  margin-left: auto;
}

.icon.phone {
  background-image: url("https://img.icons8.com/ios-filled/50/1a7fc1/phone.png");
}

.icon.whatsapp {
  background-image: url("https://img.icons8.com/ios-filled/50/1a7fc1/whatsapp.png");
}

.icon.email {
  background-image: url("https://img.icons8.com/ios-filled/50/1a7fc1/new-post.png");
}

.icon.web {
  background-image: url("https://img.icons8.com/ios-filled/50/1a7fc1/domain.png");
}

.icon.location {
  background-image: url("https://img.icons8.com/ios-filled/50/1a7fc1/marker.png");
}

.icon.linkedin {
  background-image: url("https://img.icons8.com/ios-filled/50/1a7fc1/linkedin.png");
}

.icon.facebook {
  background-image: url("https://img.icons8.com/ios-filled/50/1a7fc1/facebook-new.png");
}

.icon.x {
  background-image: url("https://img.icons8.com/ios-filled/50/1a7fc1/x.png");
}

.icon.instagram {
  background-image: url("https://img.icons8.com/ios-filled/50/1a7fc1/instagram-new.png");
}

@media (min-width: 420px) {
  .card-container {
    /* margin: 32px auto; */
    max-width: 420px;
  }

  .profile-pic-wrapper {
    padding: 28px 16px 0 16px;
  }

  .card-info {
    padding: 4px;
  }

  .card-contacts {
    padding: 16px 24px;
  }
}

@media (max-width: 575px) {
  .card-container {
    /* margin: 16px auto; */
    margin: 0 auto;
    /* max-height: calc(100vh - 32px); */
    /* max-height: 100vh; */
    /* height: 100vh; */
    max-width: 100%;
    border-radius: 0;
    margin: 0;
  }
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* MODAL BOX */
.modal-content {
  background: #fff;
  padding: 48px 20px 20px 20px;
  border-radius: 8px;
  width: 340px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
}

#previewBox {
  width: 300px;
  height: 324px;
  margin: 10px auto;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

#previewBox canvas {
  width: 100%;
  height: 100%;
}

#downloadBtn {
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  color: #fff;
  margin-top: 10px;
  background: var(--primary-color);
}

#downloadBtn:hover {
  background: var(--primary-color);
  color: #fff;
}

.footer {
  display: flex;
  gap: 36px;
  justify-content: center;
}

.share-icon,
.qr-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background-color: white;
  border: none;
  cursor: pointer;
  z-index: 99;
  color: var(--color-text-muted);
  transition: all var(--transition-smooth);
}

.share-icon:hover,
.qr-icon:hover {
  background-color: var(--primary-color);
  color: white;
  fill: white;
}

.share-icon:hover svg,
.qr-icon:hover svg {
  fill: white;
}

.share-icon svg,
.qr-icon svg {
  transition: all var(--transition-smooth);
  fill: var(--primary-color);
}

.cards-icon {
  position: absolute;
  border-radius: 50%;
  border: 2px solid white;
  background-color: var(--primary-color);
  top: 20px;
  left: 20px;
  padding: 5px;

  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: var(--shadow-lg), var(--shadow-glow); */
}

.cards-icon img {
  width: 24px;
  height: 24px;
}

