html,
body.af2e-business-card-page {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
}

body.af2e-business-card-page {
  background: #F1F2F6;
}

.af2e-business-card-page .af2e-card-wrap,
.af2e-business-card-page .af2e-card-wrap * {
  box-sizing: border-box;
}

.af2e-card-wrap {
  --af2e-dark: #0d1f3c;
  --af2e-cyan: #5CE1E6;
  --af2e-bg: #F1F2F6;
  --af2e-text: #162033;
  --af2e-muted: #6f7785;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 14px 18px;
  background: var(--af2e-bg);
  font-family: Arial, Helvetica, sans-serif;

  display: flex;
  align-items: center;
  justify-content: center;
}

.af2e-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 34px 32px 26px;
  box-shadow: 0 18px 50px rgba(13,31,60,.09);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.af2e-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--af2e-cyan);
}

.af2e-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--af2e-dark);
  padding: 13px 22px;
  border-radius: 16px;
  margin: 0 auto 24px;
}

.af2e-logo {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
}

.af2e-card h1 {
  margin: 0;
  color: var(--af2e-dark);
  font-size: clamp(30px,7vw,42px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
}

.af2e-role {
  margin: 8px 0 22px;
  color: var(--af2e-dark);
  font-size: 18px;
  font-weight: 600;
}

.af2e-details {
  margin: 0 0 20px;
  border-top: 1px solid #e9edf2;
  border-bottom: 1px solid #e9edf2;
}

.af2e-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 2px;
  text-decoration: none;
  text-align: left;
  border-bottom: 1px solid #e9edf2;
}

.af2e-detail:last-child {
  border-bottom: none;
}

.af2e-detail-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(92,225,230,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--af2e-dark);
}

.af2e-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.af2e-detail-content {
  min-width: 0;
}

.af2e-detail-label {
  display: block;
  color: var(--af2e-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 3px;
}

.af2e-detail-value {
  display: block;
  color: var(--af2e-text);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.af2e-actions {
  display: grid;
  gap: 8px;
}

.af2e-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--af2e-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}

.af2e-btn:hover {
  transform: translateY(-2px);
}

.af2e-btn:active {
  transform: scale(.985);
}

.af2e-btn-main {
  background: var(--af2e-dark);
  color: #fff !important;
  box-shadow: 0 10px 25px rgba(13,31,60,.14);
}

.af2e-btn-main:hover {
  background: #122b51;
}

.af2e-btn-secondary {
  background: #fff;
  color: var(--af2e-dark) !important;
}

.af2e-btn-secondary:hover {
  background: #f7f9fb;
}

.af2e-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

.af2e-small-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.af2e-footer {
  margin: 16px 0 0;
  color: var(--af2e-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width:520px) {
  .af2e-card-wrap {
    padding: 10px 12px;
  }

  .af2e-card {
    padding: 25px 20px 20px;
    border-radius: 20px;
  }

  .af2e-logo-box {
    padding: 11px 19px;
    margin-bottom: 20px;
    border-radius: 14px;
  }

  .af2e-logo {
    width: 125px;
  }

  .af2e-card h1 {
    font-size: 30px;
  }

  .af2e-role {
    margin: 7px 0 20px;
    font-size: 16px;
  }
}

@media (max-height:720px) and (max-width:520px) {
  .af2e-card {
    padding: 19px 18px 15px;
  }

  .af2e-logo-box {
    padding: 8px 17px;
    margin-bottom: 13px;
  }

  .af2e-logo {
    width: 110px;
  }

  .af2e-card h1 {
    font-size: 27px;
  }

  .af2e-role {
    margin: 5px 0 13px;
    font-size: 15px;
  }

  .af2e-details {
    margin-bottom: 14px;
  }

  .af2e-detail {
    padding: 9px 2px;
  }

  .af2e-detail-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .af2e-btn {
    min-height: 43px;
    font-size: 14px;
  }

  .af2e-footer {
    margin-top: 11px;
    font-size: 10px;
  }
}
