/* =========================================================
   Clean VCard CSS (Basic units, no :root, no html/body/*)
   - Desktop/tablet: full height, only left/right gap
   - Mobile: full-bleed (no outer phone frame)
   - Intro: fixed height + scroll
   - Contact list: exactly 6 equal rows in viewport; extras scroll
   - Bottom bar: fixed inside pane with safe-area padding
   ======================================================= */

/* Root wrapper fills viewport without touching html/body */
.vcard-root {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding-left: 24px;
  padding-right: 24px;
  background: rgba(255, 255, 255, 0.25);
}

/* Phone shell (hidden on phones via media query) */
.vcard-phone {
  width: 100%;
  max-width: 440px;
  height: 100%;
  /*border: 4px solid #000;*/
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(145deg, #5a4b3a, #2d2a28);
   background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("../../vcard/BG_1.png") center/cover no-repeat;
  display: flex;
}

/* Screen area */
.vcard-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.12)), url("vcard/bg.png") center/cover no-repeat;
}

/* Header */
.vcard-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px 0 10px;
  gap: 10px;
}

.vcard-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vcard-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 12px;
}

.vcard-logo-card {
  padding: 0 5px 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.vcard-company-logo {
  display: flex;
  justify-content: center;
}

.logo-vcard {
  width: 46px;
  height: auto;
}

.vcard-nameblock { color: #fff; }

.vcard-name {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  font-family: "Poppins", sans-serif;
  
}

.vcard-role {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  opacity: 0.9;
  font-family: "Poppins", sans-serif;
}

.vcard-company {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vcard-tagline {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.85;
}

/* Intro (fixed height + its own scroll) */
.vcard-intro {
  margin: 8px 12px;
  padding: 8px 12px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  color: #fff;
  text-align: justify;
  font: 500 12px/1.55 "Poppins", sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.vcard-intro::-webkit-scrollbar { display: none; }

/* Tabs */
.vcard-toggle {
  display: flex;
  gap: 12px;
  padding: 10px 18px 10px 18px;
  align-items: stretch;
}

.vcard-tab {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 500 13px/1 "Poppins", sans-serif;
}

.vcard-tab.is-active {
  background: #000;
  border-color: #000;
}

/* Panes */
.vcard-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 30px 88px 30px; /* bottom padding = space for fixed fabs */
  color: #fff;
}

.vcard-pane[hidden] { display: none !important; }

/* Scrollable 6-row list viewport */
.vcard-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border: none;
  scrollbar-width: none;
}

.vcard-list::-webkit-scrollbar { width: 0; height: 0; }

/* Make each item exactly 1/6th of the list viewport height */
.vcard-item {
  box-sizing: border-box;
  height: calc(100% / 5);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* Icons and text */
.vcard-ico {
  width: 22px;
  text-align: center;
  opacity: 0.95;
  flex: 0 0 auto;
}

.mt-contact-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.vcard-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
}

.vcard-label,
.vcard-link,
.vcard-muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Poppins", sans-serif;
}

.vcard-label {
  color: #b9b7b7;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
}

.vcard-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
}

.vcard-muted {
  color: #d7d7d7;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
}

/* QR pane content */
.vcard-qrwrap {
  display: grid;
  place-items: center;
  padding: 10px 0 6px;
}

.vcard-qrbox {
  width: 260px;
  max-width: 65%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.87);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.vcard-qr {
  width: 86%;
  height: auto;
  display: block;
}

.vcard-ghost-box { margin-bottom: 40px; }

.vcard-ghostbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  max-width: 60%;
  height: 34px;
  line-height: 1;
  margin: 0 auto 6px;
  color: #000;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 13px;
  min-width: 0;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcard-a {
  color: #000;
  text-decoration: none;
  font-size: 10px;
}

.mt-qr-icon {
  width: 17px;
  filter: brightness(1) invert(0);
}

/* Bottom actions (fixed inside pane + safe-area) */
.vcard-fabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: transparent;
}

.vcard-fab {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile full‑bleed (remove shell border/frame) */
@media screen and (max-width: 820px), (any-pointer: coarse) {
  .vcard-root {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }
  .vcard-phone {
    width: 100%;
    max-width: none;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .vcard-screen {
    border-radius: 0;
  }
}
/* Parent stays column */
.vcard-logo-card {
  display: flex;
  flex-direction: column;       /* column required */
  justify-content: space-between;/* optional: top/bottom spread */
  align-items: stretch;         /* children can override via align-self */
  gap: 12px;
}

/* Right side: company/logo block */
.vcard-logo-text {
  align-self: flex-end;         /* push to right in column layout */
  text-align: right;            /* align text to right edge */
  padding-left: 30px;
  /* Alternatively (either/or): margin-left: auto; */
}

/* Left side: name block */
.vcard-nameblock {
  align-self: flex-start;       /* pin to left in column layout */
  text-align: left;
}
